Set HTML lang attribute from app locale to enable CSS hyphens: auto (#5136)
* Initial plan * Set HTML lang attribute based on app locale to enable CSS hyphens: auto Co-authored-by: Cohee1207 <18619528+Cohee1207@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Cohee1207 <18619528+Cohee1207@users.noreply.github.com>
This commit is contained in:
@@ -272,6 +272,7 @@ function addLanguagesToDropdown() {
|
||||
export async function initLocales() {
|
||||
langs = await fetch('/locales/lang.json').then(response => response.json());
|
||||
localeData = await getLocaleData(localeFile);
|
||||
document.documentElement.lang = localeFile;
|
||||
applyLocale();
|
||||
addLanguagesToDropdown();
|
||||
updateSecretDisplay();
|
||||
|
||||
Reference in New Issue
Block a user