We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent daa8294 commit 719d7b4Copy full SHA for 719d7b4
1 file changed
i18n.tsx
@@ -10,7 +10,7 @@ const loadLocaleDictionary = async (locale: string) => {
10
return import('./i18n/locales/en.json').then(f => f.default);
11
}
12
13
- if (locale in availableLocaleCodes) {
+ if (availableLocaleCodes.includes(locale)) {
14
// Other languages don't really require HMR as they will never be development languages
15
// so we can load them dynamically
16
return import(`./i18n/locales/${locale}.json`).then(f => f.default);
0 commit comments