fix(i18n): remove count interpolation from tool labels

The count values were moved outside the translated strings to simplify localization and improve consistency across languages. The counts are now displayed separately after the translated labels in the UI.
This commit is contained in:
icarus 2025-10-23 14:33:43 +08:00
parent c0fe0a7774
commit 5f02822ef2
11 changed files with 33 additions and 42 deletions

View File

@ -160,10 +160,10 @@
}
},
"review": {
"autoTools": "Auto: {{count}}",
"customTools": "Custom: {{count}}",
"autoTools": "Auto",
"customTools": "Custom",
"helper": "Changes save automatically. Adjust the steps above any time to fine-tune permissions.",
"mcp": "MCP: {{count}}",
"mcp": "MCP",
"mode": "Mode: {{mode}}"
},
"steps": {

View File

@ -160,10 +160,10 @@
}
},
"review": {
"autoTools": "自动{{count}}",
"customTools": "自定义{{count}}",
"autoTools": "自动",
"customTools": "自定义",
"helper": "设置会自动保存,可随时返回上方步骤进行调整。",
"mcp": "MCP{{count}}",
"mcp": "MCP",
"mode": "模式:{{mode}}"
},
"steps": {

View File

@ -160,10 +160,10 @@
}
},
"review": {
"autoTools": "自動{{count}}",
"customTools": "自訂{{count}}",
"autoTools": "自動",
"customTools": "自訂",
"helper": "設定會自動儲存,可隨時回到上方步驟調整。",
"mcp": "MCP{{count}}",
"mcp": "MCP",
"mode": "模式:{{mode}}"
},
"steps": {

View File

@ -153,10 +153,10 @@
}
},
"review": {
"autoTools": "Automatisch: {{count}}",
"customTools": "Benutzerdefiniert: {{count}}",
"autoTools": "Automatisch",
"customTools": "Benutzerdefiniert",
"helper": "Einstellungen werden automatisch gespeichert. Sie können jederzeit zu den obigen Schritten zurückkehren und Anpassungen vornehmen.",
"mcp": "MCP: {{count}}",
"mcp": "MCP",
"mode": "Modus: {{mode}}"
},
"steps": {

View File

@ -160,10 +160,10 @@
}
},
"review": {
"autoTools": "Αυτόματο: {{count}}",
"customTools": "Προσαρμοσμένο: {{count}}",
"autoTools": "Αυτόματο",
"customTools": "Προσαρμοσμένο",
"helper": "Οι αλλαγές αποθηκεύονται αυτόματα. Προσαρμόστε τα παραπάνω βήματα ανά πάσα στιγμή για να εξειδικεύσετε τα δικαιώματα.",
"mcp": "MCP: {{count}}",
"mcp": "MCP",
"mode": "Λειτουργία: {{mode}}"
},
"steps": {

View File

@ -160,10 +160,10 @@
}
},
"review": {
"autoTools": "Auto: {{count}}",
"customTools": "Personalizado: {{count}}",
"autoTools": "Auto",
"customTools": "Personalizado",
"helper": "Los cambios se guardan automáticamente. Ajusta los pasos anteriores en cualquier momento para afinar los permisos.",
"mcp": "MCP: {{count}}",
"mcp": "MCP",
"mode": "Modo: {{mode}}"
},
"steps": {

View File

@ -160,10 +160,10 @@
}
},
"review": {
"autoTools": "Auto : {{count}}",
"customTools": "Personnalisé : {{count}}",
"autoTools": "Auto",
"customTools": "Personnalisé",
"helper": "Les modifications sont enregistrées automatiquement. Ajustez les étapes ci-dessus à tout moment pour affiner les autorisations.",
"mcp": "MCP : {{count}}",
"mcp": "MCP",
"mode": "Mode : {{mode}}"
},
"steps": {

View File

@ -160,10 +160,10 @@
}
},
"review": {
"autoTools": "自動: {{count}}",
"customTools": "カスタム: {{count}}",
"autoTools": "自動",
"customTools": "カスタム",
"helper": "変更は自動的に保存されます。権限を微調整するには、上記の手順をいつでも調整してください。",
"mcp": "MCP: {{count}}",
"mcp": "MCP",
"mode": "モード: {{mode}}"
},
"steps": {

View File

@ -160,10 +160,10 @@
}
},
"review": {
"autoTools": "Auto: {{count}}",
"customTools": "Personalizado: {{count}}",
"autoTools": "Auto",
"customTools": "Personalizado",
"helper": "As alterações são salvas automaticamente. Ajuste as etapas acima a qualquer momento para refinar as permissões.",
"mcp": "MCP: {{count}}",
"mcp": "MCP",
"mode": "Modo: {{mode}}"
},
"steps": {

View File

@ -160,10 +160,10 @@
}
},
"review": {
"autoTools": "Авто: {{count}}",
"customTools": "Пользовательские: {{count}}",
"autoTools": "Авто",
"customTools": "Пользовательские",
"helper": "Изменения сохраняются автоматически. В любое время можно скорректировать шаги выше, чтобы уточнить разрешения.",
"mcp": "MCP: {{count}}",
"mcp": "MCP",
"mode": "Режим: {{mode}}"
},
"steps": {

View File

@ -502,22 +502,13 @@ export const ToolingSettings: FC<AgentToolingSettingsProps> = ({ agentBase, upda
})}
</Chip>
<Chip variant="flat" color="default">
{t('agent.settings.tooling.review.autoTools', {
defaultValue: `Auto: ${autoCount}`,
count: autoCount
})}
{t('agent.settings.tooling.review.autoTools')}: {autoCount}
</Chip>
<Chip variant="flat" color="success">
{t('agent.settings.tooling.review.customTools', {
defaultValue: `Custom: ${customCount}`,
count: customCount
})}
{t('agent.settings.tooling.review.customTools')}: {customCount}
</Chip>
<Chip variant="flat" color="warning">
{t('agent.settings.tooling.review.mcp', {
defaultValue: `MCP: ${agentSummary.mcps}`,
count: agentSummary.mcps
})}
{t('agent.settings.tooling.review.mcp')}: {agentSummary.mcps}
</Chip>
</div>
<span className="text-foreground-500 text-xs">