Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (26 sloc) 960 Bytes

i18n generators

Rails gem to provide support generation of localized language and country names for use in various localization contexts. This gem was extracted from from the gems localized_countrues_select and localized_languages_select

Please all see the following:

Installation

in Gemfile:

gem "i18n-gen", "~> 0.2.0"

Then run bundle to install.

Usage

Generators

rails g

  • localized:languages_import
  • localized:locale_languages

Use -h option for help on usage

rails g localized:languages_import -h

Rake tasks

rake -T

localized_countries tasks

localized_countries:generate

rake localized_countries:generate locale=de

localized_languages tasks

localized_languages:generate

rake localized_languages:generate locale=de

Copyright

(c) 2012 Kristian Mandrup