mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-29 21:15:19 +00:00
Keep the HTML lang attribute in sync with the i18next language
This commit is contained in:
@@ -136,6 +136,11 @@ export class Initializer {
|
|||||||
lookup: () => getUrlParams().lang ?? undefined,
|
lookup: () => getUrlParams().lang ?? undefined,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Synchronise the HTML lang attribute with the i18next language
|
||||||
|
i18n.on("languageChanged", (lng) => {
|
||||||
|
document.documentElement.lang = lng;
|
||||||
|
});
|
||||||
|
|
||||||
await i18n
|
await i18n
|
||||||
.use(Backend)
|
.use(Backend)
|
||||||
.use(languageDetector)
|
.use(languageDetector)
|
||||||
|
|||||||
Reference in New Issue
Block a user