feat: #8 i18n support (zh/en toggle)

This commit is contained in:
2026-07-26 18:45:23 +08:00
parent 71d039ba82
commit 3514612f7a
3 changed files with 71 additions and 0 deletions
+2
View File
@@ -84,6 +84,7 @@
<svg class="icon-sun" viewBox="0 0 24 24" width="20" height="20"><path d="M6.76 4.84l-1.8-1.79-1.41 1.41 1.79 1.79zM4 10.5H1v2h3zm9-9.95h-2V3.5h2zm7.45 3.91l-1.41-1.41-1.79 1.79 1.41 1.41zm-3.21 13.7l1.79 1.8 1.41-1.41-1.8-1.79zM20 10.5v2h3v-2zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm-1 16.95h2V19.5h-2zm-7.45-3.91l1.41 1.41 1.79-1.8-1.41-1.41z" fill="currentColor"/></svg>
<svg class="icon-moon" viewBox="0 0 24 24" width="20" height="20"><path d="M9.37 5.51c-.18.64-.27 1.31-.27 1.99 0 4.08 3.32 7.4 7.4 7.4.68 0 1.35-.09 1.99-.27C17.45 17.19 14.93 19 12 19c-3.86 0-7-3.14-7-7 0-2.93 1.81-5.45 4.37-6.49z" fill="currentColor"/></svg>
</button>
<button id="lang-toggle" class="icon-btn" title="Language" style="font-size:13px;font-weight:600"></button>
</div>
</header>
@@ -104,6 +105,7 @@
<script src="/static/js/utils/theme.js"></script>
<script src="/static/js/utils/toast.js"></script>
<script src="/static/js/utils/lang.js"></script>
<script src="/static/js/api.js"></script>
<script src="/static/js/ws.js"></script>
<script src="/static/js/components/sidebar.js"></script>