Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(desktop): 计费界面弃用「点数」概念,文案改为金额与余额 (#1053)

bobob97a86cce26c
diff --git a/apps/desktop/src/renderer/features/billing/BillingPage.tsx b/apps/desktop/src/renderer/features/billing/BillingPage.tsx
index c4a5f0a3a9..e369a8fc36 100644
--- a/apps/desktop/src/renderer/features/billing/BillingPage.tsx
+++ b/apps/desktop/src/renderer/features/billing/BillingPage.tsx
@@ -564,7 +564,9 @@ export function BillingSettingsSection({ accountId }: { accountId: string | null
status: currentSubscription.status,
price: plan ? formatMoney(plan.terms.amount, plan.terms.currency, billingLocale) : null,
interval: plan?.offer.interval ?? null,
- includedCredits: plan?.terms.creditAmount ?? null,
+ includedCredits: plan
+ ? formatMoney(plan.terms.creditAmount, plan.terms.currency, billingLocale)
+ : null,
periodEndAt: formatBillingDate(currentSubscription.currentPeriodEndAt, billingLocale),
cancelAtPeriodEnd: currentSubscription.cancelAtPeriodEnd,
};
@@ -872,14 +874,6 @@ export function BillingSettingsSection({ accountId }: { accountId: string | null
</BillingGroup>
)}
</div>
-
- <p className="mt-8 text-12 leading-5 text-[var(--text-tertiary)]">
- {t(
- BILLING_CURRENCY === 'usd'
- ? 'billing.balance.creditParityUsd'
- : 'billing.balance.creditParityCny',
- )}
- </p>
</div>
<BillingOfferDialog
@@ -1644,7 +1638,13 @@ function BillingOfferDialog({
</p>
{offer.creditAmount && (
<p className="mt-0.5 text-11 text-[var(--text-tertiary)]">
- {t('billing.credits', { amount: offer.creditAmount })}
+ {t('billing.credits', {
+ amount: formatMoney(
+ offer.creditAmount,
+ offer.currency,
+ billingLocale,
+ ),
+ })}
</p>
)}
</div>
diff --git a/apps/desktop/src/renderer/features/billing/PlanChangeDialog.tsx b/apps/desktop/src/renderer/features/billing/PlanChangeDialog.tsx
index 6105385d9b..1428d5a464 100644
--- a/apps/desktop/src/renderer/features/billing/PlanChangeDialog.tsx
+++ b/apps/desktop/src/renderer/features/billing/PlanChangeDialog.tsx
@@ -169,7 +169,13 @@ export function PlanChangeTargetDialog({
</p>
{candidate.offer.creditAmount && (
<p className="mt-0.5 text-11 text-[var(--text-tertiary)]">
- {t('billing.credits', { amount: candidate.offer.creditAmount })}
+ {t('billing.credits', {
+ amount: formatMoney(
+ candidate.offer.creditAmount,
+ candidate.offer.currency,
+ billingLocale,
+ ),
+ })}
</p>
)}
</div>
diff --git a/apps/desktop/src/renderer/features/billing/__tests__/BillingPage.test.tsx b/apps/desktop/src/renderer/features/billing/__tests__/BillingPage.test.tsx
index c74e0ae317..8f4e7e483e 100644
--- a/apps/desktop/src/renderer/features/billing/__tests__/BillingPage.test.tsx
+++ b/apps/desktop/src/renderer/features/billing/__tests__/BillingPage.test.tsx
@@ -1847,7 +1847,7 @@ describe('BillingPage plan change', () => {
expect(within(currentButton).getByText('Plus plan')).toBeTruthy();
expect(within(currentButton).getByText('$7.00')).toBeTruthy();
expect(
- within(currentButton).getByText('billing.credits:{"amount":"80"}'),
+ within(currentButton).getByText('billing.credits:{"amount":"$80.00"}'),
).toBeTruthy();
});
diff --git a/apps/desktop/src/renderer/i18n/locales/en/common.json b/apps/desktop/src/renderer/i18n/locales/en/common.json
index 40a9ba5d78..3fad26916c 100644
--- a/apps/desktop/src/renderer/i18n/locales/en/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/en/common.json
@@ -7548,7 +7548,7 @@
}
},
"billing": {
- "sidebar": "Credits & plans",
+ "sidebar": "Balance & Plans",
"settings": {
"title": "Usage and billing",
"subscriptionCard": {
@@ -7563,13 +7563,13 @@
"portalAction": "Manage in Stripe",
"portalFailed": "Couldn't open Stripe subscription management. Try again later.",
"priceInterval": "{{price}} / {{interval}}",
- "includedCredits": "Includes {{amount}} credits per {{interval}}",
+ "includedCredits": "Includes {{amount}} per {{interval}}",
"renewsAt": "Renews {{date}}",
"endsAt": "Plan ends {{date}}",
"cancelAction": "Cancel Subscription",
"cancelConfirmTitle": "Cancel Your Current Subscription?",
- "cancelConfirmDescription": "This action does not issue a refund or immediately change your credits. Your current plan stays available through {{date}}, then it will not renew. Cancellation cannot be undone in the app, and you cannot purchase a new plan until this billing period ends.",
- "cancelConfirmDescriptionWithoutDate": "This action does not issue a refund or immediately change your credits. Your current plan stays available through the end of this billing period, then it will not renew. Cancellation cannot be undone in the app, and you cannot purchase a new plan until this billing period ends.",
+ "cancelConfirmDescription": "This action does not issue a refund or immediately change your balance. Your current plan stays available through {{date}}, then it will not renew. Cancellation cannot be undone in the app, and you cannot purchase a new plan until this billing period ends.",
+ "cancelConfirmDescriptionWithoutDate": "This action does not issue a refund or immediately change your balance. Your current plan stays available through the end of this billing period, then it will not renew. Cancellation cannot be undone in the app, and you cannot purchase a new plan until this billing period ends.",
"cancelConfirmAction": "Confirm Cancellation",
"cancelSuccess": "Auto-renewal is canceled. Your current plan remains available through {{date}}.",
"cancelSuccessWithoutDate": "Auto-renewal is canceled. Your current plan will end after this billing period.",
@@ -7577,35 +7577,33 @@
"cancelFailed": "Could not cancel the subscription. Try again later."
},
"topupCard": {
- "action": "Buy credits"
+ "action": "Add Funds"
}
},
"balance": {
"title": "Available balance",
- "creditParityCny": "1 credit = 1 CNY. Credits pay for Cindy AI usage; payments are processed by third-party providers.",
- "creditParityUsd": "1 credit = 1 USD. Credits pay for Cindy AI usage; payments are processed by third-party providers.",
- "plan": "Plan credits",
- "purchased": "Purchased credits",
- "promotional": "Promotional credits",
- "notProvisioned": "Credits have not been enabled for this account.",
+ "plan": "Plan Balance",
+ "purchased": "Top-up Balance",
+ "promotional": "Promotional Balance",
+ "notProvisioned": "Balance has not been enabled for this account.",
"notSupported": "Balance lookup is not supported for this account.",
"unavailable": "Balance is temporarily unavailable. Refresh to try again."
},
"usage": {
- "title": "Credit usage",
+ "title": "Balance Usage",
"observedAt": "Balance updated {{date}}",
"poolDetail": "Used {{used}} · Total {{total}}",
"remaining": "Remaining",
"progressLabel": "{{label}} usage",
- "noPlanCredits": "No subscription credits because there is no active subscription.",
+ "noPlanCredits": "No plan balance because there is no active subscription.",
"historyUnavailable": "Usage history is incomplete. Only the remaining balance is available.",
"detailsUnavailable": "Usage details are temporarily unavailable. Current balances are shown instead.",
"promotionalDetails": {
- "title": "Promotional Credit Details",
+ "title": "Promotional Balance Details",
"count": "{{count}} grants",
- "empty": "No promotional credit grants are available.",
+ "empty": "No promotional grants are available.",
"incomplete": "There are many grant records. Only the latest {{count}} are shown.",
- "unnamed": "Promotional credit",
+ "unnamed": "Promotional Grant",
"original": "Original",
"used": "Used",
"remaining": "Remaining",
@@ -7623,7 +7621,7 @@
"title": "Choose a subscription plan"
},
"topup": {
- "title": "Buy credits"
+ "title": "Add Funds"
}
},
"steps": {
@@ -7660,7 +7658,7 @@
"MONTH": "month",
"YEAR": "year"
},
- "credits": "{{amount}} credits",
+ "credits": "Includes {{amount}}",
"confirm": {
"channel": "Pay with {{provider}}"
},
@@ -7693,7 +7691,7 @@
"failedTitle": "Unable to complete",
"expiredTitle": "Payment expired",
"canceledTitle": "Payment canceled",
- "topupSubtitle": "Credit top-up",
+ "topupSubtitle": "Balance Top-up",
"subscriptionSubtitle": "Subscription",
"creatingBody": "Confirming the order with the payment service…",
"qrAlt": "Payment QR code",
diff --git a/apps/desktop/src/renderer/i18n/locales/ja/common.json b/apps/desktop/src/renderer/i18n/locales/ja/common.json
index 04a84f8f3e..ef00e7a83e 100644
--- a/apps/desktop/src/renderer/i18n/locales/ja/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/ja/common.json
@@ -7537,7 +7537,7 @@
}
},
"billing": {
- "sidebar": "クレジットとプラン",
+ "sidebar": "残高とプラン",
"settings": {
"title": "使用量と請求",
"subscriptionCard": {
@@ -7552,13 +7552,13 @@
"portalAction": "Stripe で管理",
"portalFailed": "Stripeのサブスクリプション管理を開けませんでした。しばらくしてからもう一度お試しください。",
"priceInterval": "{{price}} / {{interval}}",
- "includedCredits": "毎{{interval}} {{amount}} クレジットを付与",
+ "includedCredits": "毎{{interval}} {{amount}} 分を付与",
"renewsAt": "次回更新日: {{date}}",
"endsAt": "{{date}} にプラン終了",
"cancelAction": "サブスクリプションを解約",
"cancelConfirmTitle": "現在のサブスクリプションを解約しますか?",
- "cancelConfirmDescription": "この操作による返金やクレジットの即時変更はありません。現在のプランは {{date}} まで利用でき、その後は更新されません。キャンセルはアプリ内では元に戻せません。また、この請求期間が終了するまで新しいプランは購入できません。",
- "cancelConfirmDescriptionWithoutDate": "この操作による返金やクレジットの即時変更はありません。現在のプランは請求期間の終了まで利用でき、その後は更新されません。キャンセルはアプリ内では元に戻せません。また、この請求期間が終了するまで新しいプランは購入できません。",
+ "cancelConfirmDescription": "この操作による返金や残高の即時変更はありません。現在のプランは {{date}} まで利用でき、その後は更新されません。キャンセルはアプリ内では元に戻せません。また、この請求期間が終了するまで新しいプランは購入できません。",
+ "cancelConfirmDescriptionWithoutDate": "この操作による返金や残高の即時変更はありません。現在のプランは請求期間の終了まで利用でき、その後は更新されません。キャンセルはアプリ内では元に戻せません。また、この請求期間が終了するまで新しいプランは購入できません。",
"cancelConfirmAction": "解約を確定",
"cancelSuccess": "自動更新を停止しました。現在のプランは {{date}} まで利用できます。",
"cancelSuccessWithoutDate": "自動更新を停止しました。現在のプランはこの請求期間の終了後に終了します。",
@@ -7566,35 +7566,33 @@
"cancelFailed": "サブスクリプションを解約できませんでした。しばらくしてからもう一度お試しください。"
},
"topupCard": {
- "action": "クレジットを購入"
+ "action": "残高チャージ"
}
},
"balance": {
"title": "利用可能残高",
- "creditParityCny": "1クレジット = 1元。クレジットは Cindy AI の利用量の決済に使われ、支払いは第三者の決済事業者が処理します。",
- "creditParityUsd": "1クレジット = 1米ドル。クレジットは Cindy AI の利用量の決済に使われ、支払いは第三者の決済事業者が処理します。",
- "plan": "プランクレジット",
- "purchased": "購入済みクレジット",
- "promotional": "特典クレジット",
- "notProvisioned": "このアカウントではクレジットがまだ有効になっていません。",
+ "plan": "プラン残高",
+ "purchased": "チャージ残高",
+ "promotional": "特典残高",
+ "notProvisioned": "このアカウントでは残高がまだ有効になっていません。",
"notSupported": "このアカウントでは残高照会を利用できません。",
"unavailable": "残高を取得できません。更新してもう一度お試しください。"
},
"usage": {
- "title": "クレジット使用量",
- "observedAt": "クレジット更新: {{date}}",
+ "title": "残高使用量",
+ "observedAt": "残高更新: {{date}}",
"poolDetail": "使用済み {{used}} · 合計 {{total}}",
"remaining": "残り",
"progressLabel": "{{label}}の使用量",
- "noPlanCredits": "有効なサブスクリプションがないため、サブスクリプションクレジットはありません。",
- "historyUnavailable": "使用履歴が完全ではないため、残りのクレジットのみ表示しています。",
+ "noPlanCredits": "有効なサブスクリプションがないため、プラン残高はありません。",
+ "historyUnavailable": "使用履歴が完全ではないため、残高のみ表示しています。",
"detailsUnavailable": "使用量の詳細を取得できないため、現在の残高のみ表示しています。",
"promotionalDetails": {
- "title": "特典クレジット明細",
+ "title": "特典残高明細",
"count": "{{count}}件",
- "empty": "特典クレジットの付与履歴はありません。",
+ "empty": "特典の付与履歴はありません。",
"incomplete": "付与履歴が多いため、最新の{{count}}件のみ表示しています。",
- "unnamed": "特典クレジット",
+ "unnamed": "特典残高",
"original": "付与額",
"used": "使用済み",
"remaining": "残り",
@@ -7612,7 +7610,7 @@
"title": "サブスクリプションプランを選択"
},
"topup": {
- "title": "クレジットを購入"
+ "title": "残高チャージ"
}
},
"steps": {
@@ -7649,7 +7647,7 @@
"MONTH": "月",
"YEAR": "年"
},
- "credits": "{{amount}} クレジット",
+ "credits": "{{amount}} 分を付与",
"confirm": {
"channel": "{{provider}}で支払う"
},
@@ -7682,7 +7680,7 @@
"failedTitle": "完了できませんでした",
"expiredTitle": "支払い期限切れ",
"canceledTitle": "支払いキャンセル済み",
- "topupSubtitle": "クレジットチャージ",
+ "topupSubtitle": "残高チャージ",
"subscriptionSubtitle": "サブスクリプション",
"creatingBody": "支払いサービスで注文を確認しています…",
"qrAlt": "支払いQRコード",
diff --git a/apps/desktop/src/renderer/i18n/locales/ko/common.json b/apps/desktop/src/renderer/i18n/locales/ko/common.json
index f520aeda83..9876b90b20 100644
--- a/apps/desktop/src/renderer/i18n/locales/ko/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/ko/common.json
@@ -7537,7 +7537,7 @@
}
},
"billing": {
- "sidebar": "크레딧 및 요금제",
+ "sidebar": "잔액 및 요금제",
"settings": {
"title": "사용량 및 결제",
"subscriptionCard": {
@@ -7552,13 +7552,13 @@
"portalAction": "Stripe에서 관리",
"portalFailed": "Stripe 구독 관리 페이지를 열 수 없습니다. 잠시 후 다시 시도하세요.",
"priceInterval": "{{price}} / {{interval}}",
- "includedCredits": "매{{interval}} {{amount}} 크레딧 포함",
+ "includedCredits": "매{{interval}} {{amount}} 포함",
"renewsAt": "다음 갱신일 {{date}}",
"endsAt": "{{date}}에 요금제 종료",
"cancelAction": "구독 취소",
"cancelConfirmTitle": "현재 구독을 취소할까요?",
- "cancelConfirmDescription": "이 작업으로 환불되거나 크레딧이 즉시 변경되지 않습니다. 현재 요금제는 {{date}}까지 사용할 수 있으며 이후에는 갱신되지 않습니다. 취소는 앱에서 되돌릴 수 없으며, 이번 결제 기간이 끝날 때까지 새 요금제를 구매할 수 없습니다.",
- "cancelConfirmDescriptionWithoutDate": "이 작업으로 환불되거나 크레딧이 즉시 변경되지 않습니다. 현재 요금제는 이번 결제 기간이 끝날 때까지 사용할 수 있으며 이후에는 갱신되지 않습니다. 취소는 앱에서 되돌릴 수 없으며, 이번 결제 기간이 끝날 때까지 새 요금제를 구매할 수 없습니다.",
+ "cancelConfirmDescription": "이 작업으로 환불되거나 잔액이 즉시 변경되지 않습니다. 현재 요금제는 {{date}}까지 사용할 수 있으며 이후에는 갱신되지 않습니다. 취소는 앱에서 되돌릴 수 없으며, 이번 결제 기간이 끝날 때까지 새 요금제를 구매할 수 없습니다.",
+ "cancelConfirmDescriptionWithoutDate": "이 작업으로 환불되거나 잔액이 즉시 변경되지 않습니다. 현재 요금제는 이번 결제 기간이 끝날 때까지 사용할 수 있으며 이후에는 갱신되지 않습니다. 취소는 앱에서 되돌릴 수 없으며, 이번 결제 기간이 끝날 때까지 새 요금제를 구매할 수 없습니다.",
"cancelConfirmAction": "취소 확인",
"cancelSuccess": "자동 갱신을 취소했습니다. 현재 요금제는 {{date}}까지 사용할 수 있습니다.",
"cancelSuccessWithoutDate": "자동 갱신을 취소했습니다. 현재 요금제는 이번 결제 기간이 끝난 후 종료됩니다.",
@@ -7566,35 +7566,33 @@
"cancelFailed": "구독을 취소하지 못했습니다. 잠시 후 다시 시도해 주세요."
},
"topupCard": {
- "action": "크레딧 구매"
+ "action": "잔액 충전"
}
},
"balance": {
"title": "사용 가능 잔액",
- "creditParityCny": "1크레딧 = 1위안. 크레딧은 Cindy AI 사용량 결제에 사용되며, 결제는 제3자 결제 채널에서 처리됩니다.",
- "creditParityUsd": "1크레딧 = 1달러. 크레딧은 Cindy AI 사용량 결제에 사용되며, 결제는 제3자 결제 채널에서 처리됩니다.",
- "plan": "요금제 크레딧",
- "purchased": "구매한 크레딧",
- "promotional": "프로모션 크레딧",
- "notProvisioned": "이 계정에는 아직 크레딧이 활성화되지 않았습니다.",
+ "plan": "요금제 잔액",
+ "purchased": "충전 잔액",
+ "promotional": "프로모션 잔액",
+ "notProvisioned": "이 계정에는 아직 잔액이 활성화되지 않았습니다.",
"notSupported": "이 계정에서는 잔액 조회를 지원하지 않습니다.",
"unavailable": "잔액을 불러올 수 없습니다. 새로고침 후 다시 시도하세요."
},
"usage": {
- "title": "크레딧 사용량",
- "observedAt": "크레딧 업데이트: {{date}}",
+ "title": "잔액 사용량",
+ "observedAt": "잔액 업데이트: {{date}}",
"poolDetail": "사용 {{used}} · 전체 {{total}}",
"remaining": "잔여",
"progressLabel": "{{label}} 사용량",
- "noPlanCredits": "활성 구독이 없어 구독 크레딧이 없습니다.",
- "historyUnavailable": "사용 기록이 완전하지 않아 잔여 크레딧만 표시합니다.",
+ "noPlanCredits": "활성 구독이 없어 요금제 잔액이 없습니다.",
+ "historyUnavailable": "사용 기록이 완전하지 않아 남은 잔액만 표시합니다.",
"detailsUnavailable": "사용량 상세를 불러올 수 없어 현재 잔액만 표시합니다.",
"promotionalDetails": {
- "title": "프로모션 크레딧 상세",
+ "title": "프로모션 잔액 상세",
"count": "{{count}}건",
- "empty": "프로모션 크레딧 지급 내역이 없습니다.",
+ "empty": "프로모션 지급 내역이 없습니다.",
"incomplete": "지급 내역이 많아 최근 {{count}}건만 표시합니다.",
- "unnamed": "프로모션 크레딧",
+ "unnamed": "프로모션 잔액",
"original": "지급액",
"used": "사용",
"remaining": "잔여",
@@ -7612,7 +7610,7 @@
"title": "구독 요금제 선택"
},
"topup": {
- "title": "크레딧 구매"
+ "title": "잔액 충전"
}
},
"steps": {
@@ -7649,7 +7647,7 @@
"MONTH": "월",
"YEAR": "년"
},
- "credits": "{{amount}} 크레딧",
+ "credits": "{{amount}} 포함",
"confirm": {
"channel": "{{provider}}로 결제"
},
@@ -7682,7 +7680,7 @@
"failedTitle": "완료할 수 없음",
"expiredTitle": "결제 만료",
"canceledTitle": "결제 취소됨",
- "topupSubtitle": "크레딧 충전",
+ "topupSubtitle": "잔액 충전",
"subscriptionSubtitle": "구독",
"creatingBody": "결제 서비스에서 주문을 확인하고 있습니다…",
"qrAlt": "결제 QR 코드",
diff --git a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
index 6c6125336c..cbf54f1620 100644
--- a/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
+++ b/apps/desktop/src/renderer/i18n/locales/zh-CN/common.json
@@ -7537,7 +7537,7 @@
}
},
"billing": {
- "sidebar": "点数与订阅",
+ "sidebar": "余额与订阅",
"settings": {
"title": "用量和计费",
"subscriptionCard": {
@@ -7552,13 +7552,13 @@
"portalAction": "Stripe 管理",
"portalFailed": "无法打开 Stripe 订阅管理页,请稍后重试。",
"priceInterval": "{{price}} / {{interval}}",
- "includedCredits": "每{{interval}}包含 {{amount}} 点数",
+ "includedCredits": "每{{interval}}包含 {{amount}}",
"renewsAt": "下次续费 {{date}}",
"endsAt": "套餐将于 {{date}} 结束",
"cancelAction": "取消订阅",
"cancelConfirmTitle": "取消当前订阅?",
- "cancelConfirmDescription": "本次操作不会退款,也不会立即调整点数。当前套餐权益可继续使用至 {{date}},之后不再续费。取消后无法在应用内恢复,本计费周期结束前也无法购买新套餐。",
- "cancelConfirmDescriptionWithoutDate": "本次操作不会退款,也不会立即调整点数。当前套餐权益可继续使用至本计费周期结束,之后不再续费。取消后无法在应用内恢复,本计费周期结束前也无法购买新套餐。",
+ "cancelConfirmDescription": "本次操作不会退款,也不会立即调整余额。当前套餐权益可继续使用至 {{date}},之后不再续费。取消后无法在应用内恢复,本计费周期结束前也无法购买新套餐。",
+ "cancelConfirmDescriptionWithoutDate": "本次操作不会退款,也不会立即调整余额。当前套餐权益可继续使用至本计费周期结束,之后不再续费。取消后无法在应用内恢复,本计费周期结束前也无法购买新套餐。",
"cancelConfirmAction": "确认取消",
"cancelSuccess": "已取消自动续费,当前套餐可使用至 {{date}}。",
"cancelSuccessWithoutDate": "已取消自动续费,当前套餐将在本计费周期结束后到期。",
@@ -7566,36 +7566,34 @@
"cancelFailed": "取消订阅失败,请稍后重试。"
},
"topupCard": {
- "action": "购买点数"
+ "action": "余额充值"
}
},
"balance": {
"title": "可用余额",
- "creditParityCny": "1 点 = 1 元,用于 Cindy AI 用量结算;支付由第三方渠道处理。",
- "creditParityUsd": "1 点 = 1 美元,用于 Cindy AI 用量结算;支付由第三方渠道处理。",
- "plan": "订阅点数",
- "purchased": "已购点数",
- "promotional": "赠送点数",
- "notProvisioned": "当前账户尚未开通点数。",
+ "plan": "订阅余额",
+ "purchased": "充值余额",
+ "promotional": "赠送余额",
+ "notProvisioned": "当前账户尚未开通余额。",
"notSupported": "当前账户暂不支持余额查询。",
"unavailable": "暂时无法获取余额,请刷新后重试。"
},
"usage": {
- "title": "点数用量",
+ "title": "余额用量",
"observedAt": "余额更新于 {{date}}",
"poolDetail": "已用 {{used}} · 总额 {{total}}",
"remaining": "剩余",
"progressLabel": "{{label}}使用进度",
- "noPlanCredits": "当前无生效订阅,因此没有订阅点数。",
+ "noPlanCredits": "当前无生效订阅,因此没有订阅余额。",
"historyUnavailable": "历史记录不完整,暂时仅显示剩余余额。",
"detailsUnavailable": "用量明细暂时不可用,当前仅显示各类余额。",
"promotionalDetails": {
- "title": "赠送点数明细",
+ "title": "赠送余额明细",
"count": "{{count}} 笔",
- "empty": "当前没有赠送点数记录。",
+ "empty": "当前没有赠送记录。",
"incomplete": "赠送记录较多,当前仅显示最近的 {{count}} 笔。",
- "unnamed": "赠送点数",
- "original": "原始点数",
+ "unnamed": "赠送余额",
+ "original": "原始金额",
"used": "已用",
"remaining": "剩余",
"expiresAt": "有效期至 {{date}}",
@@ -7612,7 +7610,7 @@
"title": "选择订阅套餐"
},
"topup": {
- "title": "购买点数"
+ "title": "余额充值"
}
},
"steps": {
@@ -7649,7 +7647,7 @@
"MONTH": "月",
"YEAR": "年"
},
- "credits": "{{amount}} 点数",
+ "credits": "含 {{amount}}",
"confirm": {
"channel": "通过 {{provider}} 支付"
},
@@ -7682,7 +7680,7 @@
"failedTitle": "暂时无法完成",
"expiredTitle": "支付已过期",
"canceledTitle": "支付已取消",
- "topupSubtitle": "点数充值",
+ "topupSubtitle": "余额充值",
"subscriptionSubtitle": "订阅套餐",
"creatingBody": "正在向支付服务确认订单…",
"qrAlt": "支付二维码",
diff --git a/i18n/GLOSSARY.md b/i18n/GLOSSARY.md
index 981337da7a..686984a28f 100644
--- a/i18n/GLOSSARY.md
+++ b/i18n/GLOSSARY.md
@@ -92,7 +92,7 @@
- **Collaboration** — Orca 多 Agent 功能名,中文用「协同」(现状 21:2)。可见 bug:设置导航项写「协作」,点进去页面标题写「协同」。条件禁用:settings.contacts 里的「协作经历」是 collaboration history,属另一个语义,英文源不含独立 Collaboration 一词时不判违规。
- 豁免范围:`desktop:settings.contacts.`
- **Collapse** — 中文用「收起」(现状 29:7),与反义词「展开」(Expand,29/30 已统一)配对。ccAgent 与 rightSidebar 内部各自「收起 / 折叠」混用,是同模块自相矛盾。条件禁用:「折叠」在别处可能是正常中文,只在英文源含 Collapse 时判违规。
-- **Credits** — 计费点数用「点数」。清理前中文「额度」同时对应 Balance / Credits / Quota 三个英文概念,是计费面板里最容易误导用户的一处:同一个 billing 页面里「点数」和「额度」并存,而「额度」在别处又指配额。裁决把三者拆开——Credits =「点数」、Quota =「配额」、Balance =「余额」,「额度」整体退出。「额度」的禁用按英文源拆成三条条件禁用,分别挂在 credits / quota / balance 下。不能无条件禁:同一个「额度」在不同 key 里分别对应 Credits / Quota / Balance,目标译法不唯一,无条件禁只会让自动替换随机挑一个——xAI 的 subscription quota 就是这样被改成「订阅点数」的。第三方原生 credits 与 reset credits 属不同概念,走 alsoAllowed。whenEn 写单数 Credit:匹配本来就带可选复数 s,单数能同时覆盖 Credit / Credits,写成复数反而漏掉全部单数用法(Promotional Credit Details、credit snapshot 等 8 个 key 原先完全不受约束)。
+- **Credits** — 计费点数用「点数」。清理前中文「额度」同时对应 Balance / Credits / Quota 三个英文概念,是计费面板里最容易误导用户的一处:同一个 billing 页面里「点数」和「额度」并存,而「额度」在别处又指配额。裁决把三者拆开——Credits =「点数」、Quota =「配额」、Balance =「余额」,「额度」整体退出。「额度」的禁用按英文源拆成三条条件禁用,分别挂在 credits / quota / balance 下。不能无条件禁:同一个「额度」在不同 key 里分别对应 Credits / Quota / Balance,目标译法不唯一,无条件禁只会让自动替换随机挑一个——xAI 的 subscription quota 就是这样被改成「订阅点数」的。第三方原生 credits 与 reset credits 属不同概念,走 alsoAllowed。whenEn 写单数 Credit:匹配本来就带可选复数 s,单数能同时覆盖 Credit / Credits,写成复数反而漏掉全部单数用法(Promotional Credit Details、credit snapshot 等 8 个 key 原先完全不受约束)。(2026-07-30 更新:Desktop billing 界面弃用「点数」概念(PR #1053),计费文案与金额直接挂钩——新增计费文案一律用金额/余额(Balance=余额)措辞,en 源不再引入 Credit/Credits 用词,因此本条的 Credits→点数 映射不再适用于计费界面;裁决继续约束的只剩 alsoAllowed 覆盖的第三方原生 credits(Codex / ChatGPT 订阅余量)与 reset credits 语境。后续给计费界面添加文案时不要恢复「点数」。)
- **Directory** — Directory 用「目录」(现状 96:4),Folder 用「文件夹」(37:20),两个英文词在中文里也分开。**本条刻意不设 forbidden**:英文侧自己就在一句话里混用二者("not a folder. Choose a project directory."、"re-select the working directory and wait for the folder badge"),而条件禁用是句子级匹配,区分不了句内哪个中文词对应哪个英文词——实测 4 处命中全是假阳性,那 4 条中文其实译得完全正确。要真正管住这对词,得先清理英文侧的 path / folder / directory 混用。此条目保留为文档指引,供人查阅。
- **Dismiss** — 中文用「关闭」(现状 6:4)。同一个 chat 模块里,errorBanner 写「关闭错误提示」、interruptedBanner 写「忽略此中断提示」。条件禁用:「忽略」是 Ignore 的正确译法、「知道了」是 Got it 的正确译法,只在英文源为 Dismiss 时才算违规。
- **Effort** — 模型的推理投入档位(low/medium/high/…)。用「推理强度」有三重依据:①同类工具 i18n 里断层第一(GitHub 代码搜索共现量级 1452,第二名「思考强度」431);②OpenAI 简中帮助中心即用此词;③跨 provider 中立——Cindy 的 create_worker 用一个 effort 同时映射 Codex reasoning effort 与 Claude thinking 预算,而 Anthropic 官方简中叫「努力程度」、OpenAI 叫「推理强度」,需要不偏向任一方的词。禁用项各有硬理由:「思考深度」「推理深度」会与国内产品普遍的「深度思考」开关撞车,且语义错误(低 effort 是想得少,不是想得浅);「努力程度」在中文里强烈指向人的绩效评价;「推理等级/级别」未入禁用但不推荐——Cindy 已有 model tier 概念,「等级」易被读成模型档位。
@@ -100,8 +100,8 @@
- 豁免范围:`desktop:scheduler.editor.script.capabilityDescs.jira_comment`、`desktop:scheduler.editor.script.capabilityDescs.jira_read`
- **Plugin** — 中文一律「插件」,不保留英文原词(现状 94:4)。历史上 Ghost / Plugin 两种叫法并存,对外统一为「插件」。
- **Project** — 中文一律「项目」(现状 119:15)。同一个侧边栏里筛选叫「项目」、批量操作提示叫「Project」是既有 bug。小写 project 不入 forbidden——它常出现在路径与文件名里(project.json)。
-- **Provider** — 中文用「供应商」(现状 36:18 领先简称)。全称「模型供应商」在需要消歧的位置仍可用。「提供商」「提供方」是同义漂移,禁用——设置页标题写「模型供应商」、它自己的表单写「提供商」是既有 bug。豁免 ssoVerificationSubtitle:那里的「身份提供方」是 SSO / SAML 领域 Identity Provider 的标准中文术语,与模型供应商是两个概念。该文案在 desktop locale 与 mobile 影子 catalog 各有一份副本,两处都要豁免。(2026-07 修正:ko 原声明 제공업체 仅 6 处,实测 제공자 32 处为主流,改随主流。)ja 的「提供元」是多义词——同时表示 "source"(来源),因此按 whenEn=Provider 条件禁用;无条件禁会把「共有元の提供元を信頼できるか」这类 source 语境一并换掉。豁免 creditParity 两条:那里的 third-party providers 指支付渠道/收单机构,不是模型供应商——ja 用「事業者」、zh-CN 用「第三方渠道」都对,套上「プロバイダー」反而会让用户以为是模型服务商在收钱。
- - 豁免范围:`desktop:billing.balance.creditParityCny`、`desktop:billing.balance.creditParityUsd`、`desktop:login.ssoVerificationSubtitle`、`mobile/loginMessages:ssoVerificationSubtitle`
+- **Provider** — 中文用「供应商」(现状 36:18 领先简称)。全称「模型供应商」在需要消歧的位置仍可用。「提供商」「提供方」是同义漂移,禁用——设置页标题写「模型供应商」、它自己的表单写「提供商」是既有 bug。豁免 ssoVerificationSubtitle:那里的「身份提供方」是 SSO / SAML 领域 Identity Provider 的标准中文术语,与模型供应商是两个概念。该文案在 desktop locale 与 mobile 影子 catalog 各有一份副本,两处都要豁免。(2026-07 修正:ko 原声明 제공업체 仅 6 处,实测 제공자 32 处为主流,改随主流。)ja 的「提供元」是多义词——同时表示 "source"(来源),因此按 whenEn=Provider 条件禁用;无条件禁会把「共有元の提供元を信頼できるか」这类 source 语境一并换掉。豁免 creditParity 两条:那里的 third-party providers 指支付渠道/收单机构,不是模型供应商——ja 用「事業者」、zh-CN 用「第三方渠道」都对,套上「プロバイダー」反而会让用户以为是模型服务商在收钱。(2026-07 更新:billing 弃用「点数」概念改用金额/余额,creditParityCny/Usd 两条文案已删除,对应豁免一并移除。)
+ - 豁免范围:`desktop:login.ssoVerificationSubtitle`、`mobile/loginMessages:ssoVerificationSubtitle`
- **Proxy** — 网络代理,中文保留英文原词(2026-07 裁决:Agent 与 Proxy 都不叫「代理」)。本条只管英文源为 Proxy 的那些——Agent / Subagent 的「代理」误译各自登记在自己条目下。ja / ko 沿用既有音译。whenEn 的匹配走 makeSourceTermMatcher,复数按英语真实形态展开:Proxy 的复数是 proxies,原先只认「加 s」,英文源写 system proxies 时这条条件禁用会整个跳过。
- **Quota** — 周期内的使用上限用「配额」(现状已有 3 处这么写)。与 credits 条目一起裁决:「额度」原先同时表示 Balance / Credits / Quota,三个概念在计费与限额提示里互相污染。「额度」的 forbidden 统一登记在 credits 条目下,不在这里重复——一个词只归属一个术语,否则同一处违规会被两个术语各报一次。(2026-07 修正:ko 原声明 쿼터 在全仓零出现,属凭空造词;ja 原声明 クォータ 仅 desktop 用、mobile 用 残量。定为 ja クォータ / ko 할당량——残量 语义偏 Balance 会与 残高 混淆,而 ko 的 사용량 正是 Usage 的标准词,让 Quota 占用它会重演 zh「额度」三义合一的错误。)
- **Running** — 状态标签用「运行中」(现状 16:9)。条件禁用是必需的——「进行中」是 In Progress 的正确译法、「执行中」在别处也可能对,无条件禁会大面积误伤。mobile/devices 的自动化面板上「运行中 / 执行中 / 重跑中」三种写法同屏出现。
diff --git a/i18n/glossary.json b/i18n/glossary.json
index 4ad3d3a819..f83a5adc5f 100644
--- a/i18n/glossary.json
+++ b/i18n/glossary.json
@@ -397,7 +397,7 @@
}
]
},
- "note": "计费点数用「点数」。清理前中文「额度」同时对应 Balance / Credits / Quota 三个英文概念,是计费面板里最容易误导用户的一处:同一个 billing 页面里「点数」和「额度」并存,而「额度」在别处又指配额。裁决把三者拆开——Credits =「点数」、Quota =「配额」、Balance =「余额」,「额度」整体退出。「额度」的禁用按英文源拆成三条条件禁用,分别挂在 credits / quota / balance 下。不能无条件禁:同一个「额度」在不同 key 里分别对应 Credits / Quota / Balance,目标译法不唯一,无条件禁只会让自动替换随机挑一个——xAI 的 subscription quota 就是这样被改成「订阅点数」的。第三方原生 credits 与 reset credits 属不同概念,走 alsoAllowed。whenEn 写单数 Credit:匹配本来就带可选复数 s,单数能同时覆盖 Credit / Credits,写成复数反而漏掉全部单数用法(Promotional Credit Details、credit snapshot 等 8 个 key 原先完全不受约束)。"
+ "note": "计费点数用「点数」。清理前中文「额度」同时对应 Balance / Credits / Quota 三个英文概念,是计费面板里最容易误导用户的一处:同一个 billing 页面里「点数」和「额度」并存,而「额度」在别处又指配额。裁决把三者拆开——Credits =「点数」、Quota =「配额」、Balance =「余额」,「额度」整体退出。「额度」的禁用按英文源拆成三条条件禁用,分别挂在 credits / quota / balance 下。不能无条件禁:同一个「额度」在不同 key 里分别对应 Credits / Quota / Balance,目标译法不唯一,无条件禁只会让自动替换随机挑一个——xAI 的 subscription quota 就是这样被改成「订阅点数」的。第三方原生 credits 与 reset credits 属不同概念,走 alsoAllowed。whenEn 写单数 Credit:匹配本来就带可选复数 s,单数能同时覆盖 Credit / Credits,写成复数反而漏掉全部单数用法(Promotional Credit Details、credit snapshot 等 8 个 key 原先完全不受约束)。(2026-07-30 更新:Desktop billing 界面弃用「点数」概念(PR #1053),计费文案与金额直接挂钩——新增计费文案一律用金额/余额(Balance=余额)措辞,en 源不再引入 Credit/Credits 用词,因此本条的 Credits→点数 映射不再适用于计费界面;裁决继续约束的只剩 alsoAllowed 覆盖的第三方原生 credits(Codex / ChatGPT 订阅余量)与 reset credits 语境。后续给计费界面添加文案时不要恢复「点数」。)"
},
{
"id": "device",
@@ -651,10 +651,8 @@
"제공업체"
]
},
- "note": "中文用「供应商」(现状 36:18 领先简称)。全称「模型供应商」在需要消歧的位置仍可用。「提供商」「提供方」是同义漂移,禁用——设置页标题写「模型供应商」、它自己的表单写「提供商」是既有 bug。豁免 ssoVerificationSubtitle:那里的「身份提供方」是 SSO / SAML 领域 Identity Provider 的标准中文术语,与模型供应商是两个概念。该文案在 desktop locale 与 mobile 影子 catalog 各有一份副本,两处都要豁免。(2026-07 修正:ko 原声明 제공업체 仅 6 处,实测 제공자 32 处为主流,改随主流。)ja 的「提供元」是多义词——同时表示 \"source\"(来源),因此按 whenEn=Provider 条件禁用;无条件禁会把「共有元の提供元を信頼できるか」这类 source 语境一并换掉。豁免 creditParity 两条:那里的 third-party providers 指支付渠道/收单机构,不是模型供应商——ja 用「事業者」、zh-CN 用「第三方渠道」都对,套上「プロバイダー」反而会让用户以为是模型服务商在收钱。",
+ "note": "中文用「供应商」(现状 36:18 领先简称)。全称「模型供应商」在需要消歧的位置仍可用。「提供商」「提供方」是同义漂移,禁用——设置页标题写「模型供应商」、它自己的表单写「提供商」是既有 bug。豁免 ssoVerificationSubtitle:那里的「身份提供方」是 SSO / SAML 领域 Identity Provider 的标准中文术语,与模型供应商是两个概念。该文案在 desktop locale 与 mobile 影子 catalog 各有一份副本,两处都要豁免。(2026-07 修正:ko 原声明 제공업체 仅 6 处,实测 제공자 32 处为主流,改随主流。)ja 的「提供元」是多义词——同时表示 \"source\"(来源),因此按 whenEn=Provider 条件禁用;无条件禁会把「共有元の提供元を信頼できるか」这类 source 语境一并换掉。豁免 creditParity 两条:那里的 third-party providers 指支付渠道/收单机构,不是模型供应商——ja 用「事業者」、zh-CN 用「第三方渠道」都对,套上「プロバイダー」反而会让用户以为是模型服务商在收钱。(2026-07 更新:billing 弃用「点数」概念改用金额/余额,creditParityCny/Usd 两条文案已删除,对应豁免一并移除。)",
"exempt": [
- "desktop:billing.balance.creditParityCny",
- "desktop:billing.balance.creditParityUsd",
"desktop:login.ssoVerificationSubtitle",
"mobile/loginMessages:ssoVerificationSubtitle"
]