Sha256: a48ff1cc6a34e5a4986ca27ed59d0a2dba182a3747afcb2073065cba67377cb7
Contents?: true
Size: 1.36 KB
Versions: 4
Compression:
Stored size: 1.36 KB
Contents
# EmojiFlag A simple gem to get the [emoji flag](http://emojipedia.org/flags/) for an [ISO 639-1 language code](http://www.loc.gov/standards/iso639-2/php/English_list.php) or locale id string (LCID). [](https://travis-ci.org/richardvenneman/emoji_flag) [](https://badge.fury.io/rb/emoji_flag) [](https://codeclimate.com/github/richardvenneman/emoji_flag/maintainability) [](https://codeclimate.com/github/richardvenneman/emoji_flag/test_coverage) ## Usage ```ruby 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`](http://guides.rubyonrails.org/i18n.html]): ```ruby EmojiFlag.new(:de) # => π©πͺ ``` ## Installation Add this line to your application's Gemfile: ```ruby gem 'emoji_flag' ``` And then execute: ```bash $ bundle ``` ## License The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
emoji_flag-0.1.1 | README.md |
emoji_flag-0.1.0 | README.md |
emoji_flag-0.0.3 | README.md |
emoji_flag-0.0.2 | README.md |