Set the HTML lang attribute to the appropriate language
This commit is contained in:
parent
1a0ca50647
commit
2685d0f720
3 changed files with 3 additions and 0 deletions
|
@ -12,6 +12,7 @@ const stored_locale = useStorage('sake-locale', '');
|
|||
if (!stored_locale.value) {
|
||||
stored_locale.value = default_locale;
|
||||
}
|
||||
document.documentElement.setAttribute('lang', stored_locale.value);
|
||||
|
||||
const i18n = createI18n({
|
||||
legacy: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue