cgcmart / open_i18n

This extension contains translation files for Open.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Open Internationalization

This is the Internationalization project for Open

Happy translating!


  1. Add this extension to your Gemfile with this line:
gem 'open_i18n', github: '99cm/open_i18n'
  1. Install the gem using Bundler:
bundle install
  1. Copy & run migrations
bundle exec rails g open_i18n:install
  1. Restart your server

If your server was running, restart it so that it can find the assets properly.


Supported languages

We currently support the following locales by default. If you need a locale that is not in the list you can add a custom translation file into your application by following the Rails translations guide.

Updating Translations

If you want to improve the translations on your language, run the tasks:

bundle exec rake open_i18n:update_default
bundle exec i18n-tasks add-missing --nil-value --locale <LOCALE>

Substitute with your locale code (e.g: it).

This will do a cleanup and prepare <LOCALE>.yml with all the missing keys. You can then write the translations and open a pull request.


Model Translations

We moved support for translating models into a separate Gem

Please update your Gemfile if you still need the model translations.

# Gemfile
gem 'open_globalize', github: '99cm/open_globalize', branch: 'master'

Contributing

See corresponding guidelines


Copyright (c) 2019 Leo Wang and other contributors. released under the New BSD License

About

This extension contains translation files for Open.

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Ruby 100.0%