We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 074095d commit da931d3Copy full SHA for da931d3
1 file changed
translate-messages/translate-en-messages.py
@@ -1,6 +1,6 @@
1
'''
2
Name: translate-en-messages.py
3
-Version: 2026.2.10.12
+Version: 2026.2.10.13
4
Author: Adam Lui
5
Description: Translate en/messages.json to other locales
6
Homepage: https://github.com/adamlui/python-utils
@@ -33,9 +33,8 @@
33
config_path = os.path.join(os.path.dirname(__file__), config_filename)
34
config_data = DEFAULT_CONFIG.copy()
35
if os.path.exists(config_path):
36
- with open(config_path, 'r', encoding='utf-8') as f:
37
- file_config = json.load(f)
38
- config_data.update(file_config)
+ with open(config_path, 'r', encoding='utf-8') as file_config:
+ config_data.update(json.load(file_config))
39
40
# Parse CLI args
41
parser = argparse.ArgumentParser(description='Translate en/messages.json to other locales')
0 commit comments