From cdb093c74ab19f9ea57c74138f125ba2aee28eca Mon Sep 17 00:00:00 2001 From: zhayujie Date: Wed, 3 Jun 2026 16:09:15 +0800 Subject: [PATCH] fix(i18n): refine auto language fallback for deployments --- common/i18n.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/i18n.py b/common/i18n.py index 6dc24767..9afbd0ef 100644 --- a/common/i18n.py +++ b/common/i18n.py @@ -124,12 +124,12 @@ def detect_language(): 3. Python locale module 4. default English """ - deployed = bool(os.environ.get("CLOUD_DEPLOYMENT_ID")) + if os.environ.get("CLOUD_DEPLOYMENT_ID"): + return ZH return ( _detect_from_macos() or _detect_from_env() or _detect_from_python_locale() - or (ZH if deployed else None) or DEFAULT_LANG )