Skip to content

πŸ‡³πŸ‡± Emoji country flags for language codes and LCID's

License

Notifications You must be signed in to change notification settings

richardvenneman/emoji_flag

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

33 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

EmojiFlag

A simple gem to get the emoji flag for an ISO 639-1 language code or locale id string (LCID).

Build Status Gem Version Maintainability Test Coverage

Usage

EmojiFlag.new('nl') # => πŸ‡³πŸ‡±
EmojiFlag.new('en') # => πŸ‡¬πŸ‡§
EmojiFlag.new('nl_BE') # => πŸ‡§πŸ‡ͺ
EmojiFlag.new('en_US') # => πŸ‡ΊπŸ‡Έ

Also supports passing in a symbol language code, making it easy to integrate with Rails' I18n.available_locales:

EmojiFlag.new(:de) # => πŸ‡©πŸ‡ͺ

Installation

Add this line to your application's Gemfile:

gem 'emoji_flag'

And then execute:

$ bundle

License

The gem is available as open source under the terms of the MIT License.

About

πŸ‡³πŸ‡± Emoji country flags for language codes and LCID's

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages