Skip to content

Commit

Permalink
Add success messages to translation checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander01998 committed Dec 23, 2024
1 parent 8d6276c commit 7350bca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/check_translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def check_extra_keys(en_us: dict, translations: dict):
util.add_github_summary(f"- {key}")
if extra_keys_found:
raise Exception("Found extra keys in one or more translation files, see summary")
print("✅ No extra keys found")


def check_untranslated_strings(en_us: dict, translations: dict):
Expand Down Expand Up @@ -63,6 +64,7 @@ def check_untranslated_strings(en_us: dict, translations: dict):

if untranslated_strings_found:
raise Exception("Found untranslated strings in one or more translation files, see summary")
print("✅ No accidentally untranslated strings found")


def main():
Expand Down

0 comments on commit 7350bca

Please sign in to comment.