Fix: Remove the language-specific display logic.

This commit is contained in:
Your Name
2026-07-05 02:31:37 +09:00
parent 1dd6156a1f
commit fcf1b3c310
2 changed files with 1 additions and 10 deletions
-4
View File
@@ -173,7 +173,6 @@ var LANG = {
update_instruction: 'Choose a firmware update file to upload:',
update_upload: 'Upload File',
lang_switch: 'Language:',
common_port: 'Port ',
common_pkts: ' pkts',
},
@@ -352,7 +351,6 @@ var LANG = {
update_instruction: 'アップロードするファームウェアファイルを選択:',
update_upload: 'ファイルをアップロード',
lang_switch: '言語:',
common_port: 'ポート ',
common_pkts: ' pkts',
}
@@ -376,8 +374,6 @@ function setLang(lang) {
document.querySelectorAll('[data-i18n]').forEach(function(el) {
applyTranslation(el);
});
var sel = document.getElementById('rtl-lang-select');
if (sel) sel.value = lang;
}
}
+1 -6
View File
@@ -9,14 +9,9 @@ document.getElementById('sidebar').innerHTML =
+ "<li><a href='eee.html' data-i18n='nav_eee'>EEE</a></li>"
+ "<li><a href='bandwidth.html' data-i18n='nav_bandwidth'>Bandwidth Limits</a></li>"
+ "<li><a href='system.html' data-i18n='nav_system'>System Settings</a></li>"
+ "<li><a href='update.html' data-i18n='nav_fw_update'>Firmware Update</a></li></ul>"
+ "<hr/><div style='padding:8px'><label for='rtl-lang-select' data-i18n='lang_switch'>Language:</label><br/>"
+ "<select id='rtl-lang-select' onchange='setLang(this.value)' style='width:100%;margin-top:4px'>"
+ "<option value='en'>English</option><option value='ja'>日本語</option></select></div>";
+ "<li><a href='update.html' data-i18n='nav_fw_update'>Firmware Update</a></li></ul>";
document.addEventListener('DOMContentLoaded', function() {
var sel = document.getElementById('rtl-lang-select');
if (sel) sel.value = rtlLang;
var links = document.querySelectorAll('#sidebar a[data-i18n]');
links.forEach(function(el) {
var key = el.getAttribute('data-i18n');