diff --git a/web/admin-spa/src/components/accounts/AccountForm.vue b/web/admin-spa/src/components/accounts/AccountForm.vue index 0e3688ca..0ea88cf6 100644 --- a/web/admin-spa/src/components/accounts/AccountForm.vue +++ b/web/admin-spa/src/components/accounts/AccountForm.vue @@ -806,7 +806,7 @@

- 留空表示支持所有模型。如果指定模型,请求中的模型不在列表内将不会调度到此账号 + {{ t('accountForm.modelSupportDescription') }}

@@ -821,7 +821,7 @@ type="text" />

- 留空时将自动使用客户端的 User-Agent,仅在需要固定特定 UA 时填写 + {{ t('accountForm.userAgentDescription') }}

@@ -995,7 +995,7 @@ @click="regenerateClientId" > - 重新生成 + {{ t('accountForm.regenerateButton') }}
@@ -1103,7 +1103,7 @@ ~/.config/gemini/credentials.json - 文件中的凭证。 + {{ t('accountForm.credentialsFileDescription') }}

- 点击下方按钮生成授权链接 + {{ t('accountForm.clickToGenerateAuthLink') }}

- 输入 Authorization Code + {{ t('accountForm.enterAuthorizationCode') }}

- 授权完成后,从返回页面复制 Authorization Code,并粘贴到下方输入框: + {{ t('accountForm.copyAuthCodeDescription') }}

@@ -1377,7 +1377,7 @@

- 请粘贴从Claude Code授权页面复制的Authorization Code + {{ t('accountForm.authCodeInputHint') }}

@@ -1761,7 +1761,7 @@

- 设置每日使用额度,0 表示不限制 + {{ t('accountForm.dailyQuotaDescription') }}

-

每日自动重置额度的时间

+

+ {{ t('accountForm.quotaResetTimeDescription') }} +

@@ -1797,7 +1799,7 @@ >
- 今日使用情况 + {{ t('accountForm.todayUsageLabel') }} ${{ calculateCurrentUsage().toFixed(4) }} / ${{ form.dailyQuota.toFixed(2) }} @@ -1818,22 +1820,26 @@
- 剩余: ${{ Math.max(0, form.dailyQuota - calculateCurrentUsage()).toFixed(2) }} + {{ + t('accountForm.remainingQuota', { + amount: Math.max(0, form.dailyQuota - calculateCurrentUsage()).toFixed(2) + }) + }} - {{ usagePercentage.toFixed(1) }}% 已使用 + {{ t('accountForm.usedPercentage', { percentage: usagePercentage.toFixed(1) }) }}
- +

- 留空表示支持所有模型且不修改请求。配置映射后,左侧模型会被识别为支持的模型,右侧是实际发送的模型。 + {{ t('accountForm.modelMappingTableDescription') }}

@@ -1911,14 +1917,14 @@

- 留空表示支持所有模型。如果指定模型,请求中的模型不在列表内将不会调度到此账号 + {{ t('accountForm.modelSupportDescription') }}

- +

- 留空时将自动使用客户端的 User-Agent,仅在需要固定特定 UA 时填写 + {{ t('accountForm.userAgentDescription') }}

@@ -1946,21 +1952,23 @@ }}

- 启用后,当账号返回429错误时将暂停调度一段时间 + {{ t('accountForm.rateLimitDescription') }}

- + -

账号被限流后暂停调度的时间(分钟)

+

+ {{ t('accountForm.rateLimitDurationDescription') }} +

@@ -2011,14 +2019,14 @@
-

常用 AWS 区域参考:

+

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

- • us-east-1 (美国东部) - • us-west-2 (美国西部) - • eu-west-1 (欧洲爱尔兰) - • ap-southeast-1 (新加坡) - • ap-northeast-1 (东京) - • eu-central-1 (法兰克福) + {{ t('accountForm.awsRegionUsEast1') }} + {{ t('accountForm.awsRegionUsWest2') }} + {{ t('accountForm.awsRegionEuWest1') }} + {{ t('accountForm.awsRegionApSoutheast1') }} + {{ t('accountForm.awsRegionApNortheast1') }} + {{ t('accountForm.awsRegionEuCentral1') }}
@@ -2083,21 +2091,23 @@ }}

- 启用后,当账号返回429错误时将暂停调度一段时间 + {{ t('accountForm.rateLimitDescription') }}

- + -

账号被限流后暂停调度的时间(分钟)

+

+ {{ t('accountForm.rateLimitDurationDescription') }} +

@@ -2199,7 +2209,9 @@ {{ model }} -

选择此部署支持的模型类型

+

+ {{ t('accountForm.azureModelTypeDescription') }} +

@@ -2223,9 +2235,11 @@ {{ t('accountForm.updateTokenLabel') }}

- 可以更新 Access Token 和 Refresh Token。为了安全起见,不会显示当前的 Token 值。 + {{ t('accountForm.tokenUpdateDescription') }} +

+

+ {{ t('accountForm.tokenUpdateHint') }}

-

💡 留空表示不更新该字段。

@@ -2265,7 +2279,7 @@ type="button" @click="$emit('close')" > - 取消 + {{ t('accountForm.cancelButton') }} @@ -510,7 +512,7 @@ class="flex items-center text-gray-600 dark:text-gray-400" > - 已启用签名验证 + {{ t('settings.enableSignature') }} @@ -556,17 +558,19 @@
- 暂无配置的通知平台,请点击"添加平台"按钮添加 + {{ t('settings.noPlatforms') }}
-

高级设置

+

+ {{ t('settings.advancedSettings') }} +

- 发送测试通知 + {{ t('settings.sendTestNotification') }}
@@ -646,10 +650,12 @@

- {{ editingPlatform ? '编辑' : '添加' }}通知平台 + {{ + editingPlatform ? t('settings.editPlatformModal') : t('settings.addPlatformModal') + }}

- 配置{{ editingPlatform ? '并更新' : '新的' }}Webhook通知渠道 + {{ t('settings.configurePlatform') }}

@@ -671,7 +677,7 @@ class="mb-2 flex items-center text-sm font-medium text-gray-700 dark:text-gray-300" > - 平台类型 + {{ t('settings.platformType') }}
@@ -693,7 +699,7 @@

- 编辑模式下不能更改平台类型 + {{ t('settings.cannotChangePlatformType') }}

@@ -703,13 +709,13 @@ class="mb-2 flex items-center text-sm font-medium text-gray-700 dark:text-gray-300" > - 名称 - (可选) + {{ t('settings.platformName') }} + {{ t('settings.optional') }}
@@ -720,7 +726,7 @@ class="mb-2 flex items-center text-sm font-medium text-gray-700 dark:text-gray-300" > - Webhook URL + {{ t('settings.webhookUrl') }} *
@@ -762,7 +768,7 @@ class="mb-2 flex items-center text-sm font-medium text-gray-700 dark:text-gray-300" > - 设备密钥 (Device Key) + {{ t('settings.deviceKey') }} * - 服务器地址 - (可选) + {{ t('settings.serverUrl') }} + {{ t('settings.optional') }} - 通知级别 + {{ t('settings.notificationLevel') }}
- 必填项 + {{ t('settings.requiredField') }}