Skip to content

Add a Setup > Region toggle with Chinese language and input method - #9548

Closed
ZacharyZhang-NY wants to merge 1 commit into
omacom:quattrofrom
ZacharyZhang-NY:china-region
Closed

ZacharyZhang-NY wants to merge 1 commit into
omacom:quattrofrom
ZacharyZhang-NY:china-region

Conversation

@ZacharyZhang-NY

@ZacharyZhang-NY ZacharyZhang-NY commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Replaces #9519.

Setup > Region toggles between World and China. China switches the system language to zh_CN, installs @manateelazycat's rime-ice-installer and runs it, makes Rime the active input method with Ctrl+Space as the toggle, and swaps the menu to Chinese labels. World puts the language and menu back and leaves the input method installed.

Also fixes mergeMenuSources to only override the fields a user extension declares, as docs/menu.md documents.

Companion: omacom/omarchy-pkgs#251.

Test plan

  • region-test.sh (new): language, menu and input-method round-trips, idempotent re-apply
  • menu-test.sh and menu-guards-test.sh
  • ./test/all at the clean-tree baseline
  • Fresh VM install verified end to end

"style.bar.position": {"label":"位置"},
"style.bar.transparency": {"label":"透明"},
"style.screensaver": {"label":"屏保"},
"style.about": {"label":"关于页"},

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here should "关于"

"update.password": {"label":"密码"},
"update.timezone": {"label":"时区"},
"update.time": {"label":"时间"},
"update.channel.stable": {"label":"稳定 Stable"},

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

duplicate

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here just keep Stable be ok.

"setup.security.passwordless-sudo": {"label":"免密 sudo"},
"setup.security.sudoless-docker": {"label":"免 sudo Docker"},
"setup.direct-boot": {"label":"直接启动"},
"setup.reset": {"label":"恢复出厂"},

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"恢复出厂设置"

"trigger.capture.screenshot": {"label":"截图"},
"trigger.capture.screenrecord.stop": {"label":"停止录屏"},
"trigger.capture.screenrecord": {"label":"录屏"},
"trigger.capture.text": {"label":"取字 OCR"},

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"OCR 取字"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

非常感谢。

@Harry-Chen Harry-Chen left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the administrator of mirrors.tuna.tsinghua.edu.cn, due to both technical and non-technical reasons, I hereby request the removal of any hardcoded TUNA mirrors from the official configuration of this distribution, for now and the future. This leads to traffic and ethical burden to our mirror service, which is strongly undesirable.

Comment thread bin/omarchy-region Outdated
pip_index="https://pypi.tuna.tsinghua.edu.cn/simple"
cargo_registry="sparse+https://rsproxy.cn/index/"
go_proxy="https://goproxy.cn,direct"
gem_source="https://mirrors.tuna.tsinghua.edu.cn/rubygems/"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove all mirrors pelease. Current is a AI time. Omarchy is also the AI native system, all users that must be has proxy, unless that they not use Claude, Codex.

So, we don't need built-in have those mirrors. Even say that not need for every one.

We can built-in have VPN apps, just on-tap to install proxy subscription.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually built in vpn apps does not meet the Gov complience. Users will need to install by themselves.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ZacharyZhang-NY

I think you may be going in the wrong direction here. We shouldn’t assume that users depend on domestic mirrors for their development tools.

There are many scenarios, including but not limited to:

  1. Chinese-speaking users who live outside China
  2. Users in China who use the system while traveling or working abroad
  3. Users from China whose network environment is already outside China

None of these users need a system-wide built-in proxy or mirror configuration.

So, as @huacnlee suggested, we should remove all mirror/proxy configuration and leave this decision and setup entirely to the user.

@ZacharyZhang-NY ZacharyZhang-NY Sep 1, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense. Would it be better to keep the region set to China, but make mirror configuration optional during setup so users can choose based on their network environment?
Or, we can just write a documentation on website showing the tutorial on source list and let user config themselves.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the second option is better.

We can keep the region as China, but I don't think the setup process should make any assumption about package mirrors. Region and mirror configuration are separate concerns.

The safest default is to keep the official upstream sources and leave mirror selection entirely to the user. For users who need domestic mirrors, we can provide documentation showing how to configure them manually.

I also think the documentation should avoid explicitly recommending or naming any specific domestic mirror provider. This would prevent putting additional traffic, maintenance, or other burdens on individual mirror maintainers, such as TUNA.

This also avoids hardcoding or maintaining any specific mirror in the official configuration, while still making it easy for users in China to configure a mirror themselves if their network requires it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would agree with that. I removed all the sources and will update the aliyun mirror list on website. I will contact aliyun.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That sounds good. One small point I'd like to clarify: I don't mean that Aliyun is not a good mirror, nor do I think Omarchy should avoid working with Aliyun.

My concern is more about the order of things. I think we should first contact the mirror provider and reach an agreement with them about being listed as a recommended mirror, and only then add it to the Omarchy website.

In other words, the website should record an established relationship rather than pre-selecting a mirror before the provider has agreed to it.

So if Aliyun is willing to work with Omarchy and the maintainers agree on the arrangement, I'm totally fine with listing it. I just don't think we should present Aliyun as a recommended mirror before that agreement exists.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we are currently talking to aliyun right now.

`omarchy region china` switches the system language to zh_CN, installs the
Rime Ice input method through Andy Stewart's rime-ice-installer, makes Rime
the default with Ctrl+Space as the toggle, and swaps the Omarchy menu to
Chinese labels through the user-extension overlay; `omarchy region world`
puts the language and menu back and leaves the input method installed.
mergeMenuSources now only overrides the fields an extension declares, as
docs/menu.md documents, which the label-only overlay needs.

Co-authored-by: Andy Stewart <[email protected]>
@ZacharyZhang-NY ZacharyZhang-NY changed the title Add a Setup > Region toggle with Chinese sources, language and input method Add a Setup > Region toggle with Chinese language and input method Sep 1, 2026
@ZacharyZhang-NY

Copy link
Copy Markdown
Contributor Author

As the administrator of mirrors.tuna.tsinghua.edu.cn, due to both technical and non-technical reasons, I hereby request the removal of any hardcoded TUNA mirrors from the official configuration of this distribution, for now and the future. This leads to traffic and ethical burden to our mirror service, which is strongly undesirable.

I removed all the mirrors and will just show a aliyun source list on website for users to config manually. Give them the option.

@ZacharyZhang-NY ZacharyZhang-NY closed this by deleting the head repository Sep 1, 2026
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.

4 participants