-
Notifications
You must be signed in to change notification settings - Fork 69
Translations
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.
https://github.com/Locale/localeapp/wiki/Install-the-Locale-Ruby-Gem
When changes in en.yml
are merged in develop
branch, run the following comands in your local machine:
-
git checkout develop
-
git pull
-
bundle exec localeapp push config/locales/en.yml
Now english copies are in https://www.localeapp.com/projects/10031, ready to get translated.
-
git checkout -b 'translations/20180704'
(Use the current date as branch name) -
bundle exec localeapp pull
-
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
-
git commit -m 'New translations'
-
git push
-
Create a Pull Request
If you delete keys in en.yml you must delete it in localeapp with:
bundle exec localeapp rm <key>