From 8ba48d9df0c8d8707a75709368f40747e9808c8c Mon Sep 17 00:00:00 2001 From: icarus Date: Wed, 22 Oct 2025 06:19:18 +0800 Subject: [PATCH] feat(i18n): update translations for multiple languages - Add mermaid_fix translations for all supported languages - Complete missing translations marked with "[to be translated]" - Convert array to object for accessibility description in zh-cn --- src/renderer/src/i18n/locales/zh-cn.json | 15 ++++++++----- src/renderer/src/i18n/locales/zh-tw.json | 9 ++++++-- src/renderer/src/i18n/translate/el-gr.json | 25 +++++++++++++--------- src/renderer/src/i18n/translate/es-es.json | 25 +++++++++++++--------- src/renderer/src/i18n/translate/fr-fr.json | 25 +++++++++++++--------- src/renderer/src/i18n/translate/ja-jp.json | 25 +++++++++++++--------- src/renderer/src/i18n/translate/pt-pt.json | 25 +++++++++++++--------- src/renderer/src/i18n/translate/ru-ru.json | 25 +++++++++++++--------- 8 files changed, 107 insertions(+), 67 deletions(-) diff --git a/src/renderer/src/i18n/locales/zh-cn.json b/src/renderer/src/i18n/locales/zh-cn.json index b4c0864b58..1cd73f762b 100644 --- a/src/renderer/src/i18n/locales/zh-cn.json +++ b/src/renderer/src/i18n/locales/zh-cn.json @@ -940,6 +940,11 @@ } }, "expand": "展开", + "mermaid_fix": { + "failed": "修复失败", + "invalid_result": "模型返回了无效数据。请重试或尝试更换快速模型。", + "label": "修复 mermaid 错误" + }, "more": "更多", "run": "运行代码", "split": { @@ -2676,11 +2681,11 @@ "go_to_settings": "去设置", "open_accessibility_settings": "打开辅助功能设置" }, - "description": [ - "划词助手需「辅助功能权限」才能正常工作。", - "请点击「去设置」,并在稍后弹出的权限请求弹窗中点击 「打开系统设置」 按钮,然后在之后的应用列表中找到 「Cherry Studio」,并打开权限开关。", - "完成设置后,请再次开启划词助手。" - ], + "description": { + "0": "划词助手需「辅助功能权限」才能正常工作。", + "1": "请点击「去设置」,并在稍后弹出的权限请求弹窗中点击 「打开系统设置」 按钮,然后在之后的应用列表中找到 「Cherry Studio」,并打开权限开关。", + "2": "完成设置后,请再次开启划词助手。" + }, "title": "辅助功能权限" }, "title": "启用" diff --git a/src/renderer/src/i18n/locales/zh-tw.json b/src/renderer/src/i18n/locales/zh-tw.json index 749ee263cd..51a7f9e2c1 100644 --- a/src/renderer/src/i18n/locales/zh-tw.json +++ b/src/renderer/src/i18n/locales/zh-tw.json @@ -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}} 傳送", @@ -940,6 +940,11 @@ } }, "expand": "展開", + "mermaid_fix": { + "failed": "修復失敗", + "invalid_result": "模型傳回無效資料。請再試一次,或嘗試更換快速模型。", + "label": "修復 mermaid 錯誤" + }, "more": "更多", "run": "運行代碼", "split": { @@ -4229,7 +4234,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": "點選工具列圖示啟動", diff --git a/src/renderer/src/i18n/translate/el-gr.json b/src/renderer/src/i18n/translate/el-gr.json index 1d5e2ea085..5cfe6ae0df 100644 --- a/src/renderer/src/i18n/translate/el-gr.json +++ b/src/renderer/src/i18n/translate/el-gr.json @@ -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}} για αποστολή", @@ -940,6 +940,11 @@ } }, "expand": "επιλογή", + "mermaid_fix": { + "failed": "Αποτυχία διόρθωσης", + "invalid_result": "Το μοντέλο επέστρεψε άκυρα δεδομένα. Δοκιμάστε ξανά ή δοκιμάστε να αλλάξετε το γρήγορο μοντέλο.", + "label": "Διόρθωση σφάλματος mermaid" + }, "more": "Περισσότερα", "run": "Εκτέλεση κώδικα", "split": { @@ -1961,12 +1966,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": { @@ -2116,8 +2121,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": "Αποτυχία εκκαθάρισης του παλιού runtime OVMS", "run": "Η εκτέλεση του OVMS απέτυχε:", "stop": "Η διακοπή του OVMS απέτυχε:" }, @@ -4229,7 +4234,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": "Επιλέξτε την εικόνα στο πίνακα για να ενεργοποιήσετε", diff --git a/src/renderer/src/i18n/translate/es-es.json b/src/renderer/src/i18n/translate/es-es.json index dec0ef59e5..689c11fb63 100644 --- a/src/renderer/src/i18n/translate/es-es.json +++ b/src/renderer/src/i18n/translate/es-es.json @@ -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", @@ -940,6 +940,11 @@ } }, "expand": "Expandir", + "mermaid_fix": { + "failed": "No se pudo corregir", + "invalid_result": "El modelo devolvió datos no válidos. Inténtalo de nuevo o prueba cambiando el modelo rápido.", + "label": "Corregir el error de mermaid" + }, "more": "Más", "run": "Ejecutar código", "split": { @@ -1961,12 +1966,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": "内容", + "found_results": "Se encontraron {{count}} resultados (nombre: {{nameCount}}, contenido: {{contentCount}})", + "more_matches": "un partido", + "searching": "Buscando...", + "show_less": "Minimizar" }, "settings": { "data": { @@ -2116,8 +2121,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 runtime antiguo de OVMS", "run": "Error al ejecutar OVMS:", "stop": "Error al detener OVMS:" }, @@ -4229,7 +4234,7 @@ "system": "Proxy del sistema", "title": "Modo de proxy" }, - "tip": "[to be translated]:支持模糊匹配(*.test.com,192.168.0.0/16)" + "tip": "Admite coincidencias difusas (*.test.com, 192.168.0.0/16)" }, "quickAssistant": { "click_tray_to_show": "Haz clic en el icono de la bandeja para iniciar", diff --git a/src/renderer/src/i18n/translate/fr-fr.json b/src/renderer/src/i18n/translate/fr-fr.json index 1f26564f5a..b72224c019 100644 --- a/src/renderer/src/i18n/translate/fr-fr.json +++ b/src/renderer/src/i18n/translate/fr-fr.json @@ -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", @@ -940,6 +940,11 @@ } }, "expand": "Développer", + "mermaid_fix": { + "failed": "Échec de la correction", + "invalid_result": "Le modèle a renvoyé des données invalides. Veuillez réessayer ou essayer de changer le modèle rapide.", + "label": "Corriger l'erreur mermaid" + }, "more": "Plus", "run": "Exécuter le code", "split": { @@ -1961,12 +1966,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": "内容", + "found_results": "Trouvé {{count}} résultats (nom : {{nameCount}}, contenu : {{contentCount}})", + "more_matches": "une correspondance", + "searching": "Recherche en cours...", + "show_less": "Réduire" }, "settings": { "data": { @@ -2116,8 +2121,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 :" }, @@ -4229,7 +4234,7 @@ "system": "Proxy système", "title": "Mode de proxy" }, - "tip": "[to be translated]:支持模糊匹配(*.test.com,192.168.0.0/16)" + "tip": "Prend en charge 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", diff --git a/src/renderer/src/i18n/translate/ja-jp.json b/src/renderer/src/i18n/translate/ja-jp.json index aae0fdb3cd..0b044f1161 100644 --- a/src/renderer/src/i18n/translate/ja-jp.json +++ b/src/renderer/src/i18n/translate/ja-jp.json @@ -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}} を押して送信...", @@ -940,6 +940,11 @@ } }, "expand": "展開する", + "mermaid_fix": { + "failed": "修正に失敗しました", + "invalid_result": "モデルが無効なデータを返しました。もう一度試すか、クイックモデルの変更をお試しください。", + "label": "mermaidのエラーを修正する" + }, "more": "もっと", "run": "コードを実行", "split": { @@ -1961,12 +1966,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": { @@ -2116,8 +2121,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の停止に失敗しました:" }, @@ -4229,7 +4234,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": "トレイアイコンをクリックして起動", diff --git a/src/renderer/src/i18n/translate/pt-pt.json b/src/renderer/src/i18n/translate/pt-pt.json index f534e7beab..fac9b39501 100644 --- a/src/renderer/src/i18n/translate/pt-pt.json +++ b/src/renderer/src/i18n/translate/pt-pt.json @@ -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", @@ -940,6 +940,11 @@ } }, "expand": "Expandir", + "mermaid_fix": { + "failed": "Falha ao corrigir", + "invalid_result": "O modelo retornou dados inválidos. Por favor, tente novamente ou experimente alterar o modelo rápido.", + "label": "Corrigir erro do mermaid" + }, "more": "Mais", "run": "Executar código", "split": { @@ -1961,12 +1966,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": "um correspondente", + "searching": "Pesquisando...", + "show_less": "recolher" }, "settings": { "data": { @@ -2116,8 +2121,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 tempo de execução antigo do OVMS", "run": "Falha ao executar o OVMS:", "stop": "Falha ao parar o OVMS:" }, @@ -4229,7 +4234,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", diff --git a/src/renderer/src/i18n/translate/ru-ru.json b/src/renderer/src/i18n/translate/ru-ru.json index 04d8fde189..68625f2d4e 100644 --- a/src/renderer/src/i18n/translate/ru-ru.json +++ b/src/renderer/src/i18n/translate/ru-ru.json @@ -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}} для отправки", @@ -940,6 +940,11 @@ } }, "expand": "Развернуть", + "mermaid_fix": { + "failed": "Не удалось исправить", + "invalid_result": "Модель вернула недопустимые данные. Пожалуйста, попробуйте еще раз или попробуйте изменить быструю модель.", + "label": "Исправить ошибку mermaid" + }, "more": "Ещё", "run": "Выполнить код", "split": { @@ -1961,12 +1966,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": { @@ -2116,8 +2121,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:" }, @@ -4229,7 +4234,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": "Нажмите на иконку трея для запуска",