diff --git a/web/i18n/i18next-config.ts b/web/i18n/i18next-config.ts index e5b34cea6f..7af727af7e 100644 --- a/web/i18n/i18next-config.ts +++ b/web/i18n/i18next-config.ts @@ -50,9 +50,7 @@ export const loadLangResources = async (lang: string) => { acc[camelCase(NAMESPACES[index])] = mod return acc }, {} as Record) - return { - translation: resources, - } + return resources } const getFallbackTranslation = () => { @@ -80,7 +78,7 @@ export const changeLanguage = async (lng?: string) => { const resolvedLng = lng ?? 'en-US' const resource = await loadLangResources(resolvedLng) if (!i18n.hasResourceBundle(resolvedLng, 'translation')) - i18n.addResourceBundle(resolvedLng, 'translation', resource.translation, true, true) + i18n.addResourceBundle(resolvedLng, 'translation', resource, true, true) await i18n.changeLanguage(resolvedLng) }