Simplify control language and theme labels
This commit is contained in:
+3
-11
@@ -117,10 +117,6 @@
|
||||
translateButton: 'Translate',
|
||||
themeButton: 'Theme',
|
||||
rebootButton: 'Reboot',
|
||||
themeDark: 'Theme: Dark',
|
||||
themeLight: 'Theme: Light',
|
||||
langEn: 'Translate: EN',
|
||||
langKo: 'Translate: KO',
|
||||
dialogAlert: 'Alert',
|
||||
dialogConfirm: 'Confirm',
|
||||
dialogInput: 'Input',
|
||||
@@ -254,10 +250,6 @@
|
||||
translateButton: '번역',
|
||||
themeButton: '테마',
|
||||
rebootButton: '재부팅',
|
||||
themeDark: '테마: 다크',
|
||||
themeLight: '테마: 라이트',
|
||||
langEn: '번역: EN',
|
||||
langKo: '번역: KO',
|
||||
dialogAlert: '알림',
|
||||
dialogConfirm: '확인',
|
||||
dialogInput: '입력',
|
||||
@@ -372,7 +364,7 @@
|
||||
if (themeMeta) {
|
||||
themeMeta.content = state.theme === 'light' ? '#f4f7fb' : '#0f1115';
|
||||
}
|
||||
els.themeBtn && (els.themeBtn.textContent = state.theme === 'dark' ? t('themeDark') : t('themeLight'));
|
||||
els.themeBtn && (els.themeBtn.textContent = t('themeButton'));
|
||||
}
|
||||
|
||||
function applyLang(lang) {
|
||||
@@ -382,8 +374,8 @@
|
||||
document.querySelectorAll('[data-i18n]').forEach(node => {
|
||||
node.textContent = t(node.dataset.i18n);
|
||||
});
|
||||
els.translateBtn && (els.translateBtn.textContent = state.lang === 'ko' ? t('langKo') : t('langEn'));
|
||||
els.themeBtn && (els.themeBtn.textContent = state.theme === 'dark' ? t('themeDark') : t('themeLight'));
|
||||
els.translateBtn && (els.translateBtn.textContent = t('translateButton'));
|
||||
els.themeBtn && (els.themeBtn.textContent = t('themeButton'));
|
||||
els.rebootBtn && (els.rebootBtn.textContent = t('rebootButton'));
|
||||
if (els.dmesgToggle) {
|
||||
els.dmesgToggle.textContent = state.dmesgOpen ? t('hide') : t('show');
|
||||
|
||||
Reference in New Issue
Block a user