Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

This just contains i18n country translations

branch: master
README.rdoc

I18nCountryTranslations

I18n Country Translations - The purpose of this gem is to simply provide country translations. The gem is intended to be easy to combine with other gems that require i18n country translations so we can have common i18n country translation gem.

If you're doing anything with country names and translations, there's no need to reinvent the wheel and add your own translations. Just use this gem's country translations and skip the hassle of having to add and manage each country translation for each locale.

Installation

Add to your Gemfile:

gem 'i18n-country-translations'

Usage

I18n.t(:US, :scope => :countries)

or

t(:US, :scope => :countries)

You can easily start adding country translations to the locales with help from this script: gist.github.com/2128684 It will generate a new yml file that contains the country translations for the locale specified. Take the contents of this file and move it into the correct locale file. So far only en-US.yml and es.yml have them added.

Contributors

Brian McQuay - www.onomojo.com

License

MIT or GPL

Special thanks

github.com/svenfuchs/rails-i18n

Something went wrong with that request. Please try again.