Skip to content

Commit 78e4701

Browse files
committed
fix(client): ScopeBadge tooltip 本地化——标签复用详情抽屉 i18n 键(云端复验观察点)
1 parent 3e0d371 commit 78e4701

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎dsh-mneme/lib/client.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ window.__ModuleLoader__.load({
111111
* 仅在条目带任一 scope 标注(agent_scope / workspace_scope / sensitivity)
112112
* 时渲染;字段缺省返回 null(未标注条目视觉零变化,前端不感知开关状态,
113113
* 与 HeatBadge 的「数据缺省即不渲染」同一模式)。tooltip 展示完整归属,
114-
* 正文本体只有本地化的短标签(「作用域」/ "Scoped")。
114+
* 标签复用详情抽屉的 i18n 键(云端复验观察点:tooltip 曾硬编码英文)。
115115
*
116116
* @param {{m: object, t: (key: string) => string}} props
117117
* @param {object} props.m 记忆条目(/list、/search 透出的 toApiList 形状,
@@ -122,9 +122,9 @@ window.__ModuleLoader__.load({
122122
const ScopeBadge = ({ m, t }) => {
123123
if (!m || (!m.agent_scope && !m.workspace_scope && !m.sensitivity)) return null;
124124
const tip = [
125-
m.agent_scope ? `agent: ${m.agent_scope}` : null,
126-
m.workspace_scope ? `workspace: ${m.workspace_scope}` : null,
127-
m.sensitivity ? `sensitivity: ${m.sensitivity}` : null
125+
m.agent_scope ? `${t("memory.explorer.detail.agentScope")}: ${m.agent_scope}` : null,
126+
m.workspace_scope ? `${t("memory.explorer.detail.workspaceScope")}: ${m.workspace_scope}` : null,
127+
m.sensitivity ? `${t("memory.explorer.detail.sensitivity")}: ${m.sensitivity}` : null
128128
].filter(Boolean).join(" · ");
129129
return h("span", { className: "mneme-badge mneme-badge--scope", title: tip },
130130
t("memory.explorer.scopeBadge"));

0 commit comments

Comments
 (0)