fix(i18n/de): address code review findings
- Remove broken `import type { I18nDictionary } from '../types'` from
de.ts and de.settings.ts; match the untyped style of fr.ts/fr.settings.ts
- Add `de`/`de-*` case to normalizeLocale() in runtime.ts so browser
locale auto-detection picks up German without manual Settings change
- Fix ternary indentation in store.ts to match surrounding pl/ja branches
This commit is contained in:
@@ -43,10 +43,10 @@ async function loadDictionary(locale: Locale): Promise<I18nDictionary> {
|
||||
: locale === 'pl'
|
||||
? await import('./messages/pl') as { dict: I18nDictionary }
|
||||
: locale === 'de'
|
||||
? await import('./messages/de') as { dict: I18nDictionary }
|
||||
: locale === 'ja'
|
||||
? await import('./messages/ja') as { dict: I18nDictionary }
|
||||
: { dict: enDict };
|
||||
? await import('./messages/de') as { dict: I18nDictionary }
|
||||
: locale === 'ja'
|
||||
? await import('./messages/ja') as { dict: I18nDictionary }
|
||||
: { dict: enDict };
|
||||
dictionaries.set(locale, mod.dict);
|
||||
return mod.dict;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user