Skip to content
Draft
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/shared/data/preference/preferenceSchemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export interface PreferenceSchemas {
'app.proxy.mode': PreferenceTypes.ProxyMode
// redux/settings/proxyUrl
'app.proxy.url': string
'app.settings.provider.hide_disabled': boolean
Copy link
Collaborator

@0xfullex 0xfullex Oct 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note

This comment was translated by Claude.

Preference already contains setting. This naming is semantically redundant.
Additionally, the app prefix refers to globally effective and application-wide related configurations, so it shouldn't be used here.
The correct naming should be ui.provider.show_disabled.

  1. This is a UI category option related to providers.
  2. We generally conventionally use affirmative rather than negative expressions for options (so use show instead of hide, and the default value needs to be adjusted accordingly).

Original Content

preference就是包含setting。这个命名语义重复了
此外,app前缀是指全局生效和应用整体相关的配置,这里不应该用app
正确应该是 ui.provider.show_disabled

  1. 这是一个ui类别的,和provider相关的选项
  2. 我们一般约定用正义而不是反义来表达选项(所以用show而不是hide,对应默认值需要调整)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

// redux/settings/enableSpellCheck
'app.spell_check.enabled': boolean
// redux/settings/spellCheckLanguages
Expand Down Expand Up @@ -433,6 +434,7 @@ export const DefaultPreferences: PreferenceSchemas = {
'app.proxy.bypass_rules': '',
'app.proxy.mode': 'system',
'app.proxy.url': '',
'app.settings.provider.hide_disabled': false,
'app.spell_check.enabled': false,
'app.spell_check.languages': [],
'app.tray.enabled': true,
Expand Down
7 changes: 6 additions & 1 deletion src/renderer/src/i18n/locales/en-us.json
Original file line number Diff line number Diff line change
Expand Up @@ -4176,6 +4176,11 @@
"docs_check": "Check",
"docs_more_details": "for more details",
"get_api_key": "Get API Key",
"list": {
"settings": {
"hide_disabled": "Hide disabled providers"
}
},
"misc": "Other",
"no_models_for_check": "No models available for checking (e.g. chat models)",
"not_checked": "Not Checked",
Expand Down Expand Up @@ -4230,7 +4235,7 @@
"system": "System Proxy",
"title": "Proxy Mode"
},
"tip": "[to be translated]:支持模糊匹配(*.test.com,192.168.0.0/16)"
"tip": "Supports fuzzy matching (*.test.com, 192.168.0.0/16)"
},
"quickAssistant": {
"click_tray_to_show": "Click the tray icon to start",
Expand Down
4 changes: 2 additions & 2 deletions src/renderer/src/i18n/locales/zh-tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@
"context": "清除上下文 {{Command}}"
},
"new_topic": "新話題 {{Command}}",
"paste_text_file_confirm": "[to be translated]:粘贴到输入框?",
"paste_text_file_confirm": "貼到輸入框?",
"pause": "暫停",
"placeholder": "在此輸入您的訊息,按 {{key}} 傳送 - @ 選擇模型,/ 包含工具",
"placeholder_without_triggers": "在此輸入您的訊息,按 {{key}} 傳送",
Expand Down Expand Up @@ -4230,7 +4230,7 @@
"system": "系統代理伺服器",
"title": "代理伺服器模式"
},
"tip": "[to be translated]:支持模糊匹配(*.test.com,192.168.0.0/16)"
"tip": "支援模糊匹配(*.test.com,192.168.0.0/16"
},
"quickAssistant": {
"click_tray_to_show": "點選工具列圖示啟動",
Expand Down
10 changes: 5 additions & 5 deletions src/renderer/src/i18n/translate/de-de.json
Original file line number Diff line number Diff line change
Expand Up @@ -2656,11 +2656,11 @@
"go_to_settings": "Zu Einstellungen",
"open_accessibility_settings": "Bedienungshilfen-Einstellungen öffnen"
},
"description": [
"Der Textauswahl-Assistent benötigt <strong>Bedienungshilfen-Berechtigungen</strong>, um ordnungsgemäß zu funktionieren.",
"Klicken Sie auf <strong>Zu Einstellungen</strong> und anschließend im Berechtigungsdialog auf <strong>Systemeinstellungen öffnen</strong>. Suchen Sie danach in der App-Liste <strong>Cherry Studio</strong> und aktivieren Sie den Schalter.",
"Nach Abschluss der Einrichtung Textauswahl-Assistent erneut aktivieren."
],
"description": {
"0": "Der Textauswahl-Assistent benötigt <strong>Bedienungshilfen-Berechtigungen</strong>, um ordnungsgemäß zu funktionieren.",
"1": "Klicken Sie auf <strong>Zu Einstellungen</strong> und anschließend im Berechtigungsdialog auf <strong>Systemeinstellungen öffnen</strong>. Suchen Sie danach in der App-Liste <strong>Cherry Studio</strong> und aktivieren Sie den Schalter.",
"2": "Nach Abschluss der Einrichtung Textauswahl-Assistent erneut aktivieren."
},
"title": "Bedienungshilfen-Berechtigung"
},
"title": "Aktivieren"
Expand Down
20 changes: 10 additions & 10 deletions src/renderer/src/i18n/translate/el-gr.json
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@
"context": "Καθαρισμός ενδιάμεσων {{Command}}"
},
"new_topic": "Νέο θέμα {{Command}}",
"paste_text_file_confirm": "[to be translated]:粘贴到输入框?",
"paste_text_file_confirm": "Επικόλληση στο πλαίσιο εισόδου;",
"pause": "Παύση",
"placeholder": "Εισάγετε μήνυμα εδώ...",
"placeholder_without_triggers": "Γράψτε το μήνυμά σας εδώ, πατήστε {{key}} για αποστολή",
Expand Down Expand Up @@ -1962,12 +1962,12 @@
"rename_changed": "Λόγω πολιτικής ασφάλειας, το όνομα του αρχείου έχει αλλάξει από {{original}} σε {{final}}",
"save": "αποθήκευση στις σημειώσεις",
"search": {
"both": "[to be translated]:名称+内容",
"content": "[to be translated]:内容",
"found_results": "[to be translated]:找到 {{count}} 个结果 (名称: {{nameCount}}, 内容: {{contentCount}})",
"more_matches": "[to be translated]:个匹配",
"searching": "[to be translated]:搜索中...",
"show_less": "[to be translated]:收起"
"both": "Όνομα + περιεχόμενο",
"content": "περιεχόμενο",
"found_results": "Βρέθηκαν {{count}} αποτελέσματα (όνομα: {{nameCount}}, περιεχόμενο: {{contentCount}})",
"more_matches": "ένας αγώνας",
"searching": "Αναζήτηση...",
"show_less": "κλείσιμο"
},
"settings": {
"data": {
Expand Down Expand Up @@ -2117,8 +2117,8 @@
"install_code_103": "Η λήψη του OVMS runtime απέτυχε",
"install_code_104": "Η αποσυμπίεση του OVMS runtime απέτυχε",
"install_code_105": "Ο καθαρισμός του OVMS runtime απέτυχε",
"install_code_106": "[to be translated]:创建 run.bat 失败",
"install_code_110": "[to be translated]:清理旧 OVMS runtime 失败",
"install_code_106": "Η δημιουργία του run.bat απέτυχε",
"install_code_110": "Η διαγραφή του παλιού χρόνου εκτέλεσης OVMS απέτυχε",
"run": "Η εκτέλεση του OVMS απέτυχε:",
"stop": "Η διακοπή του OVMS απέτυχε:"
},
Expand Down Expand Up @@ -4230,7 +4230,7 @@
"system": "συστηματική προξενική",
"title": "κλίμακα προξενικής"
},
"tip": "[to be translated]:支持模糊匹配(*.test.com,192.168.0.0/16)"
"tip": "υποστηρίζει ασαφή αντιστοίχιση (*.test.com,192.168.0.0/16)"
},
"quickAssistant": {
"click_tray_to_show": "Επιλέξτε την εικόνα στο πίνακα για να ενεργοποιήσετε",
Expand Down
20 changes: 10 additions & 10 deletions src/renderer/src/i18n/translate/es-es.json
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@
"context": "Limpiar contexto {{Command}}"
},
"new_topic": "Nuevo tema {{Command}}",
"paste_text_file_confirm": "[to be translated]:粘贴到输入框?",
"paste_text_file_confirm": "¿Pegar en el cuadro de entrada?",
"pause": "Pausar",
"placeholder": "Escribe aquí tu mensaje...",
"placeholder_without_triggers": "Escribe tu mensaje aquí, presiona {{key}} para enviar",
Expand Down Expand Up @@ -1962,12 +1962,12 @@
"rename_changed": "Debido a políticas de seguridad, el nombre del archivo ha cambiado de {{original}} a {{final}}",
"save": "Guardar en notas",
"search": {
"both": "[to be translated]:名称+内容",
"content": "[to be translated]:内容",
"found_results": "[to be translated]:找到 {{count}} 个结果 (名称: {{nameCount}}, 内容: {{contentCount}})",
"more_matches": "[to be translated]:个匹配",
"searching": "[to be translated]:搜索中...",
"show_less": "[to be translated]:收起"
"both": "nombre+contenido",
"content": "contenido",
"found_results": "encontrados {{count}} resultados (nombre: {{nameCount}}, contenido: {{contentCount}})",
"more_matches": "una coincidencia",
"searching": "Buscando...",
"show_less": "Recoger"
},
"settings": {
"data": {
Expand Down Expand Up @@ -2117,8 +2117,8 @@
"install_code_103": "Error al descargar el tiempo de ejecución de OVMS",
"install_code_104": "Error al descomprimir el tiempo de ejecución de OVMS",
"install_code_105": "Error al limpiar el tiempo de ejecución de OVMS",
"install_code_106": "[to be translated]:创建 run.bat 失败",
"install_code_110": "[to be translated]:清理旧 OVMS runtime 失败",
"install_code_106": "Error al crear run.bat",
"install_code_110": "Error al limpiar el antiguo runtime de OVMS",
"run": "Error al ejecutar OVMS:",
"stop": "Error al detener OVMS:"
},
Expand Down Expand Up @@ -4230,7 +4230,7 @@
"system": "Proxy del sistema",
"title": "Modo de proxy"
},
"tip": "[to be translated]:支持模糊匹配(*.test.com,192.168.0.0/16)"
"tip": "Admite coincidencia difusa (*.test.com,192.168.0.0/16)"
},
"quickAssistant": {
"click_tray_to_show": "Haz clic en el icono de la bandeja para iniciar",
Expand Down
20 changes: 10 additions & 10 deletions src/renderer/src/i18n/translate/fr-fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@
"context": "Effacer le contexte {{Command}}"
},
"new_topic": "Nouveau sujet {{Command}}",
"paste_text_file_confirm": "[to be translated]:粘贴到输入框?",
"paste_text_file_confirm": "Coller dans la zone de saisie ?",
"pause": "Pause",
"placeholder": "Entrez votre message ici...",
"placeholder_without_triggers": "Tapez votre message ici, appuyez sur {{key}} pour envoyer",
Expand Down Expand Up @@ -1962,12 +1962,12 @@
"rename_changed": "En raison de la politique de sécurité, le nom du fichier a été changé de {{original}} à {{final}}",
"save": "sauvegarder dans les notes",
"search": {
"both": "[to be translated]:名称+内容",
"content": "[to be translated]:内容",
"found_results": "[to be translated]:找到 {{count}} 个结果 (名称: {{nameCount}}, 内容: {{contentCount}})",
"more_matches": "[to be translated]:个匹配",
"searching": "[to be translated]:搜索中...",
"show_less": "[to be translated]:收起"
"both": "Nom + contenu",
"content": "suivre l’instruction du système",
"found_results": "{{count}} résultats trouvés (nom : {{nameCount}}, contenu : {{contentCount}})",
"more_matches": "une correspondance",
"searching": "Recherche en cours...",
"show_less": "Replier"
},
"settings": {
"data": {
Expand Down Expand Up @@ -2117,8 +2117,8 @@
"install_code_103": "Échec du téléchargement du runtime OVMS",
"install_code_104": "Échec de la décompression du runtime OVMS",
"install_code_105": "Échec du nettoyage du runtime OVMS",
"install_code_106": "[to be translated]:创建 run.bat 失败",
"install_code_110": "[to be translated]:清理旧 OVMS runtime 失败",
"install_code_106": "Échec de la création de run.bat",
"install_code_110": "Échec du nettoyage de l'ancien runtime OVMS",
"run": "Échec de l'exécution d'OVMS :",
"stop": "Échec de l'arrêt d'OVMS :"
},
Expand Down Expand Up @@ -4230,7 +4230,7 @@
"system": "Proxy système",
"title": "Mode de proxy"
},
"tip": "[to be translated]:支持模糊匹配(*.test.com,192.168.0.0/16)"
"tip": "Prise en charge de la correspondance floue (*.test.com, 192.168.0.0/16)"
},
"quickAssistant": {
"click_tray_to_show": "Cliquez sur l'icône dans la barre d'état système pour démarrer",
Expand Down
20 changes: 10 additions & 10 deletions src/renderer/src/i18n/translate/ja-jp.json
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@
"context": "コンテキストをクリア {{Command}}"
},
"new_topic": "新しいトピック {{Command}}",
"paste_text_file_confirm": "[to be translated]:粘贴到输入框?",
"paste_text_file_confirm": "入力ボックスに貼り付けますか?",
"pause": "一時停止",
"placeholder": "ここにメッセージを入力し、{{key}} を押して送信...",
"placeholder_without_triggers": "ここにメッセージを入力し、{{key}} を押して送信...",
Expand Down Expand Up @@ -1962,12 +1962,12 @@
"rename_changed": "セキュリティポリシーにより、ファイル名は{{original}}から{{final}}に変更されました",
"save": "メモに保存する",
"search": {
"both": "[to be translated]:名称+内容",
"content": "[to be translated]:内容",
"found_results": "[to be translated]:找到 {{count}} 个结果 (名称: {{nameCount}}, 内容: {{contentCount}})",
"more_matches": "[to be translated]:个匹配",
"searching": "[to be translated]:搜索中...",
"show_less": "[to be translated]:收起"
"both": "名称+内容",
"content": "内容",
"found_results": "{{count}} 件の結果が見つかりました(名称: {{nameCount}}内容: {{contentCount}}",
"more_matches": "個マッチ",
"searching": "検索中...",
"show_less": "閉じる"
},
"settings": {
"data": {
Expand Down Expand Up @@ -2117,8 +2117,8 @@
"install_code_103": "OVMSランタイムのダウンロードに失敗しました",
"install_code_104": "OVMSランタイムの解凍に失敗しました",
"install_code_105": "OVMSランタイムのクリーンアップに失敗しました",
"install_code_106": "[to be translated]:创建 run.bat 失败",
"install_code_110": "[to be translated]:清理旧 OVMS runtime 失败",
"install_code_106": "run.batの作成に失敗しました",
"install_code_110": "古いOVMSランタイムのクリーンアップに失敗しました",
"run": "OVMSの実行に失敗しました:",
"stop": "OVMSの停止に失敗しました:"
},
Expand Down Expand Up @@ -4230,7 +4230,7 @@
"system": "システムプロキシ",
"title": "プロキシモード"
},
"tip": "[to be translated]:支持模糊匹配(*.test.com,192.168.0.0/16)"
"tip": "ワイルドカード一致をサポート (*.test.com, 192.168.0.0/16)"
},
"quickAssistant": {
"click_tray_to_show": "トレイアイコンをクリックして起動",
Expand Down
20 changes: 10 additions & 10 deletions src/renderer/src/i18n/translate/pt-pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@
"context": "Limpar contexto {{Command}}"
},
"new_topic": "Novo tópico {{Command}}",
"paste_text_file_confirm": "[to be translated]:粘贴到输入框?",
"paste_text_file_confirm": "Colar na caixa de entrada?",
"pause": "Pausar",
"placeholder": "Digite sua mensagem aqui...",
"placeholder_without_triggers": "Escreve a tua mensagem aqui, pressiona {{key}} para enviar",
Expand Down Expand Up @@ -1962,12 +1962,12 @@
"rename_changed": "Devido às políticas de segurança, o nome do arquivo foi alterado de {{original}} para {{final}}",
"save": "salvar em notas",
"search": {
"both": "[to be translated]:名称+内容",
"content": "[to be translated]:内容",
"found_results": "[to be translated]:找到 {{count}} 个结果 (名称: {{nameCount}}, 内容: {{contentCount}})",
"more_matches": "[to be translated]:个匹配",
"searching": "[to be translated]:搜索中...",
"show_less": "[to be translated]:收起"
"both": "nome+conteúdo",
"content": "conteúdo",
"found_results": "Encontrados {{count}} resultados (nome: {{nameCount}}, conteúdo: {{contentCount}})",
"more_matches": "个匹配",
"searching": "Procurando...",
"show_less": "Recolher"
},
"settings": {
"data": {
Expand Down Expand Up @@ -2117,8 +2117,8 @@
"install_code_103": "Falha ao baixar o tempo de execução do OVMS",
"install_code_104": "Falha ao descompactar o tempo de execução do OVMS",
"install_code_105": "Falha ao limpar o tempo de execução do OVMS",
"install_code_106": "[to be translated]:创建 run.bat 失败",
"install_code_110": "[to be translated]:清理旧 OVMS runtime 失败",
"install_code_106": "Falha ao criar run.bat",
"install_code_110": "Falha ao limpar o antigo runtime OVMS",
"run": "Falha ao executar o OVMS:",
"stop": "Falha ao parar o OVMS:"
},
Expand Down Expand Up @@ -4230,7 +4230,7 @@
"system": "Proxy do Sistema",
"title": "Modo de Proxy"
},
"tip": "[to be translated]:支持模糊匹配(*.test.com,192.168.0.0/16)"
"tip": "Suporta correspondência difusa (*.test.com, 192.168.0.0/16)"
},
"quickAssistant": {
"click_tray_to_show": "Clique no ícone da bandeja para iniciar",
Expand Down
20 changes: 10 additions & 10 deletions src/renderer/src/i18n/translate/ru-ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@
"context": "Очистить контекст {{Command}}"
},
"new_topic": "Новый топик {{Command}}",
"paste_text_file_confirm": "[to be translated]:粘贴到输入框?",
"paste_text_file_confirm": "Вставить в поле ввода?",
"pause": "Остановить",
"placeholder": "Введите ваше сообщение здесь, нажмите {{key}} для отправки...",
"placeholder_without_triggers": "Напишите сообщение здесь, нажмите {{key}} для отправки",
Expand Down Expand Up @@ -1962,12 +1962,12 @@
"rename_changed": "В связи с политикой безопасности имя файла было изменено с {{Original}} на {{final}}",
"save": "Сохранить в заметки",
"search": {
"both": "[to be translated]:名称+内容",
"content": "[to be translated]:内容",
"found_results": "[to be translated]:找到 {{count}} 个结果 (名称: {{nameCount}}, 内容: {{contentCount}})",
"more_matches": "[to be translated]:个匹配",
"searching": "[to be translated]:搜索中...",
"show_less": "[to be translated]:收起"
"both": "Название+содержание",
"content": "содержание",
"found_results": "Найдено результатов: {{count}} (название: {{nameCount}}, содержание: {{contentCount}})",
"more_matches": "соответствие",
"searching": "Поиск...",
"show_less": "Свернуть"
},
"settings": {
"data": {
Expand Down Expand Up @@ -2117,8 +2117,8 @@
"install_code_103": "Ошибка загрузки среды выполнения OVMS",
"install_code_104": "Ошибка распаковки среды выполнения OVMS",
"install_code_105": "Ошибка очистки среды выполнения OVMS",
"install_code_106": "[to be translated]:创建 run.bat 失败",
"install_code_110": "[to be translated]:清理旧 OVMS runtime 失败",
"install_code_106": "Создание run.bat не удалось",
"install_code_110": "Очистка старой среды выполнения OVMS не удалась",
"run": "Ошибка запуска OVMS:",
"stop": "Ошибка остановки OVMS:"
},
Expand Down Expand Up @@ -4230,7 +4230,7 @@
"system": "Системный прокси",
"title": "Режим прокси"
},
"tip": "[to be translated]:支持模糊匹配(*.test.com,192.168.0.0/16)"
"tip": "Поддержка нечеткого соответствия (*.test.com, 192.168.0.0/16)"
},
"quickAssistant": {
"click_tray_to_show": "Нажмите на иконку трея для запуска",
Expand Down
Loading
Loading