Decouple feature copy from locale parity (#8512)

* Decouple feature copy from locale parity

* Fix undeclared dynamic localization key check

* Fix localization code owner
This commit is contained in:
Brennan Benson
2026-07-29 17:44:41 -07:00
committed by GitHub
parent 32926bc831
commit 5e00a30e4e
19 changed files with 819 additions and 150 deletions
@@ -58,6 +58,11 @@ describe('main-i18n lazy locale loading', () => {
expect(translateMain('menu.file', 'File')).not.toBe('File')
})
it('uses caller English when a target catalog omits a key', async () => {
await setMainUiLanguage(UI_LANGUAGE_SPANISH)
expect(translateMain('missing.main.feature', 'English fallback')).toBe('English fallback')
})
it('returns to English from a lazily-loaded locale', async () => {
await setMainUiLanguage(UI_LANGUAGE_SPANISH)
expect(translateMain('menu.file', 'File')).toBe('Archivo')