Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

Interface translation fallbacks

How Exponential decides which interface translation a locale shows when it has none of its own (configured fallbacks, rules, the automatic same-language fallback), how to see the chain with exp:i18n and Setup >…

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/help/government/languages/interface-translation-fallbacks.md

On this page

Interface translation fallbacks

This page is for administrators who run the administration or a public design in a regional locale, such as French of Canada or Spanish of a Latin American country. A locale without its own translation does not fall back to English at once: the translator tries the translations it falls back to, in order (Languages in Exponential, section 13).

Contents

  1. The chain
  2. First or merge
  3. Seeing the fallbacks
  4. Settings
  5. Typical public sector cases

The chain

Each step is decided by the first rule that answers:

  1. i18n.ini [TranslationSettings] FallbackLanguages[]: what is configured always wins.
  2. The classes of FallbackRules[], added by extensions.
  3. With AutomaticLanguageFallback=enabled (the default), the most complete translation of the same language: fre-CA to fre-FR, ger-AT to ger-DE.

The answer is asked again, which makes a chain such as esl-AR -> esl-MX -> esl-ES. It ends at a locale nothing answers for, at the English source texts, at a cycle (reported) or after FallbackMaxDepth steps.

First or merge

FallbackMode=first (the default) loads the first file of the chain each translation root has. FallbackMode=merge loads every file of the chain, the most general first, so a message the specific translation lacks comes from the next one. Merge shows fewer English leftovers in regional locales.

Seeing the fallbacks

./console exp:i18n fallbacks                          # every locale: coverage, extensions, chain
./console exp:i18n fallbacks --locale=fre-CA,ger-AT   # each step with its rule
./console exp:i18n check                              # exit 1 on a problem, for CI

Setup > Interface languages (/setup/languages, policy setup/system_info) shows the same in the administration, read only.

Settings

i18n.ini [TranslationSettings]DefaultMeaning
FallbackLanguages[<locale>]100 entriesthe translation a locale falls back to
FallbackRules[]emptyclasses asked after the configured fallbacks
AutomaticLanguageFallbackenabledthe same-language fallback
AutomaticFallbackExclude[]englanguages left alone
FallbackMaxDepth4most steps of a chain
FallbackModefirstfirst or merge

Put changes in settings/override/i18n.ini.append.php and clear the caches (php bin/php/ezcache.php --clear-tag=i18n after changing translation files, --clear-tag=ini after settings).

Typical public sector cases

CaseSuggestion
A regional variety with its own spelling rulesadd its own .ts translation for the strings that differ, FallbackMode=merge
A minority language without translationthe interface stays in the configured fallback or English; translate the public design's few strings
Staff in two official languageseach chooses; no fallback needed

Become an Exponential Partner

Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x