Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

fix(ci): make i18n validation soft-fail — return 0 on missing/untranslated keys

diegosouzapwe1868bdb7835
diff --git a/scripts/validate_translation.py b/scripts/validate_translation.py
index f8632fe63d..722f466ddf 100755
--- a/scripts/validate_translation.py
+++ b/scripts/validate_translation.py
@@ -379,11 +379,11 @@ def generate_report():
print(f"{GREEN}🎉 Translation is fully synchronized!{NC}")
return 0
else:
- print(f"{RED}Translation needs attention:{NC}")
+ print(f"{YELLOW}Translation needs attention:{NC}")
print(f" - Missing: {len(missing)}")
print(f" - Extra: {len(extra)}")
print(f" - Untranslated: {len(untranslated)}")
- return 1
+ return 0
def quick_check() -> int:
@@ -404,7 +404,8 @@ def quick_check() -> int:
# 2 = missing string in translation
# 3 = untranslated (soft warning - not a failure)
if missing:
- return 2
+ print_warning(f"{len(missing)} missing keys (non-critical)")
+ return 0
# untranslated is a soft warning, not a failure - translations exist, just not localized
if untranslated:
print_warning(f"{len(untranslated)} untranslated keys (non-critical)")