Skip to content

About

Ruby on Rails (>=2.2) localization support(auto locale detection, localized caches, views, routes, etc...) with Ruby-Locale.

Resources

Stars

23 stars

Watchers

1 watching

Forks

Latest commit

 

History

52 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This library provides some Rails localized functions.

This is useful with Rails i18n backends which doesn’t have auto-detection and some other features includes this library.

  • Auto-Detect the locales from the WWW browser

  • Action/Fragment caching

  • Separated Localized View template file

  • Localized Routes

  • I18n.t fallback to localized message candidates.

  • gem: ($ su)

    # gem install locale_rails
    
Rails::Initializer.run do |config|
  :
  :
  config.gem 'locale'
  config.gem 'locale_rails'
end
# Tell the I18n library where to find your translations
I18n.supported_locales = ["ja", "en"]
I18n.default_locale = "ja"
  • locale_rails-2.0.6 - rails-2.3.2,2.3.3,2.3.4,2.3.5

  • locale_rails-2.0.5 - rails-2.3.2,2.3.3,2.3.4

  • locale_rails-2.0.4 - rails-2.3.2

  • locale_rails-2.0.3 - rails-2.3.2

  • locale_rails-2.0.2 - rails-2.3.2

  • locale_rails-2.0.1 - rails-2.3.2

  • locale_rails-2.0.0 - rails-2.3.2

  • locale_rails-0.1.0 - rails-2.1.x

  • locale_rails-2.0.6 - 1.8.7-p249, 1.9.1-p378

This program is licenced under the same licence as Ruby(See COPYING) or LGPL(Lesser General Public License: www.gnu.org/licenses/lgpl-3.0.txt).

Masao Mutoh <mutomasa at gmail.com>

About

Ruby on Rails (>=2.2) localization support(auto locale detection, localized caches, views, routes, etc...) with Ruby-Locale.

Resources

Stars

23 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages