fix: add unit label to AI credit display
This commit is contained in:
1 parent
3e1e10b2a5
commit
6577f1c51f
3 files changed
+18
-8
No files matched your search
@@ -383,8 +383,12 @@ export function CloudAccountCard({
|
||||
<CardDescription className="truncate text-xs">{account.email}</CardDescription>
|
||||
|
||||
{shouldShowAiCredits && aiCredits && (
|
||||
<div className="mt-1 flex items-center gap-1 text-[10px] font-medium text-amber-500">
|
||||
<span>{formatAiCreditsAmount(aiCredits.credits)}</span>
|
||||
<div className="mt-1 flex items-center gap-1 text-[10px] font-medium text-blue-500">
|
||||
<span>
|
||||
{t('cloud.card.aiCreditsValue', {
|
||||
amount: formatAiCreditsAmount(aiCredits.credits),
|
||||
})}
|
||||
</span>
|
||||
{aiCredits.expiryDate && (
|
||||
<span className="text-muted-foreground opacity-70">
|
||||
·{' '}
|
||||
@@ -697,8 +701,10 @@ export function CompactCloudAccountCard({
|
||||
)}
|
||||
|
||||
{shouldShowAiCredits && aiCredits && (
|
||||
<span className="shrink-0 text-amber-500">
|
||||
{formatAiCreditsAmount(aiCredits.credits)}
|
||||
<span className="shrink-0 text-blue-500">
|
||||
{t('cloud.card.aiCreditsValue', {
|
||||
amount: formatAiCreditsAmount(aiCredits.credits),
|
||||
})}
|
||||
{aiCredits.expiryDate && (
|
||||
<span className="text-muted-foreground">
|
||||
{' '}
|
||||
|
||||
@@ -328,6 +328,7 @@ i18n
|
||||
proxySaved: 'Proxy saved',
|
||||
noProxy: 'No proxy',
|
||||
aiCredits: 'AI Credits',
|
||||
aiCreditsValue: '{{amount}} credits',
|
||||
creditsExpiry: 'expires {{date}}',
|
||||
modelVisibility: 'Model Visibility',
|
||||
},
|
||||
@@ -391,7 +392,7 @@ i18n
|
||||
updateSettingsFailed: 'Failed to update settings',
|
||||
actionFailed: 'Action failed',
|
||||
startAuthFailed: 'Failed to start sign-in flow',
|
||||
refreshCreditsAvailable: 'AI credits: ${{amount}}',
|
||||
refreshCreditsAvailable: 'AI credits: {{amount}}',
|
||||
refreshCreditsUnavailable: 'AI credits not available for this refresh.',
|
||||
batchRefreshSuccess: 'Successfully refreshed {{count}} accounts.',
|
||||
batchRefreshPartial: {
|
||||
@@ -799,6 +800,7 @@ i18n
|
||||
proxySaved: '代理已保存',
|
||||
noProxy: '无代理',
|
||||
aiCredits: 'AI 积分',
|
||||
aiCreditsValue: '{{amount}} 积分',
|
||||
creditsExpiry: '{{date}} 过期',
|
||||
modelVisibility: '模型可见性',
|
||||
},
|
||||
@@ -862,7 +864,7 @@ i18n
|
||||
updateSettingsFailed: '更新设置失败',
|
||||
actionFailed: '操作失败',
|
||||
startAuthFailed: '启动登录流程失败',
|
||||
refreshCreditsAvailable: 'AI 积分:${{amount}}',
|
||||
refreshCreditsAvailable: 'AI 积分:{{amount}}',
|
||||
refreshCreditsUnavailable: '本次刷新没有可用的 AI 积分信息。',
|
||||
batchRefreshSuccess: '成功刷新 {{count}} 个账号。',
|
||||
batchRefreshPartial: {
|
||||
@@ -1272,6 +1274,7 @@ i18n
|
||||
proxySaved: 'Прокси сохранён',
|
||||
noProxy: 'Без прокси',
|
||||
aiCredits: 'AI Кредиты',
|
||||
aiCreditsValue: '{{amount}} кредитов',
|
||||
creditsExpiry: 'истекает {{date}}',
|
||||
modelVisibility: 'Видимость моделей',
|
||||
},
|
||||
@@ -1335,7 +1338,7 @@ i18n
|
||||
updateSettingsFailed: 'Не удалось обновить настройки',
|
||||
actionFailed: 'Не удалось выполнить действие',
|
||||
startAuthFailed: 'Не удалось запустить процесс входа',
|
||||
refreshCreditsAvailable: 'AI кредиты: ${{amount}}',
|
||||
refreshCreditsAvailable: 'AI кредиты: {{amount}}',
|
||||
refreshCreditsUnavailable: 'AI кредиты недоступны для этого обновления.',
|
||||
batchRefreshSuccess: 'Успешно обновлено {{count}} аккаунтов.',
|
||||
batchRefreshPartial: {
|
||||
|
||||
@@ -307,6 +307,7 @@ const vi = {
|
||||
proxySaved: 'Đã lưu proxy',
|
||||
noProxy: 'Không dùng proxy',
|
||||
aiCredits: 'AI Credits',
|
||||
aiCreditsValue: '{{amount}} credits',
|
||||
creditsExpiry: 'hết hạn {{date}}',
|
||||
modelVisibility: 'Hiển thị model',
|
||||
},
|
||||
@@ -370,7 +371,7 @@ const vi = {
|
||||
updateSettingsFailed: 'Không thể cập nhật cài đặt',
|
||||
actionFailed: 'Không thể thực hiện thao tác',
|
||||
startAuthFailed: 'Không thể bắt đầu luồng đăng nhập',
|
||||
refreshCreditsAvailable: 'AI credits: ${{amount}}',
|
||||
refreshCreditsAvailable: 'AI credits: {{amount}}',
|
||||
refreshCreditsUnavailable: 'Không có thông tin AI credits cho lần làm mới này.',
|
||||
batchRefreshSuccess: 'Đã làm mới thành công {{count}} tài khoản.',
|
||||
batchRefreshPartial: {
|
||||
|
||||
Reference in new issue
Block a user