Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/i18n-coverage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@moonshot-ai/kimi-code": patch
---

Replace hardcoded English strings across CLI subcommands, TUI components, and update prompts with i18n `t()` calls so they respect the configured locale. Also fix ZH locale key parity (1375/1375) and a `slashCommands` path mismatch that caused raw key fallback.

web: Replace hardcoded strings in ServerAuthDialog, GoalStrip, CommandBar, Sheet, and Dialog with i18n calls.
1 change: 1 addition & 0 deletions apps/kimi-code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
],
"type": "module",
"imports": {
"#/i18n": "./src/i18n/index.ts",
"#/tui/theme": "./src/tui/theme/index.ts",
"#/tui/commands": "./src/tui/commands/index.ts",
"#/cli/sub/server": "./src/cli/sub/server/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion apps/kimi-code/src/cli/goal-prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export function goalSummaryJson(goal: GoalSnapshot | null): GoalSummary {
}

export function formatGoalSummaryText(goal: GoalSnapshot | null): string {
if (goal === null) return 'Goal: no goal found.';
if (goal === null) return t('tui.statusMessages.goalNoGoalFound');
const parts = [`Goal [${goal.status}]`];
if (goal.terminalReason !== undefined) parts.push(goal.terminalReason);
return `${parts.join(': ')} (turns: ${goal.turnsUsed}, tokens: ${goal.tokensUsed})`;
Expand Down
Loading