0.0
No release in over a year
Easy localise your Rails app from localise.biz
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.17
~> 10.0

Runtime

 Project Readme

LocaliseRails

Easy localise for your Rails app from localise.biz (I18n)

Installation

Add this line to your application's Gemfile:

gem 'localise_rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install localise_rails

Usage

Configuration

# config/initializers/localise_rails.rb
LocaliseRails.configure do |config|
  config.api_key = "LOCALISE_KEY"

  ### all options https://localise.biz/api/docs/export/exportall
  # config.options = {
  #   filter: 'backend',
  #   fallback: 'en-US'
  # }

  ### rename locales from localise
  # config.rename_locales = {
  #   'en-US' => 'en'
  # }
  
  ### set prefix for locales
  # config.prefix = 'localise'
  
  ### all options https://github.com/redis/redis-rb
  # config.redis_options = {
  #   host: "127.0.0.1", 
  #   port: 6379, 
  #   db: 1,
  #   url: "redis://:p4ssw0rd@127.0.0.1:6379/1"
  # }
end

How to update locales

To crontab

LocaliseRails.update

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/OnlyReFLeX/localise_rails.

License

The gem is available as open source under the terms of the MIT License.