Skip to content

i18n Translations

Julie Allinson edited this page Jan 4, 2019 · 2 revisions

i18n Translations

Support for i18n Translations

i18n Translations have been generated to match languages supported in Hyrax for all default labels and help_text defined in lib/dog_biscuits/property_mappings/property_mappings.rb

These are added to the local application with the install generator (although the .en. locale will be overwritten by subsequent runs of the work generator).

Updating i18n Translations in Dog Biscuits

When a new property is added or an existing label or help_text is changed, it needs to be added to or changed in lib/generators/dog_biscuits/templates/config/locales/dog_biscuits.en.yml. The easiest way to do this is copy the file from the .internal_test_app built during testing (.internal_test_app/config/locales/dog_biscuits.em.yml).

Once this is done, run:

i18n-tasks normalize
i18n-tasks translate-missing --from en --locales es zh fr it de pt-BR

Please see the i18n-tasks documentation for information on how to setup i18n.

Hyrax also has documentation for details on how to setup i18n.

Adding / updating i18n Translations in your application

If you have custom labels and properties in your local application, you'll need to do translations locally for those.

Please see the i18n-tasks documentation for information on how to setup i18n.