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>

50e566ee0dde408065d2b05a1c0c0eedb019052e

Copilot <198982749+Copilot@users.noreply.github.com>

Signed
1 files changed, +1 -0Ignore whitespace
public/scripts/i18n.js+1 -0
@@ -272,6 +272,7 @@ function addLanguagesToDropdown() {
272export async function initLocales() {272export async function initLocales() {
273 langs = await fetch('/locales/lang.json').then(response => response.json());273 langs = await fetch('/locales/lang.json').then(response => response.json());
274 localeData = await getLocaleData(localeFile);274 localeData = await getLocaleData(localeFile);
275 document.documentElement.lang = localeFile;
275 applyLocale();276 applyLocale();
276 addLanguagesToDropdown();277 addLanguagesToDropdown();
277 updateSecretDisplay();278 updateSecretDisplay();