Compare commits

...

1 Commits

Author SHA1 Message Date
Quentin Gliech
de9a61c83a Keep the HTML lang attribute in sync with the i18next language 2025-05-05 15:10:03 +02:00

View File

@@ -136,6 +136,11 @@ export class Initializer {
lookup: () => getUrlParams().lang ?? undefined,
});
// Synchronise the HTML lang attribute with the i18next language
i18n.on("languageChanged", (lng) => {
document.documentElement.lang = lng;
});
await i18n
.use(Backend)
.use(languageDetector)