Rails I18n timezone translations
Ruby
Latest commit 03c7382 Nov 7, 2016 @onomojo committed on GitHub Merge pull request #27 from openone-pl/master
Adding the Polish translation.
Permalink
Failed to load latest commit information.
lib fixing broken tests Aug 29, 2016
rails/locale Adding the Polish translation. Oct 21, 2016
spec fixing broken tests Aug 29, 2016
.ruby-version adding ruby version Aug 29, 2016
.travis.yml adding travisci Jul 16, 2015
Gemfile adding ruby version Aug 29, 2016
Gemfile.lock fixing broken tests Aug 29, 2016
MIT-LICENSE initial commit Apr 2, 2012
README.rdoc fixing broken tests Aug 29, 2016
Rakefile initial commit Apr 2, 2012
i18n-timezones.gemspec

README.rdoc

Build Status

I18nTimezones

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

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

Supported Locales

There are translations for all of the following locales: ar, de, en, es, fr, he, it, ja, ko, nl, pt, pt-BR, ru, zh-CN, zh-TW. Japanese translation was added by ROR Lab on April 25, 2013.

Installation

Add to your Gemfile:

gem 'i18n-timezones'

Usage

The timezones will automatically be translated into the current locale. Even the :default will get translated to the current locale.

time_zone_select :user, :time_zone, ActiveSupport::TimeZone.us_zones, :default => "Pacific Time (US & Canada)"

or just

time_zone_select :user, :time_zone

If you find an error in a translation, please let us know. Please help us fill in the rest of the timezones.

Contributors

Version History

  • 1.3.6 - Fix mistakes of translation in Japanese. add hebrew translation. Fix Buenos Aires name in Russian

  • 1.3.5 - Adding pt-BR

  • 1.3.4 - Added missing Russian Federation timezones. Russian name of “Central America” was fixed.

  • 1.3.3 - Fix ru translation for Paris

  • 1.3.2 - Adding zh-CN and updating de

  • 1.3.1 - Adding license to gemspec

  • 1.3 - Upgrading to Rails 4

  • 1.2.3 - Adding Arabic, Italian, Dutch, Portuguese, and Chinese (Traditional) locales

  • 1.2.2 - Adding Japansese locale

  • 1.2.1 - Fixing a German translation

  • 1.2 - Adding German locale

  • 0.1.1 - Adding Russian locale

  • 0.1.0 - Adding Korean locale

License

MIT or GPL