fix(i18n): treat untranslated as soft warning, not failure

This commit is contained in:
zenobit
2026-04-01 00:58:24 +02:00
parent ef519ac5ff
commit e2287fae58
+4 -2
View File
@@ -402,11 +402,13 @@ def quick_check() -> int:
# 0 = OK
# 1 = generic error
# 2 = missing string in translation
# 3 = non translated string (same as source)
# 3 = untranslated (soft warning - not a failure)
if missing:
return 2
# untranslated is a soft warning, not a failure - translations exist, just not localized
if untranslated:
return 3
print_warning(f"{len(untranslated)} untranslated keys (non-critical)")
return 0
return 0