Skip to content

Add zh-CN localization#9922

Open
later0day wants to merge 5 commits intowarpdotdev:masterfrom
later0day:codex/i18n-sync-prep-20260502-043641
Open

Add zh-CN localization#9922
later0day wants to merge 5 commits intowarpdotdev:masterfrom
later0day:codex/i18n-sync-prep-20260502-043641

Conversation

@later0day
Copy link
Copy Markdown

Summary

This PR does two things in the same pass:

  1. Adds a persisted display-language setting and broad Simplified Chinese (zh-CN) UI localization across Warp OSS.
  2. Reconciles the local localization work with a large set of upstream behavior changes so the branch remains buildable and testable on top of the newer codepaths.

What changed

  • Added display-language settings support and i18n plumbing:

    • introduced app/src/i18n.rs
    • introduced app/src/settings/language.rs
    • registered the language setting in settings initialization
    • localized menu labels, settings surfaces, auth flows, toasts, dialogs, and many common UI actions
  • Expanded Chinese coverage across the app:

    • top-level app menus and menu actions
    • Settings navigation and Appearance language selector
    • auth/sign-in and onboarding flows
    • agent management, AI chrome, notebook/workflow/drive surfaces
    • terminal context menus, shared-session controls, and many toast/error states
  • Synced several upstream behavior chains needed for the branch to stay healthy:

    • cloud-mode-v2 slash command flow
    • ambient agent follow-up and host/harness/environment selector plumbing
    • remote server preinstall/version-compatibility support path
    • execution-profile and AI-settings denylist/list-row behavior
    • pending remote session handling in workspace/file-tree/global-search
    • pane header / orchestration pill bar support path

Notes

  • This is not a pure string-only PR. It includes settings/UI behavior wiring required to support the new language feature and to preserve compatibility with upstream changes.
  • The main runtime-facing addition is the display-language setting plus the broad UI localization.
  • Several upstream support files were pulled in to keep the branch compiling after syncing behavior from newer remote changes.

Validation

Ran:

  • cargo fmt --all
  • cargo check -p warp
  • cargo test -p warp i18n::tests::all_i18n_keys_have_non_empty_catalog_entries
  • git diff --check

Follow-ups

  • Some newly synced orchestration-related codepaths still produce compile warnings for currently-unused breadcrumb/pill-bar helpers. They do not block build/test, but may be worth cleaning up in a follow-up.
  • There may still be intentionally untranslated technical strings (commands, filenames, regex examples, etc.) left in English by design.

@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented May 2, 2026

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @later0day on file. In order for us to review and merge your code, each contributor must visit https://cla.warp.dev to read and agree to our CLA. Once you have done so, please comment @cla-bot check to trigger another check.

@github-actions github-actions Bot added the external-contributor Indicates that a PR has been opened by someone outside the Warp team. label May 2, 2026
@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented May 2, 2026

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @later0day on file. In order for us to review and merge your code, each contributor must visit https://cla.warp.dev to read and agree to our CLA. Once you have done so, please comment @cla-bot check to trigger another check.

@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented May 2, 2026

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @later0day on file. In order for us to review and merge your code, each contributor must visit https://cla.warp.dev to read and agree to our CLA. Once you have done so, please comment @cla-bot check to trigger another check.

@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented May 2, 2026

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @later0day on file. In order for us to review and merge your code, each contributor must visit https://cla.warp.dev to read and agree to our CLA. Once you have done so, please comment @cla-bot check to trigger another check.

@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented May 3, 2026

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @later0day on file. In order for us to review and merge your code, each contributor must visit https://cla.warp.dev to read and agree to our CLA. Once you have done so, please comment @cla-bot check to trigger another check.

@chan-yuu
Copy link
Copy Markdown

chan-yuu commented May 5, 2026

目前的中文化进度如何?是否可以源码编译

@later0day
Copy link
Copy Markdown
Author

目前的中文化进度如何?是否可以源码编译

覆盖90%左右, 正常运行暂未发现异常崩溃

@chan-yuu
Copy link
Copy Markdown

chan-yuu commented May 5, 2026

能发我一下编译的安装包吗?我的邮箱: [email protected],想要体验熟悉一下功能,mac,Windows 和 linux 的都可以。谢谢❤️

@later0day
Copy link
Copy Markdown
Author

能发我一下编译的安装包吗?我的邮箱: [email protected],想要体验熟悉一下功能,mac,Windows 和 linux 的都可以。谢谢❤️

没问题,晚点哈老哥

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

Labels

external-contributor Indicates that a PR has been opened by someone outside the Warp team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants