Skip to content
This repository was archived by the owner on May 17, 2026. It is now read-only.

HykuAddons: Tenant Locales

Paul Danelli edited this page Feb 18, 2022 · 1 revision

Locale files can be overridden or added in config/locales. The locale files in the engine are appended to I18n.load_path so they have precedence over Hyku and Hyrax's locales.

Customizing locales per tenant

I18n locales can be customized to override default translations for a specific tenant with fallbacks to the original translations.

To do this, create a locale file in config/locales that matches the name of an existing locale file but with <locale>-<TENANT_NAME>.yml appended to the name. For example, en.yml can be overridden for tenant demo with a file called en-DEMO.yml.

Be sure to name the root YAML element the same as the tenant, en-DEMO: in the example above.

Clone this wiki locally