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 -0Showing whitespace changes
public/scripts/i18n.js+1 -0
@@ -272,6 +272,7 @@ function addLanguagesToDropdown() {
272272export async function initLocales() {
273273 langs = await fetch('/locales/lang.json').then(response => response.json());
274274 localeData = await getLocaleData(localeFile);
275+ document.documentElement.lang = localeFile;
275276 applyLocale();
276277 addLanguagesToDropdown();
277278 updateSecretDisplay();