mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-26 09:52:11 +03:00
fix(ci): make i18n validation soft-fail — return 0 on missing/untranslated keys
This commit is contained in:
@@ -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)")
|
||||
|
||||
Reference in New Issue
Block a user