From 32ee80d6f0f86137d38688ac6e549f9864c710e8 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 13 Jun 2026 07:58:48 +0100 Subject: [PATCH] refac --- cptr/frontend/src/lib/components/chat/ChatPanel.svelte | 2 +- cptr/frontend/src/lib/i18n/locales/de.json | 3 ++- cptr/frontend/src/lib/i18n/locales/en.json | 3 ++- cptr/frontend/src/lib/i18n/locales/es.json | 3 ++- cptr/frontend/src/lib/i18n/locales/fr.json | 3 ++- cptr/frontend/src/lib/i18n/locales/ja.json | 3 ++- cptr/frontend/src/lib/i18n/locales/ko.json | 3 ++- cptr/frontend/src/lib/i18n/locales/pt-BR.json | 3 ++- cptr/frontend/src/lib/i18n/locales/ru.json | 3 ++- cptr/frontend/src/lib/i18n/locales/zh-CN.json | 3 ++- cptr/frontend/src/lib/i18n/locales/zh-TW.json | 3 ++- 11 files changed, 21 insertions(+), 11 deletions(-) diff --git a/cptr/frontend/src/lib/components/chat/ChatPanel.svelte b/cptr/frontend/src/lib/components/chat/ChatPanel.svelte index 43a7a5a..6c0c7fb 100644 --- a/cptr/frontend/src/lib/components/chat/ChatPanel.svelte +++ b/cptr/frontend/src/lib/components/chat/ChatPanel.svelte @@ -877,7 +877,7 @@

- What can I help you with? + {$t('chat.greeting')}

