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:
Copilot
2026-02-11 23:58:10 +02:00
committed by GitHub
parent 9714374749
commit 50e566ee0d
+1
View File
@@ -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();