From 1beed324d9033b58a68c3cea6da42c6407726bc4 Mon Sep 17 00:00:00 2001 From: Wangnov Date: Tue, 9 Sep 2025 15:17:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AE=8C=E6=88=90AccountForm=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=89=A9=E4=BD=99=E6=A8=A1=E5=9D=97=E5=9B=BD=E9=99=85?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 国际化剩余JavaScript错误消息和验证文本 - 完成AWS Bedrock配置字段和帮助文本国际化 - 完成Azure OpenAI特定字段和描述国际化 - 国际化了150+个翻译键,覆盖三种语言(zh-cn, zh-tw, en) - 将所有硬编码中文字符串替换为响应式翻译 - 国际化了Toast消息、确认对话框、表单验证等用户交互元素 - 确保了编辑模式和创建模式的完整国际化支持 AccountForm组件国际化工作已基本完成,支持完整的三语言切换体验。 --- .../src/components/accounts/AccountForm.vue | 158 +++++++++--------- web/admin-spa/src/i18n/locales/en.js | 132 ++++++++++++++- web/admin-spa/src/i18n/locales/zh-cn.js | 132 ++++++++++++++- web/admin-spa/src/i18n/locales/zh-tw.js | 132 ++++++++++++++- 4 files changed, 472 insertions(+), 82 deletions(-) diff --git a/web/admin-spa/src/components/accounts/AccountForm.vue b/web/admin-spa/src/components/accounts/AccountForm.vue index 1f113bcd..49c5cc83 100644 --- a/web/admin-spa/src/components/accounts/AccountForm.vue +++ b/web/admin-spa/src/components/accounts/AccountForm.vue @@ -346,13 +346,13 @@
{{ t('accountForm.awsAccessKeyId') }} @@ -363,13 +363,13 @@
{{ t('accountForm.awsSecretAccessKey') }} @@ -380,13 +380,13 @@
{{ t('accountForm.awsRegion') }} @@ -414,31 +414,31 @@
{{ t('accountForm.sessionTokenOptional') }}

- 仅在使用临时 AWS 凭证时需要填写 + {{ t('accountForm.sessionTokenDescription') }}

{{ t('accountForm.defaultModelLabel') }}

- 留空将使用系统默认模型。支持 inference profile ID 或 ARN + {{ t('accountForm.defaultModelDescription') }}

@@ -458,16 +458,16 @@
{{ t('accountForm.smallFastModelLabel') }}

- 用于快速响应的轻量级模型,留空将使用系统默认 + {{ t('accountForm.smallFastModelDescription') }}

@@ -476,13 +476,13 @@
{{ t('accountForm.azureEndpoint') }} @@ -490,13 +490,13 @@ {{ errors.azureEndpoint }}

- Azure OpenAI 资源的终结点 URL,格式:https://your-resource.openai.azure.com + {{ t('accountForm.azureEndpointDescription') }}

{{ t('accountForm.azureApiVersion') }}

- Azure OpenAI API 版本,默认使用最新稳定版本 2024-02-01 + {{ t('accountForm.azureApiVersionDescription') }}

{{ t('accountForm.azureDeploymentName') }} @@ -525,19 +525,19 @@ {{ errors.deploymentName }}

- 在 Azure OpenAI Studio 中创建的部署名称 + {{ t('accountForm.azureDeploymentDescription') }}

{{ t('accountForm.azureApiKey') }} @@ -545,13 +545,13 @@ {{ errors.apiKey }}

- 从 Azure 门户获取的 API 密钥 + {{ t('accountForm.azureEndpointDescription') }}

{{ t('accountForm.azureSupportedModels') }}