fix: lang toggle button updates on init
This commit is contained in:
@@ -51,6 +51,8 @@ const Lang = {
|
||||
|
||||
init() {
|
||||
this._current = localStorage.getItem('turbosu-lang') || 'zh';
|
||||
const btn = document.getElementById('lang-toggle');
|
||||
if (btn) btn.textContent = this._current === 'zh' ? 'EN' : '中';
|
||||
},
|
||||
|
||||
t(key) {
|
||||
|
||||
Reference in New Issue
Block a user