Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions frontend/src/components/account/CreateAccountModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -520,18 +520,18 @@
Google One
</span>
<span class="text-xs text-gray-500 dark:text-gray-400">
个人账号,享受 Google One 订阅配额
{{ t('admin.accounts.gemini.oauthType.googleOne.description') }}
</span>
<div class="mt-2 flex flex-wrap gap-1">
<span
class="rounded bg-purple-100 px-2 py-0.5 text-[10px] font-semibold text-purple-700 dark:bg-purple-900/40 dark:text-purple-300"
>
推荐个人用户
{{ t('admin.accounts.gemini.oauthType.googleOne.recommendedForIndividuals') }}
</span>
<span
class="rounded bg-emerald-100 px-2 py-0.5 text-[10px] font-semibold text-emerald-700 dark:bg-emerald-900/40 dark:text-emerald-300"
>
无需 GCP
{{ t('admin.accounts.gemini.oauthType.googleOne.noGcpRequired') }}
</span>
</div>
</div>
Expand Down Expand Up @@ -563,10 +563,10 @@
GCP Code Assist
</span>
<span class="text-xs text-gray-500 dark:text-gray-400">
企业级,需要 GCP 项目
{{ t('admin.accounts.gemini.oauthType.gcpCodeAssist.description') }}
</span>
<div class="mt-1 text-xs text-gray-500 dark:text-gray-400">
需要激活 GCP 项目并绑定信用卡
{{ t('admin.accounts.gemini.oauthType.gcpCodeAssist.requiresGcpBilling') }}
<a
:href="geminiHelpLinks.gcpProject"
class="ml-1 text-blue-600 hover:underline dark:text-blue-400"
Expand All @@ -580,12 +580,12 @@
<span
class="rounded bg-blue-100 px-2 py-0.5 text-[10px] font-semibold text-blue-700 dark:bg-blue-900/40 dark:text-blue-300"
>
企业用户
{{ t('admin.accounts.gemini.oauthType.gcpCodeAssist.enterpriseUsers') }}
</span>
<span
class="rounded bg-emerald-100 px-2 py-0.5 text-[10px] font-semibold text-emerald-700 dark:bg-emerald-900/40 dark:text-emerald-300"
>
高并发
{{ t('admin.accounts.gemini.oauthType.gcpCodeAssist.highConcurrency') }}
</span>
</div>
</div>
Expand All @@ -608,7 +608,7 @@
>
<path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7" />
</svg>
<span>{{ showAdvancedOAuth ? '隐藏' : '显示' }}高级选项(自建 OAuth Client)</span>
<span>{{ showAdvancedOAuth ? t('admin.accounts.gemini.oauthType.advancedOptions.hide') : t('admin.accounts.gemini.oauthType.advancedOptions.show') }}</span>
</button>
</div>

Expand Down Expand Up @@ -2648,7 +2648,7 @@
rel="noreferrer"
class="text-sm text-blue-600 hover:underline dark:text-blue-400"
>
修改归属地
{{ t('admin.accounts.gemini.setupGuide.links.changeCountry') }}
</a>
<span class="text-gray-400">·</span>
<a
Expand Down
16 changes: 16 additions & 0 deletions frontend/src/i18n/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2613,6 +2613,21 @@ export default {
customTitle: 'Custom OAuth (AI Studio OAuth)',
customDesc: 'Uses admin-configured OAuth client for org management.',
customRequirement: 'Admin must configure Client ID and add you as a test user.',
googleOne: {
description: 'Personal account with Google One subscription quota',
recommendedForIndividuals: 'Recommended for individuals',
noGcpRequired: 'No GCP required'
},
gcpCodeAssist: {
description: 'Enterprise-grade, requires GCP project',
requiresGcpBilling: 'Requires GCP project activation and billing',
enterpriseUsers: 'Enterprise users',
highConcurrency: 'High concurrency'
},
advancedOptions: {
show: 'Show advanced options (Custom OAuth Client)',
hide: 'Hide advanced options (Custom OAuth Client)'
},
badges: {
recommended: 'Recommended',
highConcurrency: 'High concurrency',
Expand All @@ -2635,6 +2650,7 @@ export default {
},
links: {
countryCheck: 'Check country association',
changeCountry: 'Change country association',
geminiWebActivation: 'Activate Gemini Web',
gcpProject: 'Open GCP Console'
}
Expand Down
16 changes: 16 additions & 0 deletions frontend/src/i18n/locales/zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2746,6 +2746,21 @@ export default {
customTitle: '自定义授权(AI Studio OAuth)',
customDesc: '使用管理员预设的 OAuth 客户端,适合组织管理。',
customRequirement: '需管理员配置 Client ID 并加入测试用户白名单。',
googleOne: {
description: '个人账号,享受 Google One 订阅配额',
recommendedForIndividuals: '推荐个人用户',
noGcpRequired: '无需 GCP'
},
gcpCodeAssist: {
description: '企业级,需要 GCP 项目',
requiresGcpBilling: '需要激活 GCP 项目并绑定信用卡',
enterpriseUsers: '企业用户',
highConcurrency: '高并发'
},
advancedOptions: {
show: '显示高级选项(自建 OAuth Client)',
hide: '隐藏高级选项(自建 OAuth Client)'
},
badges: {
recommended: '推荐',
highConcurrency: '高并发',
Expand All @@ -2768,6 +2783,7 @@ export default {
},
links: {
countryCheck: '检查归属地',
changeCountry: '修改归属地',
geminiWebActivation: '激活 Gemini Web',
gcpProject: '打开 GCP 控制台'
}
Expand Down