Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

💄 style(subscription): name usage overview credits by what they are (#22608)

YuTengjing328379b79bab
diff --git a/locales/en-US/subscription.json b/locales/en-US/subscription.json
index a57a019b3d4..92ce993337a 100644
--- a/locales/en-US/subscription.json
+++ b/locales/en-US/subscription.json
@@ -840,6 +840,8 @@
"usage.credit.subscription.used": "Subscription usage",
"usage.credit.title": "Usage",
"usage.overview.charge": "Charges",
+ "usage.overview.credits.subscription": "Subscription credits",
+ "usage.overview.credits.topUp": "Top-up credits",
"usage.overview.currentPlan": "You are on {{plan}} plan",
"usage.overview.included": "Plan usage",
"usage.overview.onDemand": "On-demand",
@@ -849,7 +851,7 @@
"usage.overview.resetsIn_one": "Resets in {{count}} day",
"usage.overview.resetsIn_other": "Resets in {{count}} days",
"usage.overview.resetsToday": "Resets today",
- "usage.overview.section.balance": "Balance",
+ "usage.overview.section.credits": "Credits",
"usage.overview.section.limits": "Limits",
"usage.overview.section.storage": "Storage",
"usage.overview.title": "Overview",
@@ -866,7 +868,7 @@
"usage.window.overflow.off": "Off: requests pause when a limit runs out",
"usage.window.overflow.title": "Use balance after limits",
"usage.window.overflow.updateFailed": "Update failed. Try again.",
- "usage.window.referral": "Referral rewards",
+ "usage.window.referral": "Referral credits",
"usage.window.resetsIn": "Resets in {{duration}}",
"usage.window.rule.plan5h": "5-hour limit",
"usage.window.rule.plan7d": "Weekly limit",
diff --git a/locales/zh-CN/subscription.json b/locales/zh-CN/subscription.json
index 3dd0ab77cfa..028ea0d8702 100644
--- a/locales/zh-CN/subscription.json
+++ b/locales/zh-CN/subscription.json
@@ -840,6 +840,8 @@
"usage.credit.subscription.used": "订阅额度",
"usage.credit.title": "额度",
"usage.overview.charge": "按量计费",
+ "usage.overview.credits.subscription": "订阅额度",
+ "usage.overview.credits.topUp": "充值额度",
"usage.overview.currentPlan": "当前套餐:{{plan}}",
"usage.overview.included": "套餐内使用",
"usage.overview.onDemand": "按需使用",
@@ -849,7 +851,7 @@
"usage.overview.resetsIn_one": "{{count}} 天后重置",
"usage.overview.resetsIn_other": "{{count}} 天后重置",
"usage.overview.resetsToday": "今天重置",
- "usage.overview.section.balance": "余额",
+ "usage.overview.section.credits": "额度",
"usage.overview.section.limits": "限额",
"usage.overview.section.storage": "存储",
"usage.overview.title": "总览",
diff --git a/packages/locales/src/default/subscription.ts b/packages/locales/src/default/subscription.ts
index 79a96f3f415..3530210324a 100644
--- a/packages/locales/src/default/subscription.ts
+++ b/packages/locales/src/default/subscription.ts
@@ -960,7 +960,9 @@ export default {
'usage.overview.resetsInHours_other': 'Resets in {{count}} hours',
'usage.overview.resetsToday': 'Resets today',
'usage.overview.title': 'Overview',
- 'usage.overview.section.balance': 'Balance',
+ 'usage.overview.credits.subscription': 'Subscription credits',
+ 'usage.overview.credits.topUp': 'Top-up credits',
+ 'usage.overview.section.credits': 'Credits',
'usage.overview.section.limits': 'Limits',
'usage.overview.section.storage': 'Storage',
'usage.storage.embeddings.used': 'Vector storage',
@@ -990,7 +992,7 @@ export default {
'modelPricing.descUsd':
'{{name}} bills AI model usage by tokens. The table below shows the price in USD per 1M tokens.',
'creditsChip.rolling.topup': 'Top up',
- 'usage.window.referral': 'Referral rewards',
+ 'usage.window.referral': 'Referral credits',
'tab.balance': 'Balance',
'credits.topUp.titleUsd': 'Top up balance',
'credits.topUp.customHintUsd': 'Any amount from ${{min}}',
diff --git a/src/components/Skeleton/Settings/sectionShapes.ts b/src/components/Skeleton/Settings/sectionShapes.ts
index bc0db92db14..a0265b5fbb4 100644
--- a/src/components/Skeleton/Settings/sectionShapes.ts
+++ b/src/components/Skeleton/Settings/sectionShapes.ts
@@ -112,10 +112,10 @@ export const SETTINGS_SECTION_SHAPES: Record<string, SettingsSectionsShape> = {
{
blocks: [
{
- caption: ['subscription', 'usage.overview.section.balance'],
+ caption: ['subscription', 'usage.overview.section.credits'],
cellHeight: 95,
labels: [
- ['subscription', 'usage.window.credits'],
+ ['subscription', 'usage.overview.credits.topUp'],
['subscription', 'usage.window.referral'],
],
},