Repository navigation
Commit f3c5b26
fix(web): translate 我的知识库 in English mode and stop mangling user titles
The personal knowledge connector view (#1434) shipped copy that is not in
i18n-en.js, so English mode showed Chinese headings, buttons, form hints and
connector-type field labels, and the fragment translator turned interpolated
sentences into mixed text such as "单用户保留最Last 30 days内最多 2000" or
"累计调用 6 times · 文档命中/Read 6 times".
- Add the missing static copy (gallery, cards, drawer, connector-type fields,
notices, toasts) to i18n-en.js.
- Render sentences with numbers through lfT() instead of relying on fragment
rewrites.
- Mark connector names, document/source titles and caller labels with
data-i18n-data so a chat title like "…规则(INV-RULE-9),然后…" is no
longer rewritten into "…规则 (INV-RULE-9), 然后…".
- Drop caller sub-labels that only repeat the role/node name or the kind
already shown on the badge ("开发实现 · 开发实现").
Co-Authored-By: Claude Code <noreply@anthropic.com>1 parent fd039e5 commit f3c5b26
4 files changed
Lines changed: 251 additions & 42 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| |||
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
138 | | - | |
| 139 | + | |
| 140 | + | |
139 | 141 | | |
140 | 142 | | |
141 | 143 | | |
| |||
163 | 165 | | |
164 | 166 | | |
165 | 167 | | |
166 | | - | |
| 168 | + | |
167 | 169 | | |
168 | 170 | | |
169 | 171 | | |
| |||
203 | 205 | | |
204 | 206 | | |
205 | 207 | | |
| 208 | + | |
206 | 209 | | |
207 | 210 | | |
208 | 211 | | |
209 | | - | |
| 212 | + | |
| 213 | + | |
210 | 214 | | |
211 | 215 | | |
212 | 216 | | |
| |||
248 | 252 | | |
249 | 253 | | |
250 | 254 | | |
251 | | - | |
| 255 | + | |
252 | 256 | | |
253 | 257 | | |
254 | 258 | | |
| |||
0 commit comments