Skip to content

Commit 382a92c

Browse files
committed
fix(l10n): Use English as fallback
1 parent 4b7c395 commit 382a92c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/locale/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,11 @@ class Locale {
6565
function getLocale(localeCode: string, mixin?: Localization) {
6666
const [language] = localeCode.split('-')
6767
const l = locales[localeCode.toLowerCase()] || locales[language.toLowerCase()] || locales.en
68-
const dict = deepMerge(l, mixin || {}) as Localization
68+
const dict = deepMerge(locales.en, l, mixin || {}) as Localization
6969
return new Locale(dict)
7070
}
7171

72-
export { Locale, getLocale }
72+
export { getLocale, Locale }
7373

7474
// The following prompt was used for localizations translated with GPT-4:
7575
//

0 commit comments

Comments
 (0)