fix: differentiate cache label from cache size label in TaskHeader

- Added new translation key "cacheSize" for cache size display
- Updated TaskHeader.tsx to use "cacheSize" key for byte size display
- Kept original "cache" key for token metrics display
- Updated all language translation files with appropriate translations

This resolves the UI confusion where two different metrics both showed "Cache" as their label.
This commit is contained in:
Roo Code 2025-08-27 01:43:44 +00:00
parent ff1f4f0398
commit 373839bfd4
19 changed files with 19 additions and 1 deletions

View file

@ -269,7 +269,7 @@ const TaskHeader = ({
(typeof cacheWrites === "number" && cacheWrites > 0)) && (
<tr>
<th className="font-bold text-left align-top w-1 whitespace-nowrap pl-1 pr-3 h-[24px]">
{t("chat:task.cache")}
{t("chat:task.cacheSize")}
</th>
<td className="align-top">
{prettyBytes(((cacheReads || 0) + (cacheWrites || 0)) * 4)}

View file

@ -8,6 +8,7 @@
"seeLess": "Veure menys",
"tokens": "Tokens",
"cache": "Caché",
"cacheSize": "Mida de caché",
"apiCost": "Cost d'API",
"size": "Mida",
"contextWindow": "Finestra de context",

View file

@ -8,6 +8,7 @@
"seeLess": "Weniger anzeigen",
"tokens": "Tokens",
"cache": "Cache",
"cacheSize": "Cache-Größe",
"apiCost": "API-Kosten",
"size": "Größe",
"contextWindow": "Kontextfenster",

View file

@ -8,6 +8,7 @@
"seeLess": "See less",
"tokens": "Tokens",
"cache": "Cache",
"cacheSize": "Cache Size",
"apiCost": "API Cost",
"size": "Size",
"condenseContext": "Intelligently condense context",

View file

@ -8,6 +8,7 @@
"seeLess": "Ver menos",
"tokens": "Tokens",
"cache": "Caché",
"cacheSize": "Tamaño de caché",
"apiCost": "Costo de API",
"size": "Tamaño",
"contextWindow": "Longitud del contexto",

View file

@ -8,6 +8,7 @@
"seeLess": "Voir moins",
"tokens": "Tokens",
"cache": "Cache",
"cacheSize": "Taille du cache",
"apiCost": "Coût API",
"size": "Taille",
"contextWindow": "Durée du contexte",

View file

@ -8,6 +8,7 @@
"seeLess": "कम देखें",
"tokens": "Tokens",
"cache": "कैश",
"cacheSize": "कैश आकार",
"apiCost": "API लागत",
"size": "आकार",
"contextWindow": "संदर्भ लंबाई",

View file

@ -8,6 +8,7 @@
"seeLess": "Lihat lebih sedikit",
"tokens": "Token",
"cache": "Cache",
"cacheSize": "Ukuran Cache",
"apiCost": "Biaya API",
"size": "Ukuran",
"condenseContext": "Kondensasi konteks secara cerdas",

View file

@ -8,6 +8,7 @@
"seeLess": "Vedi meno",
"tokens": "Tokens",
"cache": "Cache",
"cacheSize": "Dimensione cache",
"apiCost": "Costo API",
"size": "Dimensione",
"contextWindow": "Lunghezza del contesto",

View file

@ -8,6 +8,7 @@
"seeLess": "表示を減らす",
"tokens": "トークン",
"cache": "キャッシュ",
"cacheSize": "キャッシュサイズ",
"apiCost": "APIコスト",
"size": "サイズ",
"contextWindow": "コンテキストウィンドウ",

View file

@ -8,6 +8,7 @@
"seeLess": "줄여보기",
"tokens": "토큰",
"cache": "캐시",
"cacheSize": "캐시 크기",
"apiCost": "API 비용",
"size": "크기",
"contextWindow": "컨텍스트 창",

View file

@ -8,6 +8,7 @@
"seeLess": "Minder weergeven",
"tokens": "Tokens",
"cache": "Cache",
"cacheSize": "Cachegrootte",
"apiCost": "API-kosten",
"size": "Grootte",
"contextWindow": "Contextlengte",

View file

@ -8,6 +8,7 @@
"seeLess": "Zobacz mniej",
"tokens": "Tokeny",
"cache": "Pamięć podręczna",
"cacheSize": "Rozmiar pamięci podręcznej",
"apiCost": "Koszt API",
"size": "Rozmiar",
"contextWindow": "Okno kontekstu",

View file

@ -8,6 +8,7 @@
"seeLess": "Ver menos",
"tokens": "Tokens",
"cache": "Cache",
"cacheSize": "Tamanho do cache",
"apiCost": "Custo da API",
"size": "Tamanho",
"contextWindow": "Janela de contexto",

View file

@ -8,6 +8,7 @@
"seeLess": "Показать меньше",
"tokens": "Токенов",
"cache": "Кэш",
"cacheSize": "Размер кэша",
"apiCost": "Стоимость API",
"size": "Размер",
"contextWindow": "Длина контекста",

View file

@ -8,6 +8,7 @@
"seeLess": "Daha az gör",
"tokens": "Tokenlar",
"cache": "Önbellek",
"cacheSize": "Önbellek Boyutu",
"apiCost": "API Maliyeti",
"size": "Boyut",
"contextWindow": "Bağlam Uzunluğu",

View file

@ -8,6 +8,7 @@
"seeLess": "Thu gọn",
"tokens": "Tokens",
"cache": "Bộ nhớ đệm",
"cacheSize": "Kích thước bộ nhớ đệm",
"apiCost": "Chi phí API",
"size": "Kích thước",
"contextWindow": "Chiều dài bối cảnh",

View file

@ -8,6 +8,7 @@
"seeLess": "收起",
"tokens": "Token 用量",
"cache": "缓存",
"cacheSize": "缓存大小",
"apiCost": "API 费用",
"size": "大小",
"contextWindow": "上下文长度",

View file

@ -8,6 +8,7 @@
"seeLess": "顯示較少",
"tokens": "Token",
"cache": "快取",
"cacheSize": "快取大小",
"apiCost": "API 費用",
"size": "大小",
"condenseContext": "智慧壓縮內容",