Skip to content

Codex desktop UI does not update language despite localeOverride=zh-CN and --lang=zh-CN #19239

Open

Description

@SeanSeanSo

Summary

Codex Desktop does not update the app UI language according to the language selected in Settings.

The local setting is saved as localeOverride=zh-CN, and the running Electron renderer process is launched with --lang=zh-CN, but the visible UI remains in English after restart.

Environment

  • Codex Desktop: 26.422.21459
  • Codex CLI: 0.124.0-alpha.2
  • macOS: 26.4.1, build 25E253
  • Architecture: arm64
  • Selected language: Simplified Chinese / zh-CN

What I checked

  • The local global state contains localeOverride: "zh-CN".
  • The running Codex renderer process includes --lang=zh-CN.
  • The app bundle contains Simplified Chinese resources, including frontend strings such as “新聊天” and “Codex 设置”.
  • Restarting Codex does not change the UI language.

Suspected cause

From the bundled frontend code, UI message loading appears to be gated behind a remote feature flag named enable_i18n. If that flag is false or not fetched for this machine/account, the app still computes the preferred locale but does not pass localized messages to the UI, so it falls back to English defaults.

This would also explain why the issue only reproduces on some machines/accounts.

Expected behavior

When the user selects Simplified Chinese in Settings, Codex Desktop should render the UI in Chinese after restart or reload.

Actual behavior

The UI remains in English even though the saved setting and Electron language are both zh-CN.

