From 11f59591c5f7ed2368d6547b6481882b5d960f41 Mon Sep 17 00:00:00 2001 From: argszero Date: Sat, 12 Sep 2026 03:02:16 +0800 Subject: [PATCH] fix(ui): replace code identifiers in the English stat-card copy The English pack rendered four stat-card sub-labels as raw code identifiers where the Chinese pack has proper prose: ops.stats.keys.sub.on status=on -> enabled ops.stats.calls.sub usage_records -> usage records admin.emp.stats.admins.sub role=admin -> admin role admin.emp.stats.deps.sub organization -> organization management These were introduced with the language packs (#86) and kept on the English side by the later i18n clean-up (#87), which stripped the English annotation suffixes from the zh pack but left these values as they were. `organization` also collided visually with the value of the adjacent Departments card ("0 departments" + "organization"). Only English values change; the zh pack is byte-identical, so no key, placeholder or parity change is involved (775 == 775). --- ui/index.html | 10 +++++----- ui/js/i18n.js | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ui/index.html b/ui/index.html index 0294015..67ccb12 100644 --- a/ui/index.html +++ b/ui/index.html @@ -5,7 +5,7 @@ AITokenPool - + @@ -842,9 +842,9 @@

使用模型

- - - - + + + + diff --git a/ui/js/i18n.js b/ui/js/i18n.js index 089c1e8..a0a8293 100644 --- a/ui/js/i18n.js +++ b/ui/js/i18n.js @@ -1366,8 +1366,8 @@ "admin.emp.stats.remain": "Remaining", "admin.emp.stats.members.sub.real": "real users", "admin.emp.stats.total.sub": "balance + gift", - "admin.emp.stats.admins.sub": "role=admin", - "admin.emp.stats.deps.sub": "organization", + "admin.emp.stats.admins.sub": "admin role", + "admin.emp.stats.deps.sub": "organization management", "admin.emp.stats.quota.sub": "monthly", "admin.emp.stats.used.sub": "{p}% consumed", "admin.emp.stats.remain.sub": "by member", @@ -1479,9 +1479,9 @@ "ops.stats.users": "Users", "ops.stats.users.sub": "all registered users", "ops.stats.keys": "Active keys", - "ops.stats.keys.sub.on": "status=on", + "ops.stats.keys.sub.on": "enabled", "ops.stats.calls": "Calls this month", - "ops.stats.calls.sub": "usage_records", + "ops.stats.calls.sub": "usage records", "ops.stats.in": "Points in", "ops.stats.out": "Points out", "ops.stats.in.sub": "this month",