From b1f04966e2888d45305e4c7e3b4a77bed87ac821 Mon Sep 17 00:00:00 2001 From: Exitare Date: Thu, 26 Dec 2024 12:45:25 -0800 Subject: [PATCH] Update sync_i18n.py --- scripts/sync_i18n.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/sync_i18n.py b/scripts/sync_i18n.py index 31f9bfb974..e13bc2f455 100644 --- a/scripts/sync_i18n.py +++ b/scripts/sync_i18n.py @@ -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. @@ -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)