Split language from region: omarchy-language and Setup > Language own LANG
omarchy-region and install/config/region.sh no longer touch the locale; both logout prompts are worded through omarchy-text.
This commit is contained in:
1 parent
1824bc3066
commit
199a7f23fc
13 files changed
+157
-46
No files matched your search
+3
-10
@@ -50,16 +50,9 @@ else
|
||||
omarchy-setup-claude-api --remove
|
||||
fi
|
||||
|
||||
# The language and the developer mirrors reach only a new session, so offer one in the new language.
|
||||
if [[ $1 == "cn" ]]; then
|
||||
prompt="立即注销,切换到中文界面和国内镜像?" log_out="立即注销" later="稍后"
|
||||
reminder="区域已设为中国。重新登录后切换到中文界面和国内镜像。"
|
||||
else
|
||||
prompt="Log out now to switch to English and the global mirrors?" log_out="Log out now" later="Later"
|
||||
reminder="Region set to Global. Log back in to switch to English and the global mirrors."
|
||||
fi
|
||||
if [[ -t 0 && -t 1 ]] && gum confirm --affirmative "$log_out" --negative "$later" "$prompt" 2>&1; then
|
||||
# The developer mirrors reach only a new session, so offer one.
|
||||
if [[ -t 0 && -t 1 ]] && gum confirm --affirmative "$(omarchy-text "Log out now")" --negative "$(omarchy-text "Later")" "$(omarchy-text "Log out now to switch the developer mirrors?")" 2>&1; then
|
||||
omarchy-system-logout
|
||||
else
|
||||
echo "$reminder"
|
||||
omarchy-text "Log back in to switch the developer mirrors."
|
||||
fi
|
||||
Reference in new issue
Block a user