Provide localization for TUI

Resolved 💬 3 comments Opened Jun 3, 2026 by 1022977629-hue Closed Jun 3, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What variant of Codex are you using?

CLI, App

What feature would you like to see?

为 Codex CLI 添加国际化 (i18n) 支持,允许用户通过 config.toml 中的 locale 设置切换界面语言。

已完成简体中文 (zh-CN) 完整翻译,包括:

  • GPT-5.1 系统提示全文翻译 (20KB)
  • 基础模型指令翻译 (18KB)
  • 权限/沙盒模板翻译
  • i18n 引擎 Rust 模块 (运行时 locale 管理 + 单元测试)

使用方法: 在 config.toml 设置 [general] locale = "zh-CN"
代码已准备好,可提交 PR。

Additional information

翻译文件和 i18n 模块代码均在本地分支 i18n/zh-CN,可立即提交 PR。

View original on GitHub ↗

3 Comments

github-actions[bot] contributor · 2 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #25359
  • #25037
  • #24686
  • #25477

Powered by Codex Action

etraut-openai contributor · 2 months ago
### What variant of Codex are you using?

CLI, App

### What feature would you like to see?

Add internationalization (i18n) support to the Codex CLI, allowing users to switch the interface language using a `locale` setting in `config.toml`.

A complete Simplified Chinese (`zh-CN`) translation has already been completed, including:

- Full translation of the GPT-5.1 system prompt (20 KB)
- Translation of the base model instructions (18 KB)
- Translation of permission and sandbox templates
- An i18n engine Rust module, including runtime locale management and unit tests

Usage: Set `[general] locale = "zh-CN"` in `config.toml`.

The code is ready and can be submitted as a PR.

### Additional information

The translation files and i18n module code are available in the local `i18n/zh-CN` branch and can be submitted as a PR immediately.
etraut-openai contributor · 2 months ago

The app is already fully localized for many languages.

We currently have no plans to provide localization for the TUI.