+1
-1
i18n.tsx
+1
-1
i18n.tsx
···
10
10
return import('./i18n/locales/en.json').then(f => f.default);
11
11
}
12
12
13
-
if (locale in availableLocaleCodes) {
13
+
if (availableLocaleCodes.includes(locale)) {
14
14
// Other languages don't really require HMR as they will never be development languages
15
15
// so we can load them dynamically
16
16
return import(`./i18n/locales/${locale}.json`).then(f => f.default);