fix(ci): i18n validation

This commit is contained in:
zenobit
2026-03-31 23:46:25 +02:00
committed by openhands
parent 8ea614266c
commit a91f8c4d51
2 changed files with 11 additions and 2 deletions

View File

@@ -35,6 +35,7 @@ jobs:
i18n:
name: i18n Validation
runs-on: ubuntu-latest
continue-on-error: true
strategy:
fail-fast: false
matrix:

View File

@@ -396,8 +396,16 @@ def quick_check() -> int:
print(f"Missing: {len(missing)}")
print(f"Untranslated: {len(untranslated)}")
# Only fail on missing keys, untranslated is acceptable
return 0 if not missing else 1
# Exit codes:
# 0 = OK
# 1 = generic error
# 2 = missing string in translation
# 3 = non translated string (same as source)
if missing:
return 2
if untranslated:
return 3
return 0
def show_diff(category: str) -> int: