Skip to content

feat(tui): add Simplified Chinese UI translations and language selector#2038

Open
fyihang wants to merge 1 commit into
MoonshotAI:mainfrom
fyihang:feat/tui-chinese-language-support
Open

feat(tui): add Simplified Chinese UI translations and language selector#2038
fyihang wants to merge 1 commit into
MoonshotAI:mainfrom
fyihang:feat/tui-chinese-language-support

Conversation

@fyihang

@fyihang fyihang commented Jul 22, 2026

Copy link
Copy Markdown

Related Issue

N/A — this PR directly addresses the request to add a Chinese UI and language selection to the CLI TUI.

Problem

The Kimi Code CLI TUI was English-only. Users who prefer Simplified Chinese had no way to switch the interface language.

What changed

  • Added a new i18n layer under �pps/kimi-code/src/tui/i18n/:
    • ypes.ts: Language, Translations, and typed translation keys.
      
    • �n.ts / zh.ts: English and Simplified Chinese translation catalogs.
    • index.ts: setLanguage, getLanguage, and (key, vars?).
  • Persisted the language choice in TuiConfig via the existing config save/load path.
  • Added /language slash command and wired it into the command dispatcher.
  • Added a language picker dialog and surfaced it in Settings.
  • Updated KimiTUI to apply the saved language on startup and on /reload.
  • Internationalized the welcome panel, footer hints, settings labels, and theme selector labels.
  • Added est/tui/i18n.test.ts and updated existing tests to include the new language field.

The approach keeps translations co-located with the TUI, uses the existing config persistence mechanism, and mirrors how theme selection is implemented.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

Add an i18n layer, en/zh translation files, and a /language command that lets users switch between English and Chinese. Language choice is persisted in the TUI config and applied on startup and reload.
@changeset-bot

changeset-bot Bot commented Jul 22, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4fcc7e3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant