Skip to content

Commit

Permalink
fix: fixed silly bug on i18n config
Browse files Browse the repository at this point in the history
  • Loading branch information
ovflowd committed Mar 5, 2024
1 parent daa8294 commit 719d7b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion i18n.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const loadLocaleDictionary = async (locale: string) => {
return import('./i18n/locales/en.json').then(f => f.default);
}

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

0 comments on commit 719d7b4

Please sign in to comment.