We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b7c395 commit 382a92cCopy full SHA for 382a92c
core/src/locale/index.ts
@@ -65,11 +65,11 @@ class Locale {
65
function getLocale(localeCode: string, mixin?: Localization) {
66
const [language] = localeCode.split('-')
67
const l = locales[localeCode.toLowerCase()] || locales[language.toLowerCase()] || locales.en
68
- const dict = deepMerge(l, mixin || {}) as Localization
+ const dict = deepMerge(locales.en, l, mixin || {}) as Localization
69
return new Locale(dict)
70
}
71
72
-export { Locale, getLocale }
+export { getLocale, Locale }
73
74
// The following prompt was used for localizations translated with GPT-4:
75
//
0 commit comments