Catalog fallback chain and missing-key reporting
String lookup walks a fallback chain from the most specific tag to less specific ones, ending at English (for example fr-CA, then fr, then en). Missing keys are reported through an optional hook rather than appearing as blank UI. This lets partial community translations ship safely.
Planned. This page shows the specification from issue #204. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Locale 'fr-CA' with a partial catalog of 5 keys; the 'fr' and 'en' catalogs are loaded.
Expected behavior
Overridden keys show the fr-CA text and all other keys show French. If the fr catalog is disabled, those keys show English and each one appears in the log panel. In strict mode, missing keys render as visible '⟦key⟧' markers.
Planned API surface
fallbackLocalesonMissingTranslationgetResolvedLocaleChainstrictTranslationsAcceptance criteria
- Resolution order is: the exact tag, then tags with subtags removed one at a time, then fallbackLocales, then 'en'. (pending)
- onMissingTranslation is called at most once per key per locale per session. (pending)
- getResolvedLocaleChain returns the ordered array that is actually used. (pending)
- Strict mode never throws an error. (pending)