From 719d7b4583a2bf5457ceaa0e60b8c57c20b1072d Mon Sep 17 00:00:00 2001 From: Claudio Wunder Date: Tue, 5 Mar 2024 14:47:28 +0100 Subject: [PATCH] fix: fixed silly bug on i18n config --- i18n.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i18n.tsx b/i18n.tsx index 866e5e516302c..5c9029e116370 100644 --- a/i18n.tsx +++ b/i18n.tsx @@ -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);