From 2d9f5b9419d8d49ce42466b773c177fa42597b81 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 20 Jul 2026 21:46:58 -0400 Subject: [PATCH] refac --- .../components/Admin/CreateBotModal.svelte | 9 +- .../Admin/CreateConnectionModal.svelte | 4 +- .../Admin/EditConnectionModal.svelte | 9 +- .../src/lib/components/SidebarHeader.svelte | 2 +- cptr/frontend/src/lib/i18n/locales/de.json | 155 +++++++++++++---- cptr/frontend/src/lib/i18n/locales/en.json | 45 ++++- cptr/frontend/src/lib/i18n/locales/es.json | 157 ++++++++++++++---- cptr/frontend/src/lib/i18n/locales/fr.json | 157 ++++++++++++++---- cptr/frontend/src/lib/i18n/locales/ja.json | 157 ++++++++++++++---- cptr/frontend/src/lib/i18n/locales/ko.json | 155 +++++++++++++---- cptr/frontend/src/lib/i18n/locales/pt-BR.json | 157 ++++++++++++++---- cptr/frontend/src/lib/i18n/locales/ru.json | 157 ++++++++++++++---- cptr/frontend/src/lib/i18n/locales/zh-CN.json | 157 ++++++++++++++---- cptr/frontend/src/lib/i18n/locales/zh-TW.json | 155 +++++++++++++---- 14 files changed, 1141 insertions(+), 335 deletions(-) diff --git a/cptr/frontend/src/lib/components/Admin/CreateBotModal.svelte b/cptr/frontend/src/lib/components/Admin/CreateBotModal.svelte index 52fe31a..1796c4d 100644 --- a/cptr/frontend/src/lib/components/Admin/CreateBotModal.svelte +++ b/cptr/frontend/src/lib/components/Admin/CreateBotModal.svelte @@ -78,7 +78,7 @@ try { verifyResult = await verifyBotToken(platform, token.trim()); } catch (e: any) { - verifyResult = { ok: false, error: e.message || 'Verification failed' }; + verifyResult = { ok: false, error: e.message || $t('messaging.verificationFailed') }; } finally { verifying = false; } @@ -149,7 +149,7 @@
- Provider Type + {$t('connections.providerType')} {/if} diff --git a/cptr/frontend/src/lib/components/Admin/EditConnectionModal.svelte b/cptr/frontend/src/lib/components/Admin/EditConnectionModal.svelte index e208414..d124e59 100644 --- a/cptr/frontend/src/lib/components/Admin/EditConnectionModal.svelte +++ b/cptr/frontend/src/lib/components/Admin/EditConnectionModal.svelte @@ -156,18 +156,15 @@ -