Client - update lang attribute on language change - fix #201

This commit is contained in:
Sam 2022-06-29 15:27:12 +02:00
parent ead271a8d9
commit 0cc33faf97

View File

@ -114,6 +114,7 @@
}
function updateLanguage(option: IDropdownOption) {
locale.value = option.value.toString()
document.querySelector('html')?.setAttribute('lang', locale.value)
store.commit(ROOT_STORE.MUTATIONS.UPDATE_LANG, option.value)
}
function logout() {