Skip to content

Translations

Marc Anguera edited this page Apr 4, 2024 · 2 revisions

Whenever we make changes in the repository that need to display text we add or edit new locales in config/locales/en.yml. Other languages will be updated through https://www.localeapp.com/projects/10031.

Install locale app

https://github.com/Locale/localeapp/wiki/Install-the-Locale-Ruby-Gem

Send news copies (english) to localeapp.com

When changes in en.yml are merged in develop branch, run the following comands in your local machine:

  1. git checkout develop

  2. git pull

  3. bundle exec localeapp push config/locales/en.yml

Now english copies are in https://www.localeapp.com/projects/10031, ready to get translated.

Download and commit new translations

  1. git checkout -b 'translations/20180704' (Use the current date as branch name)

  2. bundle exec localeapp pull

  3. Add to commit only languages that are in config/application.rb, except en.yml. Other languages are in localeapp.com because some people have shown interest in making translations into these languages but they are not ready to production.

    git add config/locales/ca.yml config/locales/es.yml config/locales/eu.yml config/locales/pt-BR.yml config/locales/gl.yml

  4. git commit -m 'New translations'

  5. git push

  6. Create a Pull Request

Warning ⚠️

If you delete keys in en.yml you must delete it in localeapp with:

bundle exec localeapp rm <key>