Skip to content

Commit

Permalink
Centralize 'apiKey' references in i18n and fix some missing translations
Browse files Browse the repository at this point in the history
Merge 'apiKey' entries across BotSettings into 'common.apiKey' to
eliminate duplicates and address previous translation omissions. This
ensures consistency and completeness of all apiKey entries in i18n.
  • Loading branch information
PeterDaveHello authored and sunner committed May 4, 2024
1 parent 0a9a37d commit 497d2ec
Show file tree
Hide file tree
Showing 16 changed files with 60 additions and 49 deletions.
2 changes: 1 addition & 1 deletion src/components/BotSettings/ClaudeAPIBotSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const settings = [
{
type: Type.Text,
name: "apiKey",
title: "claudeApi.apiKey",
title: "common.apiKey",
description: "settings.secretPrompt",
placeholder: "sk-...",
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/BotSettings/CohereAPIBotSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const settings = [
{
type: Type.Text,
name: "apiKey",
title: "cohereApi.apiKey",
title: "common.apiKey",
description: "settings.secretPrompt",
placeholder: "...",
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/BotSettings/GeminiAPIBotSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const settings = [
{
type: Type.Text,
name: "apiKey",
title: "openaiApi.apiKey",
title: "common.apiKey",
description: "settings.secretPrompt",
placeholder: "...",
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/BotSettings/GroqAPIBotSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const settings = [
{
type: Type.Text,
name: "apiKey",
title: "groqApi.apiKey",
title: "common.apiKey",
description: "settings.secretPrompt",
placeholder: "gsk_...",
},
Expand Down
2 changes: 1 addition & 1 deletion src/components/BotSettings/OpenAIAPIBotSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const settings = [
{
type: Type.Text,
name: "apiKey",
title: "openaiApi.apiKey",
title: "common.apiKey",
description: "settings.secretPrompt",
placeholder: "sk-...",
},
Expand Down
9 changes: 5 additions & 4 deletions src/i18n/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"secretPrompt": "Ihr geheimer Token verbleibt auf Ihrem Gerät und wird nicht an andere Personen weitergegeben",
"showMenuBar": "Menüleiste anzeigen"
},
"common": {
"apiKey": "API Key"
},
"header": {
"clearMessages": "Alle Nachrichten löschen?",
"singleColumn": "Einzelne Spalte",
Expand Down Expand Up @@ -62,8 +65,7 @@
"command-r": "Command R",
"command-r-plus": "Command R+",
"temperature": "Temperatur",
"temperaturePrompt": "Die Einstellung der Zufälligkeit der Modellausgaben reicht von 0 bis 5. Niedrigere Werte gewährleisten eine präzise und konsistente Ausgabe, ideal für Aufgaben, die genaue Informationen erfordern, wie das Erstellen von Zusammenfassungen. Höhere Einstellungen fördern die Kreativität, können jedoch die Kohärenz bei spezifischen Kontexten oder kurzen Antworten beeinträchtigen.",
"apiKey": "API Key"
"temperaturePrompt": "Die Einstellung der Zufälligkeit der Modellausgaben reicht von 0 bis 5. Niedrigere Werte gewährleisten eine präzise und konsistente Ausgabe, ideal für Aufgaben, die genaue Informationen erfordern, wie das Erstellen von Zusammenfassungen. Höhere Einstellungen fördern die Kreativität, können jedoch die Kohärenz bei spezifischen Kontexten oder kurzen Antworten beeinträchtigen."
},
"bingChat": {
"name": "Copilot",
Expand All @@ -89,8 +91,7 @@
"temperature": "Temperatur",
"temperaturePrompt": "Je höher die Temperatur, desto kreativer der Text, aber desto wahrscheinlicher ist es, dass er inkohärent ist",
"temperature0": "Stärker deterministisch",
"temperature2": "Mehr zufällig",
"apiKey": "API Key"
"temperature2": "Mehr zufällig"
},
"moss": {
"name": "MOSS"
Expand Down
9 changes: 5 additions & 4 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"bots": "AI Bots",
"showMenuBar": "Show Menu Bar"
},
"common": {
"apiKey": "API Key"
},
"header": {
"clearMessages": "Clear all messages in this chat?",
"yes": "Yes",
Expand Down Expand Up @@ -138,8 +141,7 @@
"command-r": "Command R",
"command-r-plus": "Command R+",
"temperature": "Temperature",
"temperaturePrompt": "Adjust output randomness from 0 to 5. Lower temperatures ensure precise, consistent answers, suitable for tasks like summarization. Higher temperatures promote creativity but may reduce coherence, especially in brief or context-specific prompts.",
"apiKey": "API Key"
"temperaturePrompt": "Adjust output randomness from 0 to 5. Lower temperatures ensure precise, consistent answers, suitable for tasks like summarization. Higher temperatures promote creativity but may reduce coherence, especially in brief or context-specific prompts."
},
"bingChat": {
"name": "Copilot",
Expand Down Expand Up @@ -235,8 +237,7 @@
"temperature": "Temperature",
"temperaturePrompt": "The higher the temperature, the more creative the text, but the more likely it is to be incoherent",
"temperature0": "More deterministic",
"temperature2": "More random",
"apiKey": "API Key"
"temperature2": "More random"
},
"poe": {
"name": "Poe",
Expand Down
9 changes: 5 additions & 4 deletions src/i18n/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
"bots": "Bots de IA",
"showMenuBar": "Mostrar barra de menús"
},
"common": {
"apiKey": "Clave API"
},
"header": {
"clearMessages": "¿Borrar todos los mensajes en este chat?",
"yes": "",
Expand Down Expand Up @@ -119,8 +122,7 @@
"command-r": "Command R",
"command-r-plus": "Command R+",
"temperature": "Temperatura",
"temperaturePrompt": "El ajuste de la aleatoriedad en las respuestas del modelo varía de 0 a 5. Un valor más bajo asegura precisión y consistencia en las salidas, ideal para tareas que requieren información exacta, como la elaboración de resúmenes. En cambio, un valor más alto fomenta la creatividad, aunque puede disminuir la coherencia en contextos específicos o respuestas breves.",
"apiKey": "Clave API"
"temperaturePrompt": "El ajuste de la aleatoriedad en las respuestas del modelo varía de 0 a 5. Un valor más bajo asegura precisión y consistencia en las salidas, ideal para tareas que requieren información exacta, como la elaboración de resúmenes. En cambio, un valor más alto fomenta la creatividad, aunque puede disminuir la coherencia en contextos específicos o respuestas breves."
},
"claudeAi": {
"name": "Claude"
Expand Down Expand Up @@ -163,8 +165,7 @@
"temperature": "Temperatura",
"temperaturePrompt": "Cuanto mayor sea la temperatura, más creativo será el texto, pero más probable es que sea incoherente.",
"temperature0": "Más determinista",
"temperature2": "Más aleatorio",
"apiKey": "Clave API"
"temperature2": "Más aleatorio"
},
"poe": {
"name": "Poe",
Expand Down
9 changes: 5 additions & 4 deletions src/i18n/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"secretPrompt": "Votre jeton secret restera sur votre appareil et ne sera partagé avec personne d'autre",
"showMenuBar": "Afficher la barre de menu"
},
"common": {
"apiKey": "Clé API"
},
"header": {
"clearMessages": "Effacer tous les messages ?",
"singleColumn": "Colonne unique",
Expand Down Expand Up @@ -54,8 +57,7 @@
"command-r": "Command R",
"command-r-plus": "Command R+",
"temperature": "Température",
"temperaturePrompt": "Le réglage de l'aléatoire des sorties du modèle varie de 0 à 5. Des valeurs plus basses garantissent la précision et la cohérence des résultats, idéales pour des tâches nécessitant des informations précises, comme la rédaction de résumés. À l'inverse, des valeurs plus élevées stimulent la créativité mais peuvent réduire la cohérence dans des contextes spécifiques ou des réponses brèves.",
"apiKey": "Clé API"
"temperaturePrompt": "Le réglage de l'aléatoire des sorties du modèle varie de 0 à 5. Des valeurs plus basses garantissent la précision et la cohérence des résultats, idéales pour des tâches nécessitant des informations précises, comme la rédaction de résumés. À l'inverse, des valeurs plus élevées stimulent la créativité mais peuvent réduire la cohérence dans des contextes spécifiques ou des réponses brèves."
},
"chatGpt": {
"name": "ChatGPT",
Expand Down Expand Up @@ -108,8 +110,7 @@
"temperature": "Température",
"temperaturePrompt": "Plus la température est élevée, plus le texte est créatif, mais il est plus susceptible d'être incohérent",
"temperature0": "Plus déterministe",
"temperature2": "Plus aléatoire",
"apiKey": "Clé API"
"temperature2": "Plus aléatoire"
},
"spark": {
"name": "iFlytek Spark"
Expand Down
9 changes: 5 additions & 4 deletions src/i18n/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"secretPrompt": "Il tuo token segreto rimarrà sul tuo dispositivo e non sarà condiviso con nessun'altra persona",
"showMenuBar": "Mostra barra dei menu"
},
"common": {
"apiKey": "Chiave API"
},
"header": {
"clearMessages": "Cancellare tutti i messaggi?",
"yes": "",
Expand Down Expand Up @@ -61,8 +64,7 @@
"command-r": "Command R",
"command-r-plus": "Command R+",
"temperature": "Temperatura",
"temperaturePrompt": "L'impostazione della casualità delle risposte del modello varia da 0 a 5. Un valore più basso assicura precisione e coerenza nelle uscite, ideale per compiti che richiedono informazioni precise, come la redazione di riassunti. Al contrario, un valore più alto promuove la creatività, ma può ridurre la coerenza in contesti specifici o in risposte brevi.",
"apiKey": "Chiave API"
"temperaturePrompt": "L'impostazione della casualità delle risposte del modello varia da 0 a 5. Un valore più basso assicura precisione e coerenza nelle uscite, ideale per compiti che richiedono informazioni precise, come la redazione di riassunti. Al contrario, un valore più alto promuove la creatività, ma può ridurre la coerenza in contesti specifici o in risposte brevi."
},
"chatGpt": {
"name": "ChatGPT",
Expand Down Expand Up @@ -115,8 +117,7 @@
"temperature": "Temperatura",
"temperaturePrompt": "Più alta è la temperatura, più creativo è il testo, ma maggiore è la probabilità che sia incoerente",
"temperature0": "Più deterministico",
"temperature2": "Più casuale",
"apiKey": "Chiave API"
"temperature2": "Più casuale"
},
"spark": {
"name": "iFlytek Spark"
Expand Down
9 changes: 5 additions & 4 deletions src/i18n/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"bots": "AIボット",
"showMenuBar": "メニューバーを表示"
},
"common": {
"apiKey": "APIキー"
},
"header": {
"clearMessages": "このチャットの会話を全て削除しますか?",
"yes": "はい",
Expand Down Expand Up @@ -86,8 +89,7 @@
"command-r": "Command R",
"command-r-plus": "Command R+",
"temperature": "温度",
"temperaturePrompt": "モデルの出力のランダム性の設定範囲は0から5です。低い設定値は、要約の作成など、正確な情報が必要なタスクに適しており、出力の精度と一貫性を保証します。一方、高い設定値は創造性を促進しますが、特定の状況や短い回答では一貫性が低下する可能性があります。",
"apiKey": "APIキー"
"temperaturePrompt": "モデルの出力のランダム性の設定範囲は0から5です。低い設定値は、要約の作成など、正確な情報が必要なタスクに適しており、出力の精度と一貫性を保証します。一方、高い設定値は創造性を促進しますが、特定の状況や短い回答では一貫性が低下する可能性があります。"
},
"chatGpt": {
"name": "ChatGPT",
Expand Down Expand Up @@ -143,8 +145,7 @@
"temperature": "温度",
"temperaturePrompt": "温度が高いほど、テキストは創造的ですが、一貫性がない可能性が高いです。",
"temperature0": "より決定論的な",
"temperature2": "もっとランダム",
"apiKey": "APIキー"
"temperature2": "もっとランダム"
},
"poe": {
"name": "Poe",
Expand Down
9 changes: 5 additions & 4 deletions src/i18n/locales/ko.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"bots": "AI 봇",
"showMenuBar": "메뉴 바 표시"
},
"common": {
"apiKey": "API 키"
},
"header": {
"clearMessages": "모든 메시지를 지우시겠습니까?",
"yes": "",
Expand Down Expand Up @@ -133,8 +136,7 @@
"command-r": "Command R",
"command-r-plus": "Command R+",
"temperature": "온도",
"temperaturePrompt": "모델 출력의 무작위성 설정은 0에서 5까지입니다. 낮은 설정값은 요약 작성과 같이 정확한 정보가 필요한 작업에 적합하며, 출력의 정확성과 일관성을 보장합니다. 반면, 높은 설정값은 창의성을 촉진하지만 특정 상황이나 간단한 응답에서는 일관성이 떨어질 수 있습니다.",
"apiKey": "API 키"
"temperaturePrompt": "모델 출력의 무작위성 설정은 0에서 5까지입니다. 낮은 설정값은 요약 작성과 같이 정확한 정보가 필요한 작업에 적합하며, 출력의 정확성과 일관성을 보장합니다. 반면, 높은 설정값은 창의성을 촉진하지만 특정 상황이나 간단한 응답에서는 일관성이 떨어질 수 있습니다."
},
"characterAI": {
"name": "Character.AI"
Expand Down Expand Up @@ -211,8 +213,7 @@
"temperature": "온도",
"temperaturePrompt": "온도가 높을수록 텍스트는 창의적이지만 일관성이 없을 가능성이 높습니다",
"temperature0": "더 결정론적인",
"temperature2": "더 무작위적인",
"apiKey": "API 키"
"temperature2": "더 무작위적인"
},
"poe": {
"name": "Poe",
Expand Down
9 changes: 5 additions & 4 deletions src/i18n/locales/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"secretPrompt": "Ваш секретный токен останется на вашем устройстве и не будет передан никому другому",
"showMenuBar": "Показать строку меню"
},
"common": {
"apiKey": "Ключ API"
},
"header": {
"clearMessages": "Очистить все сообщения?",
"singleColumn": "Одиночная колонна",
Expand Down Expand Up @@ -54,8 +57,7 @@
"command-r": "Command R",
"command-r-plus": "Command R+",
"temperature": "Температура",
"temperaturePrompt": "Настройка случайности ответов модели варьируется от 0 до 5. Более низкие значения обеспечивают точность и согласованность результатов, что идеально подходит для задач, требующих точной информации, например, при составлении резюме. Высокие значения способствуют креативности, но могут снизить связность в специфических контекстах или кратких ответах.",
"apiKey": "Ключ API"
"temperaturePrompt": "Настройка случайности ответов модели варьируется от 0 до 5. Более низкие значения обеспечивают точность и согласованность результатов, что идеально подходит для задач, требующих точной информации, например, при составлении резюме. Высокие значения способствуют креативности, но могут снизить связность в специфических контекстах или кратких ответах."
},
"chatGpt": {
"name": "ChatGPT",
Expand Down Expand Up @@ -108,8 +110,7 @@
"temperature": "Температура",
"temperaturePrompt": "Чем выше температура, тем креативнее текст, но тем больше вероятность того, что он будет бессвязным",
"temperature0": "Более определенный",
"temperature2": "Более рандомный",
"apiKey": "Ключ API"
"temperature2": "Более рандомный"
},
"spark": {
"name": "iFlytek Spark"
Expand Down
9 changes: 5 additions & 4 deletions src/i18n/locales/vi.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"bots": "AI Bots",
"showMenuBar": "Hiển thị thanh menu"
},
"common": {
"apiKey": "API Key"
},
"header": {
"clearMessages": "Xóa tất cả tin?",
"yes": "",
Expand Down Expand Up @@ -129,8 +132,7 @@
"command-r": "Command R",
"command-r-plus": "Command R+",
"temperature": "Temperature",
"temperaturePrompt": "Thiết lập độ ngẫu nhiên của đầu ra mô hình từ 0 đến 5. Mức thấp đảm bảo độ chính xác và nhất quán của kết quả, rất phù hợp cho các nhiệm vụ cần thông tin chính xác, như biên soạn tóm tắt. Ngược lại, mức cao thúc đẩy sự sáng tạo nhưng có thể làm giảm tính nhất quán trong các bối cảnh cụ thể hoặc câu trả lời ngắn.",
"apiKey": "API Key"
"temperaturePrompt": "Thiết lập độ ngẫu nhiên của đầu ra mô hình từ 0 đến 5. Mức thấp đảm bảo độ chính xác và nhất quán của kết quả, rất phù hợp cho các nhiệm vụ cần thông tin chính xác, như biên soạn tóm tắt. Ngược lại, mức cao thúc đẩy sự sáng tạo nhưng có thể làm giảm tính nhất quán trong các bối cảnh cụ thể hoặc câu trả lời ngắn."
},
"characterAI": {
"name": "Character.AI"
Expand Down Expand Up @@ -207,8 +209,7 @@
"temperature": "Temperature",
"temperaturePrompt": "Temperature càng cao, văn bản càng sáng tạo nhưng càng có khả năng trở nên rời rạc",
"temperature0": "Cụ thể hơn",
"temperature2": "Tự nhiên hơn",
"apiKey": "API Key"
"temperature2": "Tự nhiên hơn"
},
"poe": {
"name": "Poe",
Expand Down
9 changes: 5 additions & 4 deletions src/i18n/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
"api": "API",
"showMenuBar": "显示菜单栏"
},
"common": {
"apiKey": "API 密钥"
},
"header": {
"clearMessages": "清空当前对话的所有消息?",
"yes": "",
Expand Down Expand Up @@ -138,8 +141,7 @@
"command-r": "Command R",
"command-r-plus": "Command R+",
"temperature": "Temperature",
"temperaturePrompt": "调整模型的输出随机性设置范围为 0 至 5。较低的设置值能够确保输出结果的精确性和一致性,非常适合用于需要精确信息的任务,如撰写摘要。相反,较高的设置值则有助于激发创造性思维,但可能使内容在特定情境或简短回应中显得不够连贯。",
"apiKey": "API 密钥"
"temperaturePrompt": "调整模型的输出随机性设置范围为 0 至 5。较低的设置值能够确保输出结果的精确性和一致性,非常适合用于需要精确信息的任务,如撰写摘要。相反,较高的设置值则有助于激发创造性思维,但可能使内容在特定情境或简短回应中显得不够连贯。"
},
"bingChat": {
"name": "Copilot",
Expand Down Expand Up @@ -235,8 +237,7 @@
"temperature": "Temperature",
"temperaturePrompt": "Temperature 越高,生成的文本越有创造性,但也越没条理",
"temperature0": "更具确定性",
"temperature2": "更具随机性",
"apiKey": "API 密钥"
"temperature2": "更具随机性"
},
"poe": {
"name": "Poe",
Expand Down
9 changes: 5 additions & 4 deletions src/i18n/locales/zhtw.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
"bots": "AI 模型",
"showMenuBar": "顯示工具列"
},
"common": {
"apiKey": "API 金鑰"
},
"header": {
"clearMessages": "清空目前對話的所有訊息?",
"yes": "",
Expand Down Expand Up @@ -139,8 +142,7 @@
"command-r": "Command R",
"command-r-plus": "Command R+",
"temperature": "Temperature",
"temperaturePrompt": "調整模型的輸出隨機性設定範圍為 0 至 5。較低的設定值能夠確保輸出結果的精確性和一致性,非常適合用於需要精準資訊的任務,如撰寫摘要。相反,較高的設定值則有助於激發創造性思維,但可能使內容在特定情境或簡短回應中顯得不夠連貫。",
"apiKey": "API 金鑰"
"temperaturePrompt": "調整模型的輸出隨機性設定範圍為 0 至 5。較低的設定值能夠確保輸出結果的精確性和一致性,非常適合用於需要精準資訊的任務,如撰寫摘要。相反,較高的設定值則有助於激發創造性思維,但可能使內容在特定情境或簡短回應中顯得不夠連貫。"
},
"bingChat": {
"name": "Copilot",
Expand Down Expand Up @@ -235,8 +237,7 @@
"temperature": "Temperature",
"temperaturePrompt": "Temperature 越高,生成的文字越有創造性,但也越可能無法理解",
"temperature0": "更具確定性",
"temperature2": "更具隨機性",
"apiKey": "API 金鑰"
"temperature2": "更具隨機性"
},
"poe": {
"name": "Poe",
Expand Down

0 comments on commit 497d2ec

Please sign in to comment.