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>
Signed| @@ -272,6 +272,7 @@ function addLanguagesToDropdown() { | ||
| 272 | 272 | export async function initLocales() { |
| 273 | 273 | langs = await fetch('/locales/lang.json').then(response => response.json()); |
| 274 | 274 | localeData = await getLocaleData(localeFile); |
| 275 | + document.documentElement.lang = localeFile; | |
| 275 | 276 | applyLocale(); |
| 276 | 277 | addLanguagesToDropdown(); |
| 277 | 278 | updateSecretDisplay(); |