i18n
https://github.com/svenfuchs/i18n
Ruby
Internationalization (i18n) library for Ruby
I18n::Locale::Tag::Rfc4646.tag
Parses the given tag and returns a Tag instance if it is valid. Returns false if the given tag is not valid according to RFC 4646.
Edit
git clone [email protected]:svenfuchs/i18n.git
cd i18n
open lib/i18n/locale/tag/rfc4646.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-I18n--Locale--Tag--Rfc4646-tag-for-pr
# Commit to gitgit add lib/i18n/locale/tag/rfc4646.rbgit commit -m "better docs for I18n::Locale::Tag::Rfc4646.tag"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-I18n--Locale--Tag--Rfc4646-tag-for-pr
hub pull-request
# Celebrate!