Skip to content

Commit

Permalink
Ignore main locale file for missing translation check
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Anderson committed Sep 9, 2024
1 parent f1ef139 commit 3c46612
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .scripts/missing_translation_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def compare_translations(reference_dict, target_dict, locale):
def main():
locale_dir = "locale"
output_directory = ".scripts/.output"
ignored_files = ["main.lua"]

# Create output_directory if it doesn't exist
if not os.path.exists(output_directory):
Expand All @@ -113,6 +114,8 @@ def main():

# Compare each locale with the reference
for locale_file in locale_files:
if locale_file in ignored_files:
continue
if locale_file != reference_file:
target_dict = load_lua_file(f"{locale_dir}/{locale_file}")
markdown_report, extra_keys = compare_translations(
Expand Down

0 comments on commit 3c46612

Please sign in to comment.