Skip to content

Commit

Permalink
Update sync_i18n.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Exitare committed Dec 26, 2024
1 parent 0a45889 commit b1f0496
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/sync_i18n.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import json
from pathlib import Path


def merge_with_en(en_data: dict, target_data: dict) -> dict:
"""
Recursively merge en.json keys into target translation file.
Expand All @@ -23,8 +22,7 @@ def merge_with_en(en_data: dict, target_data: dict) -> dict:

return merged


def sync_keys(translations_dir: Path, en_file: Path):
def sync_keys(translations_dir: Path, en_file: Path) -> None:
# Load en.json as the reference file
with open(en_file, 'r', encoding='utf-8') as f:
en_data = json.load(f)
Expand Down

0 comments on commit b1f0496

Please sign in to comment.