Stage 367: PR #2367 — fix: add i18n support to settings sidebar menu items by @mccxj

This commit is contained in:
Hermes Agent
2026-05-16 05:43:27 +00:00
2 changed files with 16 additions and 5 deletions
+11
View File
@@ -508,6 +508,7 @@ const LOCALES = {
settings_tab_conversation: 'Conversation',
settings_tab_appearance: 'Appearance',
settings_tab_preferences: 'Preferences',
settings_tab_plugins: 'Plugins',
settings_tab_system: 'System',
settings_title: 'Settings',
settings_save_btn: 'Save Settings',
@@ -1697,6 +1698,7 @@ const LOCALES = {
settings_tab_conversation: 'Conversazione',
settings_tab_appearance: 'Aspetto',
settings_tab_preferences: 'Preferenze',
settings_tab_plugins: 'Plugin',
settings_tab_system: 'Sistema',
settings_title: 'Impostazioni',
settings_save_btn: 'Salva Impostazioni',
@@ -2878,6 +2880,7 @@ const LOCALES = {
settings_tab_conversation: '会話',
settings_tab_appearance: '外観',
settings_tab_preferences: '環境設定',
settings_tab_plugins: 'プラグイン',
settings_tab_system: 'システム',
settings_title: '設定',
settings_save_btn: '設定を保存',
@@ -4564,6 +4567,7 @@ const LOCALES = {
settings_tab_appearance: 'Appearance',
settings_tab_conversation: 'Conversation',
settings_tab_preferences: 'Preferences',
settings_tab_plugins: 'Плагины',
settings_tab_system: 'System',
status_updated: 'Updated',
status_ephemeral: 'Ephemeral snapshot — not saved to transcript history.',
@@ -5672,6 +5676,7 @@ const LOCALES = {
settings_tab_appearance: 'Appearance',
settings_tab_conversation: 'Conversation',
settings_tab_preferences: 'Preferences',
settings_tab_plugins: 'Plugins',
settings_tab_system: 'System',
status_updated: 'Updated',
status_ephemeral: 'Ephemeral snapshot — not saved to transcript history.',
@@ -6516,6 +6521,7 @@ const LOCALES = {
settings_tab_appearance: 'Appearance',
settings_tab_conversation: 'Conversation',
settings_tab_preferences: 'Preferences',
settings_tab_plugins: 'Plugins',
settings_tab_system: 'System',
status_updated: 'Updated',
status_ephemeral: 'Ephemeral snapshot — not saved to transcript history.',
@@ -7909,6 +7915,7 @@ const LOCALES = {
settings_tab_appearance: '外观',
settings_tab_conversation: '对话',
settings_tab_preferences: '偏好',
settings_tab_plugins: '插件',
settings_tab_system: '系统',
status_updated: '已更新',
status_ephemeral: '临时快照 — 不会保存到对话记录。',
@@ -8368,6 +8375,7 @@ const LOCALES = {
settings_tab_conversation: '對話',
settings_tab_appearance: '外觀',
settings_tab_preferences: '偏好設定',
settings_tab_plugins: '外掛',
settings_tab_system: '系統',
settings_title: '\u8a2d\u5b9a',
settings_save_btn: '\u5132\u5b58\u8a2d\u5b9a',
@@ -9637,6 +9645,7 @@ const LOCALES = {
settings_tab_conversation: 'Conversa',
settings_tab_appearance: 'Aparência',
settings_tab_preferences: 'Preferências',
settings_tab_plugins: 'Plugins',
settings_tab_system: 'Sistema',
settings_title: 'Configurações',
settings_save_btn: 'Salvar Configurações',
@@ -10721,6 +10730,7 @@ const LOCALES = {
settings_tab_conversation: '대화',
settings_tab_appearance: '외형',
settings_tab_preferences: '환경설정',
settings_tab_plugins: '플러그인',
settings_tab_system: '시스템',
settings_title: '설정',
settings_save_btn: '설정 저장',
@@ -11822,6 +11832,7 @@ const LOCALES = {
settings_tab_conversation: 'Conversation',
settings_tab_appearance: 'Apparence',
settings_tab_preferences: 'Préférences',
settings_tab_plugins: 'Plugins',
settings_tab_system: 'Système',
settings_title: 'Paramètres',
settings_save_btn: 'Enregistrer les paramètres',
+5 -5
View File
@@ -279,15 +279,15 @@
<div class="side-menu" id="settingsMenu">
<button type="button" class="side-menu-item active" data-settings-section="conversation" onclick="switchSettingsSection('conversation')">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>
<span>Conversation</span>
<span data-i18n="settings_tab_conversation">Conversation</span>
</button>
<button type="button" class="side-menu-item" data-settings-section="appearance" onclick="switchSettingsSection('appearance')">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="3"/><path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"/></svg>
<span>Appearance</span>
<span data-i18n="settings_tab_appearance">Appearance</span>
</button>
<button type="button" class="side-menu-item" data-settings-section="preferences" onclick="switchSettingsSection('preferences')">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><line x1="4" y1="21" x2="4" y2="14"/><line x1="4" y1="10" x2="4" y2="3"/><line x1="12" y1="21" x2="12" y2="12"/><line x1="12" y1="8" x2="12" y2="3"/><line x1="20" y1="21" x2="20" y2="16"/><line x1="20" y1="12" x2="20" y2="3"/><line x1="1" y1="14" x2="7" y2="14"/><line x1="9" y1="8" x2="15" y2="8"/><line x1="17" y1="16" x2="23" y2="16"/></svg>
<span>Preferences</span>
<span data-i18n="settings_tab_preferences">Preferences</span>
</button>
<button type="button" class="side-menu-item" data-settings-section="providers" onclick="switchSettingsSection('providers')">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4"/></svg>
@@ -295,11 +295,11 @@
</button>
<button type="button" class="side-menu-item" data-settings-section="plugins" onclick="switchSettingsSection('plugins')">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M12 2l3 7h7l-5.5 4.3 2.1 7L12 16.2 5.4 20.3l2.1-7L2 9h7z"/></svg>
<span>Plugins</span>
<span data-i18n="settings_tab_plugins">Plugins</span>
</button>
<button type="button" class="side-menu-item" data-settings-section="system" onclick="switchSettingsSection('system')">
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="3" width="20" height="8" rx="2"/><rect x="2" y="13" width="20" height="8" rx="2"/><line x1="6" y1="7" x2="6.01" y2="7"/><line x1="6" y1="17" x2="6.01" y2="17"/></svg>
<span>System</span>
<span data-i18n="settings_tab_system">System</span>
</button>
</div>
</div>