Commit 4a48388
committed
feat: Complete i18n localization for token statistics
Fix i18n violations by adding complete translations for token statistics tooltip.
Changes include:
- Add tokenStats section with inputLabel, outputLabel, and cacheLabel to all 18 language files
- Replace hardcoded strings in ChatRow.tsx with i18n calls
- Update formatTokens.ts to accept localized cache label parameter
- Translate shareSuccessPublic message to all supported languages
- Ensure proper localization for token usage display in API request tooltips
This resolves the automated code review rule violation (irule_C0ez7Rji6ANcGkkX)
and provides complete localization support for the token statistics feature.1 parent 1666dd5 commit 4a48388
File tree
20 files changed
+119
-22
lines changed- webview-ui/src
- components/chat
- i18n/locales
- ca
- de
- en
- es
- fr
- hi
- id
- it
- ja
- ko
- nl
- pl
- pt-BR
- ru
- tr
- vi
- zh-CN
- zh-TW
- utils
20 files changed
+119
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1101 | 1101 | | |
1102 | 1102 | | |
1103 | 1103 | | |
1104 | | - | |
| 1104 | + | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
1105 | 1110 | | |
1106 | 1111 | | |
1107 | 1112 | | |
| |||
1151 | 1156 | | |
1152 | 1157 | | |
1153 | 1158 | | |
1154 | | - | |
| 1159 | + | |
1155 | 1160 | | |
1156 | 1161 | | |
1157 | 1162 | | |
1158 | | - | |
| 1163 | + | |
1159 | 1164 | | |
1160 | 1165 | | |
1161 | 1166 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
28 | 33 | | |
29 | 34 | | |
30 | 35 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments