mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-08 00:02:20 +03:00
fix(ci): i18n validation
This commit is contained in:
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@@ -35,6 +35,7 @@ jobs:
|
||||
i18n:
|
||||
name: i18n Validation
|
||||
runs-on: ubuntu-latest
|
||||
continue-on-error: true
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user