fix: lang toggle button updates on init

This commit is contained in:
2026-07-27 19:46:18 +08:00
parent 5cea0f9851
commit 860bc015e8
+2
View File
@@ -51,6 +51,8 @@ const Lang = {
init() { init() {
this._current = localStorage.getItem('turbosu-lang') || 'zh'; this._current = localStorage.getItem('turbosu-lang') || 'zh';
const btn = document.getElementById('lang-toggle');
if (btn) btn.textContent = this._current === 'zh' ? 'EN' : '中';
}, },
t(key) { t(key) {