diff --git a/cptr/frontend/src/lib/i18n/locales/de.json b/cptr/frontend/src/lib/i18n/locales/de.json index 7c89e6c..01656a8 100644 --- a/cptr/frontend/src/lib/i18n/locales/de.json +++ b/cptr/frontend/src/lib/i18n/locales/de.json @@ -568,5 +568,6 @@ "admin.gateway.modelSaveError": "Gateway-Modell konnte nicht gespeichert werden", "admin.gateway.newKey": "Neuer API-Schlüssel erstellt. Jetzt kopieren", "admin.gateway.noKeys": "Noch keine API-Schlüssel", - "admin.gateway.title": "API-Gateway" + "admin.gateway.title": "API-Gateway", + "chat.greeting": "Wie kann ich Ihnen helfen?" } diff --git a/cptr/frontend/src/lib/i18n/locales/en.json b/cptr/frontend/src/lib/i18n/locales/en.json index 8e87a66..c03f4e4 100644 --- a/cptr/frontend/src/lib/i18n/locales/en.json +++ b/cptr/frontend/src/lib/i18n/locales/en.json @@ -644,6 +644,7 @@ "chat.edit.item": "Item", "chat.dictate.unsupported": "Speech recognition not supported in this browser.", - "chat.fallbackTitle": "Chat" + "chat.fallbackTitle": "Chat", + "chat.greeting": "What can I help you with?" } diff --git a/cptr/frontend/src/lib/i18n/locales/es.json b/cptr/frontend/src/lib/i18n/locales/es.json index 47f37f9..9444620 100644 --- a/cptr/frontend/src/lib/i18n/locales/es.json +++ b/cptr/frontend/src/lib/i18n/locales/es.json @@ -568,5 +568,6 @@ "admin.gateway.modelSaveError": "Error al guardar el modelo gateway", "admin.gateway.newKey": "Nueva clave API creada. Cópiala ahora", "admin.gateway.noKeys": "Aún no hay claves API", - "admin.gateway.title": "API Gateway" + "admin.gateway.title": "API Gateway", + "chat.greeting": "¿En qué puedo ayudarte?" } diff --git a/cptr/frontend/src/lib/i18n/locales/fr.json b/cptr/frontend/src/lib/i18n/locales/fr.json index 121c915..3af1263 100644 --- a/cptr/frontend/src/lib/i18n/locales/fr.json +++ b/cptr/frontend/src/lib/i18n/locales/fr.json @@ -567,5 +567,6 @@ "admin.gateway.modelSaveError": "Échec de l'enregistrement du modèle passerelle", "admin.gateway.newKey": "Nouvelle clé API créée. Copiez-la maintenant", "admin.gateway.noKeys": "Aucune clé API", - "admin.gateway.title": "Passerelle API" + "admin.gateway.title": "Passerelle API", + "chat.greeting": "Comment puis-je vous aider ?" } diff --git a/cptr/frontend/src/lib/i18n/locales/ja.json b/cptr/frontend/src/lib/i18n/locales/ja.json index f872477..71b5bbe 100644 --- a/cptr/frontend/src/lib/i18n/locales/ja.json +++ b/cptr/frontend/src/lib/i18n/locales/ja.json @@ -568,5 +568,6 @@ "admin.gateway.modelSaveError": "ゲートウェイモデルの保存に失敗しました", "admin.gateway.newKey": "新しいAPIキーが作成されました。今すぐコピーしてください", "admin.gateway.noKeys": "APIキーがまだありません", - "admin.gateway.title": "APIゲートウェイ" + "admin.gateway.title": "APIゲートウェイ", + "chat.greeting": "何かお手伝いできますか?" } diff --git a/cptr/frontend/src/lib/i18n/locales/ko.json b/cptr/frontend/src/lib/i18n/locales/ko.json index 212145c..29d934e 100644 --- a/cptr/frontend/src/lib/i18n/locales/ko.json +++ b/cptr/frontend/src/lib/i18n/locales/ko.json @@ -568,5 +568,6 @@ "admin.gateway.modelSaveError": "게이트웨이 모델 저장에 실패했습니다", "admin.gateway.newKey": "새 API 키가 생성되었습니다. 지금 복사하세요", "admin.gateway.noKeys": "API 키가 아직 없습니다", - "admin.gateway.title": "API 게이트웨이" + "admin.gateway.title": "API 게이트웨이", + "chat.greeting": "무엇을 도와드릴까요?" } diff --git a/cptr/frontend/src/lib/i18n/locales/pt-BR.json b/cptr/frontend/src/lib/i18n/locales/pt-BR.json index ccff04e..e63b126 100644 --- a/cptr/frontend/src/lib/i18n/locales/pt-BR.json +++ b/cptr/frontend/src/lib/i18n/locales/pt-BR.json @@ -568,5 +568,6 @@ "admin.gateway.modelSaveError": "Falha ao salvar o modelo gateway", "admin.gateway.newKey": "Nova chave API criada. Copie-a agora", "admin.gateway.noKeys": "Nenhuma chave API ainda", - "admin.gateway.title": "API Gateway" + "admin.gateway.title": "API Gateway", + "chat.greeting": "Como posso ajudar?" } diff --git a/cptr/frontend/src/lib/i18n/locales/ru.json b/cptr/frontend/src/lib/i18n/locales/ru.json index 1f7358a..4f2b661 100644 --- a/cptr/frontend/src/lib/i18n/locales/ru.json +++ b/cptr/frontend/src/lib/i18n/locales/ru.json @@ -568,5 +568,6 @@ "admin.gateway.modelSaveError": "Не удалось сохранить модель шлюза", "admin.gateway.newKey": "Новый API-ключ создан. Скопируйте его сейчас", "admin.gateway.noKeys": "API-ключей пока нет", - "admin.gateway.title": "API-шлюз" + "admin.gateway.title": "API-шлюз", + "chat.greeting": "Чем могу помочь?" } diff --git a/cptr/frontend/src/lib/i18n/locales/zh-CN.json b/cptr/frontend/src/lib/i18n/locales/zh-CN.json index 5b1d16f..33ad63f 100644 --- a/cptr/frontend/src/lib/i18n/locales/zh-CN.json +++ b/cptr/frontend/src/lib/i18n/locales/zh-CN.json @@ -568,5 +568,6 @@ "admin.gateway.modelSaveError": "保存网关模型失败", "admin.gateway.newKey": "新 API 密钥已创建。请立即复制", "admin.gateway.noKeys": "暂无 API 密钥", - "admin.gateway.title": "API 网关" + "admin.gateway.title": "API 网关", + "chat.greeting": "有什么可以帮您的?" } diff --git a/cptr/frontend/src/lib/i18n/locales/zh-TW.json b/cptr/frontend/src/lib/i18n/locales/zh-TW.json index bdd3412..9e4b8ef 100644 --- a/cptr/frontend/src/lib/i18n/locales/zh-TW.json +++ b/cptr/frontend/src/lib/i18n/locales/zh-TW.json @@ -568,5 +568,6 @@ "admin.gateway.modelSaveError": "儲存閘道模型失敗", "admin.gateway.newKey": "新 API 金鑰已建立。請立即複製", "admin.gateway.noKeys": "尚無 API 金鑰", - "admin.gateway.title": "API 閘道" + "admin.gateway.title": "API 閘道", + "chat.greeting": "有什麼可以幫您的?" }