Skip to content

Commit 2efcb7b

Browse files
authored
fix(i18n): name the action the wallet page actually offers (#365)
The wallet page's subtitle exists in two carriers: the markup static fallback in ui/index.html and the pack value in ui/js/i18n.js. applyStatic() replaces the fallback with the pack value at boot, so the pack is what stays on screen. #156 (41bb6d1) rewrote the wallet header and updated the markup to "点数余额 · 充值 / 申请加额(收支明细见【交易记录】)" but left the pack (since #86) at "充值 / 提现" — so the subtitle kept advertising 提现 while the same screen renders a disabled 提现 button and a note saying 提现暂不支持, and the entry the page does offer (申请加额) went unnamed. Align both packs with the markup and the design baseline (docs/prototype/aitokenpool-console.html): zh follows the markup verbatim, en uses "Request more", the wording wallet.raise already uses. Bump the i18n.js cache-bust token. No new keys, no backend change.
1 parent 0e9924d commit 2efcb7b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎ui/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ <h3 id="chat-title">使用模型</h3>
864864

865865
<script src="js/api.js?v=20260929-1"></script>
866866
<script src="js/data.js?v=20260914-11"></script>
867-
<script src="js/i18n.js?v=20261009-1"></script>
867+
<script src="js/i18n.js?v=20261010-1"></script>
868868
<script src="js/app.js?v=20261009-9"></script>
869869
</body>
870870
</html>

‎ui/js/i18n.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
"view.dashboard.sub": "总览你的点数、用量与收益",
108108
"view.marketplace.sub": "浏览 / 搜索各家模型,按点数计价",
109109
"view.sharing.sub": "上架闲置 key 赚点数 · 管理共享中的 key",
110-
"view.wallet.sub": "点数余额 · 充值 / 提现(收支明细见【交易记录】)",
110+
"view.wallet.sub": "点数余额 · 充值 / 申请加额(收支明细见【交易记录】)",
111111
"view.transactions.sub": "涵盖消费、收益、充值、提现、赠送、过期",
112112
"view.settings.sub": "账户 · 接入方式 · API Key · 通知与偏好",
113113
"view.admin.sub": "管理员角色专属:成员点数 · 用量报表 · 组织管理 · 模型管理(普通用户无此视图)",
@@ -945,7 +945,7 @@
945945
"view.dashboard.sub": "Overview of your points, usage and earnings",
946946
"view.marketplace.sub": "Browse / search models, priced in points",
947947
"view.sharing.sub": "List idle keys to earn points · manage shared keys",
948-
"view.wallet.sub": "Points balance · Top up / Withdraw (details in Transactions)",
948+
"view.wallet.sub": "Points balance · Top up / Request more (details in Transactions)",
949949
"view.transactions.sub": "Consume, earn, top-up, withdraw, gift, expired",
950950
"view.settings.sub": "Account · endpoints · API keys · notifications and preferences",
951951
"view.admin.sub": "Admin-only: member points · usage report · organization · models (not visible to regular users)",

0 commit comments

Comments
 (0)