Activity

  1. added
    bug
    app
    on Apr 24, 2026
  2. github-actions commented on Apr 24, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  3. zhaomenghua commented on Apr 25, 2026

    @zhaomenghua

    I can also reproduce this in Codex Desktop.

    Observed behavior:

    • Settings > Language shows 中文(中国) selected.
    • The setting label itself says this is the language for the app UI.
    • After fully quitting and restarting Codex, the visible app UI remains English, including settings labels such as Default open destination, Language, Prevent sleep while running, etc.
    • Chat responses can be Chinese, but the Codex application shell UI does not switch to Chinese.

    This appears to match the original report: the language selection is saved/visible in Settings, but localized UI strings are not applied after restart.

  4. hanhongfei558 commented on Apr 29, 2026

    @hanhongfei558

    macos 26.4 系统下,遇到过同样问题,最后发现彻底关闭Codex APP,然后开启系统全局代理,然后再打开Codex APP之后重新切换语言就有效了。原因应该是加载语言需要联网。

  5. lyglane commented on May 16, 2026

    @lyglane

    我也遇到了同样的问题。设置里选了中文但菜单还是英文。Codex Desktop 版本:26.513.31313 (2867)。请帮忙处理。

  6. xiaoqiangit commented on May 18, 2026

    @xiaoqiangit

    我也遇到了同样的问题。设置里选了中文但菜单还是英文。Codex Desktop版本:26.513.31313 (2867)。请帮忙处理。

    找到了一个解决方法:

    • 退出应用(重要)

    • 打开 "~/.codex/.codex-global-state.json"

    • 把 "localeOverride" 设置改成 "en-US",然后保存

    • 重新打开应用

  7. 958272629-collab commented on May 18, 2026

    @958272629-collab

    I can reproduce this as well in Codex Desktop.

    Observed behavior:

    • Settings > General > Language shows 中文(中国) selected.
    • The setting description says Language for the app UI.
    • The visible UI remains English, including the left settings sidebar (General, Appearance, Configuration, Personalization, MCP servers, etc.) and General settings labels such as Default open destination, Language, Show in menu bar, and Prevent sleep while running.
    • This matches the original report: the language selection is saved and displayed, but localized UI strings are not applied.

    This is still reproducible as of 2026-05-18.

  8. jmio19930215 commented on May 27, 2026

    @jmio19930215

    I’m seeing the same issue on Windows.

    Environment:

    • Codex Desktop: 26.513.40821
    • Build flavor: Windows Store
    • OS: Windows
    • System locale/timezone: zh-CN / Asia-Shanghai
    • Selected app UI language: 中文(中国)

    What happens:

    • Settings > General > Language is set to 中文(中国)
    • I fully restarted Codex after changing the language
    • The UI still remains in English, including Settings, sidebar items like “New chat / Search / Skills / Project”, and the top menu “File / Edit / View / Window / Help”

    Expected:

    • After selecting 中文(中国) and restarting the app, the Codex Desktop UI should render in Simplified Chinese.

    This looks consistent with the original report: the language setting is saved, but the localized UI strings are not being applied.

  9. wyeee1 commented on Jun 1, 2026

    @wyeee1

    Windows 版 26.527.31326,localeOverride = zh-CN 已保存,但主界面仍英文。

  10. liuqiangweb-svg commented on Jun 12, 2026

    @liuqiangweb-svg

    Adding another reproduction from macOS with Simplified Chinese.

    Environment

    • Codex Desktop: 26.609.30741
    • macOS: 15.3.2, build 24D81
    • Platform: macOS
    • Selected language: Simplified Chinese / zh-CN (中文(中国))

    What was tried

    • Changed Settings -> General -> Language to 中文(中国)
    • Went back to the app
    • Restarted Codex
    • Switched language away and back to 中文(中国)

    Actual behavior

    The language selector shows 中文(中国), but the app UI remains in English. In the captured Settings screen, these labels are still English after the language is set to Chinese:

    • General
    • Work mode
    • Permissions
    • Default permissions
    • Auto-review
    • Full access
    • Default open destination
    • Language

    Expected behavior

    The desktop UI should switch to Simplified Chinese after selecting 中文(中国) and restarting the app.

  11. derekNeedCoffee commented on Jun 15, 2026

    @derekNeedCoffee

    Adding a summary from several reproductions:

    • Users are still reproducing this on recent Desktop builds, including 26.609.30741.
    • localeOverride is saved as zh-CN.
    • The renderer appears to start with --lang=zh-CN.
    • Simplified Chinese resources exist in the app bundle.
    • Chat responses can be Chinese, but the Desktop UI still remains English or mixed English.

    One reported workaround was to fully quit Codex, enable a system-wide proxy before launching, then switch the language again. That suggests this may involve startup-time fetching of remote i18n config, feature flags, or server-side rollout state.

    Could maintainers confirm whether Desktop UI localization is gated by a remote enable_i18n flag or another server-side config?

    If the Desktop UI i18n code is not part of this public repo, an external PR may not be able to fix it. In that case, please route this to the internal Desktop/i18n config owner.

  12. mahong3389-cloud commented on Sep 24, 2026

    @mahong3389-cloud

    Also experiencing this on the latest version:

    • Codex desktop: 26.917.71314 (macOS, latest prod)
    • localeOverride = "zh-CN" is saved in ~/.codex/config.toml, but the UI renders in English after restart
    • Key detail: the UI was in Simplified Chinese yesterday and reverted to English today after a reboot — no settings changed in between. Restarting the app, switching model providers, and re-selecting the language all failed to restore Chinese.
    • The app bundle contains zh_CN.lproj, consistent with the enable_i18n remote-gate theory: the strings are local, but the flag isn't enabled for this machine/account right now.
      The "worked yesterday, broken today with zero local changes" pattern suggests the gate is flaky server-side rather than a hard local bug. Happy to provide more diagnostics if needed.
  13. KeplerBro commented on Oct 11, 2026

    @KeplerBro

    Adding a Windows reproduction and a verified recovery, checked on 2026-10-11.

    Environment:

    • Windows 11, Codex desktop package 26.1007.2314.0.
    • Simplified Chinese selected; [desktop] localeOverride = "zh-CN" persisted in ~/.codex/config.toml.
    • Clash Verge with TUN enabled and rule mode. Windows system proxy was disabled.

    Before restarting:

    • The renderer's document.documentElement.lang and navigator.language were both zh-CN, but the settings heading still displayed General and the shell remained English.
    • Reading Statsig dynamic config 72216192 returned reason: "NoValues", with no enable_i18n value.
    • An earlier desktop log contained Timed out while fetching post-login Statsig bootstrap.
    • Simplified Chinese translation resources were already present in the installed app.

    What worked in this session:

    1. Keep the existing TUN/proxy network available.
    2. Fully exit the desktop client.
    3. Relaunch the installed client normally, keeping the existing zh-CN setting and proxy configuration.

    After reopening, the actual desktop UI displayed Chinese. This was verified from the visible window and accessibility tree: 文件 / 编辑 / 视图 / 帮助, navigation labels, 搜索, and 新聊天. The new app process had no additional proxy command-line arguments; Windows system proxy remained disabled.

    This is evidence that a full restart with the existing proxy network can recover this failure. It is not a strict reproduction of the earlier system-wide/global-proxy workaround. We did not inspect the post-restart enable_i18n value or test repeated restarts, so this does not establish a permanent fix or a unique root cause. The pre-restart NoValues and bootstrap timeout make startup-time remote configuration loading worth investigating.

  14. WU928-spec commented on Oct 15, 2026

    @WU928-spec

    Same symptom on macOS, on the current build — and it is not the offline case from #52471: the machine has working access to OpenAI the whole time.

    Environment

    • macOS 14.8.3 (arm64), system language zh-Hans-CN (codex doctor reports OS language zh-Hans-CN)
    • Codex desktop 26.1007.71326 (build 20398), bundle id com.openai.codex
    • The UI was Simplified Chinese before this update; it has been English since the update.

    Network is fine (so this is a different failure mode from #52471)

    • A proxy is running and the system proxy is set to it.
    • Through it: google.com → 200 and api.openai.com/v1/models → 401 (i.e. OpenAI is reachable), stable over repeated calls.
    • The app's own processes have established connections through that proxy.
    • So the app is not starting offline.

    What does not help on this build

    1. [desktop] localeOverride = "zh-CN", written by Settings → Language → 简体中文 and verified present in ~/.codex/config.toml. Full quit + relaunch → still English.
    2. Toggling the setting to English and back to 简体中文 while the app is running (which should go through the onDidChange → refreshApplicationMenu() / refreshLocale() path) → no change.
    3. Launching with --lang=zh-CN (open -a ChatGPT --args --lang=zh-CN, confirmed present in the process argv) → still English.
    4. The native menu bar is localized (文件 / 编辑 / 视图 / 窗口 / 帮助) — only the web UI stays English.

    Likely cause: the enable_i18n gate has two disagreeing defaults

    In Contents/Resources/app.asar, the component that injects the locale and messages for the UI:

    function O9s(e){ ...
      s = s0e(`72216192`);
      c = s?.get(`enable_i18n`, !1);          // default FALSE  <-- gate closed
      let l = c,
          u = s?.get(`locale_source`, `IDE`), ...
      bb0: { if (r) { m = r; break bb0 }      // r = localeOverride; only reaches the UI when the gate is open
      ...
    }

    while the Settings component uses the opposite default:

    function cc(){ ...
      r = Pn(`72216192`)?.get(`enable_i18n`, !0);   // default TRUE
    }

    So enable_i18n is resolved from a server-side config for key 72216192. When that value is not returned, the provider path closes the gate and the UI falls back to the English defaultMessage strings — which makes every local lever (localeOverride, --lang, changing the picker) a no-op, exactly as observed.

    The translations themselves are present — app.asar ships a complete zh-Hans set (e.g. 1187 occurrences of 「设置」, 1712 of 「取消」, plus a full browserSidebar.loadError.* group such as "browserSidebar.loadError.dnsHeader":"检查 DNS 设置"). So this is not a missing-translation problem.

    Suggested fix

    • Default enable_i18n to true in the provider path (or derive the initial value from app.getLocale() / the stored localeOverride instead of the remote gate), and/or let an explicit localeOverride force the gate open. The two call sites disagreeing on the default looks like an oversight.

    Related: #52471 (Windows, offline start), #19518.

  15. MiHjy12138 commented on Oct 27, 2026

    @MiHjy12138

    Reproducing on Windows x64 with the current MSIX build, and adding a root-cause observation that I have not seen in this thread yet.

    Environment

    • Package OpenAI.Codex, version 26.1021.3705.0, x64, installed from Microsoft Store
    • Windows 10 22H2, system UI language zh-CN
    • UI languages tested: zh-CN, zh-TW, ja-JP

    Symptom
    Selecting any of those in Settings -> Language persists the choice and survives a full quit and relaunch, but every visible label in the main window and in Settings stays English. Changing [desktop] localeOverride directly in the config and restarting makes no difference either, which matches what others report above.

    What I checked (read-only, application not modified)
    The translation payload is already present in the installed package -- both the per-locale web assets and the Chromium/Electron locale files are there, so this is not a failed download. I only inspected the files on disk; I did not modify, patch, or repack the application.

    Likely cause
    In the renderer code the language selector and the translation provider read the same remote config layer (Statsig layer 72216192), but with different fallbacks:

    • the settings UI reads enable_i18n with a default of true, so it renders the picker and offers every locale;
    • the translation provider reads the same key with a default of false, and that value gates whether the message bundles are loaded at all.

    When the server does not ship the flag for a given account or build, the picker is drawn but i18n initialization is skipped. That would explain the whole cluster of reports here: the selection is saved, resources are on disk, the renderer starts with the requested language, and still nothing changes after a restart. It would also fit the "worked yesterday, English today with no settings changed" reports.

    Request
    Either initialize the bundled translations regardless of enable_i18n for desktop builds, or hide and disable the language picker while the flag is off, so the UI stops offering a language it will not apply. It would also help to know whether this is a known regression and whether a fix is scheduled.

    Happy to provide a verbose client log or extra screenshots if that would help narrow it down.

  16. RedScarf777 commented on Oct 28, 2026

    @RedScarf777

    Additional reproduction on Windows 10 with the current MSIX package:

    • App package: OpenAI.Codex 26.1021.3705.0, x64.
    • OS: Windows 10 Pro 22H2, build 19045; Windows UI culture is zh-CN.
    • In Settings > General > Language, the user selected Simplified Chinese. After fully quitting and relaunching the desktop app, the selector still shows Simplified Chinese, but the sidebar, menus, and Settings remain entirely in English.
    • Read-only inspection confirmed that Chinese locale resources are bundled with this installation.
    • The default %USERPROFILE%\.codex\config.toml now contains [desktop] localeOverride = "zh-CN". My first read did not find that key, but a subsequent read did. I therefore cannot treat the initial absence as a stable failure or determine when it was written.
    • I did not edit the config or app data, and I have not tested a proxy or offline/online startup correlation. I cannot confirm the proposed enable_i18n cause on this machine.

    Expected: selecting Simplified Chinese should render the desktop UI in Chinese.
    Actual: the setting remains selected while the complete UI remains English.

  17. XUEQIYU123 commented on Oct 28, 2026

    @XUEQIYU123

    Additional reproduction on Windows, observed on 2026-10-29 (UTC+08:00), with a newer desktop package.

    Environment

    • Running desktop application is inside the installed OpenAI.Codex_26.1023.6123.0_x64 package. This is the package version observed from the running executable's location; the About dialog version was not collected.
    • Windows x64, OS build 22000.2538.
    • Windows UI culture: zh-CN.
    • Settings UI has Simplified Chinese selected, as reported by the user.
    • Read-only inspection confirmed [desktop] localeOverride = "zh-CN" in the default user ~/.codex/config.toml.

    Observed behavior
    The user supplied a screenshot in which these fixed application UI elements remain English:

    • Native/window menus: File, Edit, View, Help.
    • Sidebar: New chat, Scheduled, Plugins, Explore, Pinned, Projects.
    • Home prompt: "What should we work on in [project name]?"

    The user reports fully quitting and reopening Codex repeatedly on the same day; the UI remains English after those restarts. The screenshot's Chinese chat/project names are user content and do not demonstrate that UI localization is working.

    Reproduction

    1. On Windows desktop, select Simplified Chinese as the app UI language.
    2. Fully quit and reopen the desktop application.
    3. Observe the menus, sidebar and home prompt.
    4. Repeat quitting/reopening: the user reports the same result.

    Expected
    The explicitly selected Simplified Chinese language should apply to the app's fixed UI strings.

    Investigation limits
    No app resources or persistent settings were modified. We have not verified remote feature flags, bootstrap/network failures, or translation-resource loading on this installation, so we cannot establish that the proposed causes elsewhere in this issue apply here.

    Please investigate the continued language-setting failure on this package and provide a supported fix or recovery procedure.

    The original screenshot includes private chat titles, so this public report includes a textual description rather than the raw screenshot, private logs, or the full configuration file.

  18. Milesian111 commented on Nov 5, 2026

    @Milesian111

    Adding a Windows x64 case observed on November 4, 2026, using official base MSIX 26.1029.7803.0 with a custom model provider.

    The selected UI language was saved as desktop.localeOverride="zh-CN", but the application interface remained English. The problem returned after an application update.

    Static inspection of the original bundled frontend found a potentially relevant separation between the saved preference and translation loading:

    • The translation provider (HHvo in this build) reads enable_i18n from configuration 72216192, defaulting to false.
    • localeOverride participates in locale selection, but enable_i18n separately controls whether the translation dictionary loader runs.
    • When that gate is disabled, the provider receives messages=undefined, allowing English default messages to remain visible despite the saved locale preference.

    This is a code-level lead rather than a confirmed diagnosis of the affected launch: the live remote configuration value was not captured, and a network/cache/rollout trigger was not isolated.

    A local workaround enabled the existing translation-loading path while preserving the saved locale. Startup checks passed, but the resulting localized UI has not yet been visually confirmed. The current modified installation should not be treated as an unmodified reproduction or a fully verified fix.

    Could the language selector and translation provider use consistent fallback behavior, particularly when an explicit locale is saved but remote configuration is unavailable?

  19. zhaomenghua commented on Nov 5, 2026

    @zhaomenghua

    解决方法是开启代理再重新打开codex即可。

  20. MiHjy12138 commented on Nov 5, 2026

    @MiHjy12138

    28. 解决方法是开启代理再重新打开codex即可。

    还真是!开着代理跑了一遍变中文了,是enable_i18n掌握着远端配置开关,代理一通 → 拉到 enable_i18n=true → 文案从本地加载 → 界面变中文

  21. MilesBao commented on Nov 9, 2026

    @MilesBao

    Adding a newer Windows reproduction, observed on November 9, 2026, and a limited local workaround result.

    Environment

    • Codex Desktop About version: 26.1103.32239.
    • Original Microsoft Store package: OpenAI.Codex 26.1103.4239.0, x64.
    • Windows 11 Pro for Workstations, version 10.0.26300, build 26300, x64.
    • Selected app UI language: Simplified Chinese (zh-CN).

    Observed before any application modification

    The language preference was saved as:

    [desktop]
    localeOverride = "zh-CN"

    The original installed app still displayed English fixed UI strings, including New chat, Scheduled, Plugins, Pinned, Projects, Recents, and the project home prompt. Fully quitting and reopening did not resolve it. Chinese conversation titles were user content, not evidence of UI localization.

    Static inspection of this original build confirmed bundled Chinese translations for affected strings. The differing fallback behavior discussed here and in #52471 is still present: the picker reads enable_i18n from layer 72216192 with default true, whereas the locale provider uses default false to control translation loading.

    Local experiment — modified copy, not an unmodified reproduction

    In a separate local copy of that build, I changed the locale-provider condition to allow an explicit localeOverride to enable the existing translation loader. The copy used the existing profile directory. Its sidebar and home prompt rendered in Chinese; the visible result was confirmed after relaunching without debugging enabled.

    A diagnostic collected in this modified copy returned:

    {"loadingStatus":"Ready","hasEvaluations":false,"enableI18n":null,"evaluationReason":"NoValues"}

    I did not collect the equivalent runtime readout from the original signed installation. The modified copy has a different package/launch context, so this does not establish the original app's runtime flag value or why configuration was unavailable. No offline/online A/B or cache-quota experiment was performed.

    Could Desktop honor an explicitly saved UI language using the bundled translations when feature configuration is unavailable, and provide a supported recovery path? The local modification is a workaround, not a proposed distributable patch or proof of the upstream trigger.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions