Skip to content

A Simple and Universal Swarm Intelligence Engine, Predicting Anything. 简洁通用的群体智能引擎,预测万物

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

ghostubborned465908dbcb
diff --git a/frontend/index.html b/frontend/index.html
index f6070997..0b80095c 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -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">