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.

✨ feat(locales): copy for notifying admins when a member budget runs out (#23457)

Rdmclin2ff9a881ba82f
diff --git a/locales/en-US/notification.json b/locales/en-US/notification.json
index 68cf0f9dc73..adfc55c1181 100644
--- a/locales/en-US/notification.json
+++ b/locales/en-US/notification.json
@@ -148,6 +148,9 @@
"workspace_credit_balance_low": "Workspace \"{{workspaceName}}\" is running low on balance — about {{balance}} remaining in the shared pool. Top up or turn on auto top-up to keep your team working.",
"workspace_credit_balance_low_action": "Top up",
"workspace_credit_balance_low_title": "Workspace balance running low",
+ "workspace_member_budget_exceeded": "{{memberLabel}} has used up their member budget in \"{{workspaceName}}\" and asked you to raise it.",
+ "workspace_member_budget_exceeded_action": "Adjust budget",
+ "workspace_member_budget_exceeded_title": "Member budget used up",
"workspace_member_invited": "{{inviterLabel}} invited you to join workspace \"{{workspaceName}}\" as a {{role}}.",
"workspace_member_invited_title": "Invitation to join {{workspaceName}}",
"workspace_member_joined": "{{memberLabel}} joined workspace \"{{workspaceName}}\" as a {{role}}.",
diff --git a/locales/en-US/setting.json b/locales/en-US/setting.json
index 48768f637f8..73444a2b712 100644
--- a/locales/en-US/setting.json
+++ b/locales/en-US/setting.json
@@ -1457,6 +1457,7 @@
"notification.item.topic_comment_mentioned": "Mentioned in a comment",
"notification.item.video_generation_completed": "Video generation completed",
"notification.item.workspace_credit_balance_low": "Workspace balance running low",
+ "notification.item.workspace_member_budget_exceeded": "Member budget used up",
"notification.item.workspace_member_invited": "Workspace invitation",
"notification.item.workspace_member_joined": "New member joined",
"notification.item.workspace_member_removed": "Removed from workspace",
diff --git a/locales/en-US/subscription.json b/locales/en-US/subscription.json
index 58e85f90c1a..220fa8f72de 100644
--- a/locales/en-US/subscription.json
+++ b/locales/en-US/subscription.json
@@ -487,7 +487,15 @@
"limitation.workspace.insufficientBudget.title": "Workspace balance insufficient",
"limitation.workspace.insufficientBudget.topup": "Top up",
"limitation.workspace.insufficientBudget.upgradeToPro": "Upgrade to Pro",
+ "limitation.workspace.memberBudget.adminDesc": "You have reached your member budget in this workspace. As an admin, you can raise it in budget settings — top-ups and plan upgrades do not change member limits.",
"limitation.workspace.memberBudget.desc": "You have reached the personal budget set by this workspace. Contact a workspace admin to adjust your quota — top-up and plan upgrades do not change member limits.",
+ "limitation.workspace.memberBudget.notify.action": "Notify admins",
+ "limitation.workspace.memberBudget.notify.error": "Couldn't notify admins. Please try again.",
+ "limitation.workspace.memberBudget.notify.manage": "Adjust in budget settings",
+ "limitation.workspace.memberBudget.notify.noAdmin": "This workspace has no other admin to notify.",
+ "limitation.workspace.memberBudget.notify.sent": "Admins notified",
+ "limitation.workspace.memberBudget.notify.sentHint": "Retry once an admin has raised your budget.",
+ "limitation.workspace.memberBudget.notifyDesc": "You have reached the member budget this workspace set for you. Let the workspace admins know so they can raise it — top-ups and plan upgrades do not change member limits.",
"limitation.workspace.memberBudget.retry": "Retry",
"limitation.workspace.memberBudget.title": "Member budget reached",
"modelSelection.confirm.continue": "Continue using",
diff --git a/locales/zh-CN/notification.json b/locales/zh-CN/notification.json
index 169f96f73cb..24d21f17c7c 100644
--- a/locales/zh-CN/notification.json
+++ b/locales/zh-CN/notification.json
@@ -148,6 +148,9 @@
"workspace_credit_balance_low": "工作区 \"{{workspaceName}}\" 的余额即将用尽 — 共享余额仅剩约 {{balance}}。请充值或开启自动充值,避免团队工作中断。",
"workspace_credit_balance_low_action": "充值",
"workspace_credit_balance_low_title": "工作区余额即将用尽",
+ "workspace_member_budget_exceeded": "{{memberLabel}} 已用完在工作区 \"{{workspaceName}}\" 的成员预算,请你帮忙调整额度。",
+ "workspace_member_budget_exceeded_action": "调整额度",
+ "workspace_member_budget_exceeded_title": "成员预算已用尽",
"workspace_member_invited": "{{inviterLabel}} 邀请您以 {{role}} 的身份加入工作区 \"{{workspaceName}}\"。",
"workspace_member_invited_title": "加入 {{workspaceName}} 的邀请",
"workspace_member_joined": "{{memberLabel}} 已加入工作区 \"{{workspaceName}}\",角色为 {{role}}。",
diff --git a/locales/zh-CN/setting.json b/locales/zh-CN/setting.json
index 5725f03345a..c3d39ee4e1d 100644
--- a/locales/zh-CN/setting.json
+++ b/locales/zh-CN/setting.json
@@ -1457,6 +1457,7 @@
"notification.item.topic_comment_mentioned": "评论中被提及",
"notification.item.video_generation_completed": "视频生成完成",
"notification.item.workspace_credit_balance_low": "工作区余额即将用尽",
+ "notification.item.workspace_member_budget_exceeded": "成员预算已用尽",
"notification.item.workspace_member_invited": "工作区邀请",
"notification.item.workspace_member_joined": "新成员加入",
"notification.item.workspace_member_removed": "已从工作区移除",
diff --git a/locales/zh-CN/subscription.json b/locales/zh-CN/subscription.json
index 71d93550dc5..5f7150c8d78 100644
--- a/locales/zh-CN/subscription.json
+++ b/locales/zh-CN/subscription.json
@@ -487,7 +487,15 @@
"limitation.workspace.insufficientBudget.title": "工作区余额不足",
"limitation.workspace.insufficientBudget.topup": "充值",
"limitation.workspace.insufficientBudget.upgradeToPro": "升级到专业版",
+ "limitation.workspace.memberBudget.adminDesc": "你已用完在该工作区的成员预算。作为管理员,你可以在预算设置中直接调整——充值或升级套餐不会改变成员限额。",
"limitation.workspace.memberBudget.desc": "你已达到该工作区为你设置的成员预算上限。请联系工作区管理员调整你的额度——充值或升级套餐不会改变成员限额。",
+ "limitation.workspace.memberBudget.notify.action": "通知管理员",
+ "limitation.workspace.memberBudget.notify.error": "通知发送失败,请重试",
+ "limitation.workspace.memberBudget.notify.manage": "前往预算设置调整",
+ "limitation.workspace.memberBudget.notify.noAdmin": "该工作区没有其他管理员可以通知",
+ "limitation.workspace.memberBudget.notify.sent": "已通知管理员",
+ "limitation.workspace.memberBudget.notify.sentHint": "管理员调整额度后,点「重试」即可继续。",
+ "limitation.workspace.memberBudget.notifyDesc": "你已达到该工作区为你设置的成员预算上限。可以通知工作区管理员为你调整额度——充值或升级套餐不会改变成员限额。",
"limitation.workspace.memberBudget.retry": "重试",
"limitation.workspace.memberBudget.title": "成员预算已用尽",
"modelSelection.confirm.continue": "继续使用",
diff --git a/packages/locales/src/default/notification.ts b/packages/locales/src/default/notification.ts
index ee7e8b5f4b0..10de494b460 100644
--- a/packages/locales/src/default/notification.ts
+++ b/packages/locales/src/default/notification.ts
@@ -178,6 +178,10 @@ export default {
'Workspace "{{workspaceName}}" is running low on balance — about {{balance}} remaining in the shared pool. Top up or turn on auto top-up to keep your team working.',
'workspace_credit_balance_low_action': 'Top up',
'workspace_credit_balance_low_title': 'Workspace balance running low',
+ 'workspace_member_budget_exceeded':
+ '{{memberLabel}} has used up their member budget in "{{workspaceName}}" and asked you to raise it.',
+ 'workspace_member_budget_exceeded_action': 'Adjust budget',
+ 'workspace_member_budget_exceeded_title': 'Member budget used up',
'workspace_member_invited':
'{{inviterLabel}} invited you to join workspace "{{workspaceName}}" as a {{role}}.',
'workspace_member_invited_title': 'Invitation to join {{workspaceName}}',
diff --git a/packages/locales/src/default/setting.ts b/packages/locales/src/default/setting.ts
index 305b4d4df35..691145742ab 100644
--- a/packages/locales/src/default/setting.ts
+++ b/packages/locales/src/default/setting.ts
@@ -1287,6 +1287,7 @@ export default {
'notification.item.topic_comment_mentioned': 'Mentioned in a comment',
'notification.item.video_generation_completed': 'Video generation completed',
'notification.item.workspace_credit_balance_low': 'Workspace balance running low',
+ 'notification.item.workspace_member_budget_exceeded': 'Member budget used up',
'notification.item.workspace_member_invited': 'Workspace invitation',
'notification.item.workspace_member_joined': 'New member joined',
'notification.item.workspace_member_removed': 'Removed from workspace',
diff --git a/packages/locales/src/default/subscription.ts b/packages/locales/src/default/subscription.ts
index 21a7aad49c7..655bbebc73b 100644
--- a/packages/locales/src/default/subscription.ts
+++ b/packages/locales/src/default/subscription.ts
@@ -462,6 +462,18 @@ export default {
'limitation.workspace.insufficientBudget.upgradeToPro': 'Upgrade to Pro',
'limitation.workspace.memberBudget.desc':
'You have reached the personal budget set by this workspace. Contact a workspace admin to adjust your quota — top-up and plan upgrades do not change member limits.',
+ 'limitation.workspace.memberBudget.adminDesc':
+ 'You have reached your member budget in this workspace. As an admin, you can raise it in budget settings — top-ups and plan upgrades do not change member limits.',
+ 'limitation.workspace.memberBudget.notify.action': 'Notify admins',
+ 'limitation.workspace.memberBudget.notify.error': "Couldn't notify admins. Please try again.",
+ 'limitation.workspace.memberBudget.notify.manage': 'Adjust in budget settings',
+ 'limitation.workspace.memberBudget.notify.noAdmin':
+ 'This workspace has no other admin to notify.',
+ 'limitation.workspace.memberBudget.notify.sent': 'Admins notified',
+ 'limitation.workspace.memberBudget.notify.sentHint':
+ 'Retry once an admin has raised your budget.',
+ 'limitation.workspace.memberBudget.notifyDesc':
+ 'You have reached the member budget this workspace set for you. Let the workspace admins know so they can raise it — top-ups and plan upgrades do not change member limits.',
'limitation.workspace.memberBudget.retry': 'Retry',
'limitation.workspace.memberBudget.title': 'Member budget reached',
'limitation.hobby.action': 'Configured, continue chatting',