diff --git a/src/i18n.ts b/src/i18n.ts index 8b493680..4b3ae5f2 100644 --- a/src/i18n.ts +++ b/src/i18n.ts @@ -61,6 +61,7 @@ let currentLangData = {}; export const setLanguage = async (lang: Language) => { currentLang = lang; document.documentElement.dir = currentLang.rtl ? "rtl" : "ltr"; + document.documentElement.lang = currentLang.code; currentLangData = await import( /* webpackChunkName: "i18n-[request]" */ `./locales/${currentLang.code}.json`