Skip to content

Commit 719d7b4

Browse files
committed
fix: fixed silly bug on i18n config
1 parent daa8294 commit 719d7b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

i18n.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const loadLocaleDictionary = async (locale: string) => {
1010
return import('./i18n/locales/en.json').then(f => f.default);
1111
}
1212

13-
if (locale in availableLocaleCodes) {
13+
if (availableLocaleCodes.includes(locale)) {
1414
// Other languages don't really require HMR as they will never be development languages
1515
// so we can load them dynamically
1616
return import(`./i18n/locales/${locale}.json`).then(f => f.default);

0 commit comments

Comments
 (0)