fix(i18n): set HTML lang attribute before Vue mounts via inline script

This commit is contained in:
ghostubborn committed 2026-04-02 14:21:09 +08:00
1 parent 65df257e19
commit ed465908db
1 file changed
+1
+1
View File
@@ -1,6 +1,7 @@
<!doctype html>
<html lang="zh">
<head>
<script>document.documentElement.lang = localStorage.getItem('locale') || 'zh'</script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:[email protected]&family=Noto+Sans+SC:wght@300;400;500;700;800;900&family=Space+Grotesk:[email protected]&display=swap" rel="stylesheet">