Giter Site home page Giter Site logo

i18n-timezones's Introduction

<img src=“https://travis-ci.org/onomojo/i18n-timezones.svg?branch=master” alt=“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.

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.

License

MIT or GPL

i18n-timezones's People

Contributors

onomojo avatar hschoidr avatar stiebitzhofer avatar dannyben avatar hasinur avatar alxrt avatar envek avatar antoinelyset avatar cbeckr avatar davispuh avatar zhougn avatar kinukawa avatar max5it avatar likhon avatar rspiridonov avatar ya-kmet avatar ky6b79 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.