mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 04:12:10 +03:00
fix(requestLogger): add missing cacheSource and tps columns to i18n
Add cacheSource and tps to the translated columns array and their corresponding translation keys in en.json and zh-CN.json.
This commit is contained in:
@@ -3556,6 +3556,7 @@
|
||||
},
|
||||
"columns": {
|
||||
"status": "Status",
|
||||
"cacheSource": "Cache Source",
|
||||
"model": "Model",
|
||||
"requested": "Requested",
|
||||
"provider": "Provider",
|
||||
@@ -3564,6 +3565,7 @@
|
||||
"apiKey": "API Key",
|
||||
"combo": "Combo",
|
||||
"tokens": "Tokens",
|
||||
"tps": "TPS",
|
||||
"duration": "Duration",
|
||||
"time": "Time"
|
||||
},
|
||||
|
||||
@@ -3653,6 +3653,7 @@
|
||||
},
|
||||
"columns": {
|
||||
"status": "状态",
|
||||
"cacheSource": "缓存来源",
|
||||
"model": "模型",
|
||||
"requested": "请求",
|
||||
"provider": "提供商",
|
||||
@@ -3661,6 +3662,7 @@
|
||||
"apiKey": "API密钥",
|
||||
"combo": "组合",
|
||||
"tokens": "Tokens",
|
||||
"tps": "TPS",
|
||||
"duration": "时长",
|
||||
"time": "时间"
|
||||
},
|
||||
|
||||
@@ -130,6 +130,7 @@ export default function RequestLoggerV2() {
|
||||
const columns = useMemo(
|
||||
() => [
|
||||
{ key: "status", label: t("columns.status") },
|
||||
{ key: "cacheSource", label: t("columns.cacheSource") },
|
||||
{ key: "model", label: t("columns.model") },
|
||||
{ key: "requestedModel", label: t("columns.requested") },
|
||||
{ key: "provider", label: t("columns.provider") },
|
||||
@@ -138,6 +139,7 @@ export default function RequestLoggerV2() {
|
||||
{ key: "apiKey", label: t("columns.apiKey") },
|
||||
{ key: "combo", label: t("columns.combo") },
|
||||
{ key: "tokens", label: t("columns.tokens") },
|
||||
{ key: "tps", label: t("columns.tps") },
|
||||
{ key: "duration", label: t("columns.duration") },
|
||||
{ key: "time", label: t("columns.time") },
|
||||
],
|
||||
@@ -634,7 +636,7 @@ export default function RequestLoggerV2() {
|
||||
)}
|
||||
{visibleColumns.cacheSource && (
|
||||
<th className="px-3 py-2.5 font-semibold text-text-muted uppercase tracking-wider text-[10px]">
|
||||
Cache Source
|
||||
{t("columns.cacheSource")}
|
||||
</th>
|
||||
)}
|
||||
{visibleColumns.model && (
|
||||
@@ -679,7 +681,7 @@ export default function RequestLoggerV2() {
|
||||
)}
|
||||
{visibleColumns.tps && (
|
||||
<th className="px-3 py-2.5 font-semibold text-text-muted uppercase tracking-wider text-[10px] text-right">
|
||||
TPS
|
||||
{t("columns.tps")}
|
||||
</th>
|
||||
)}
|
||||
{visibleColumns.duration && (
|
||||
|
||||
Reference in New Issue
Block a user