File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 11'''
22Name: translate-en-messages.py
3- Version: 2026.2.10.12
3+ Version: 2026.2.10.13
44Author: Adam Lui
55Description: Translate en/messages.json to other locales
66Homepage: https://github.com/adamlui/python-utils
3333config_path = os .path .join (os .path .dirname (__file__ ), config_filename )
3434config_data = DEFAULT_CONFIG .copy ()
3535if 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 )
36+ with open (config_path , 'r' , encoding = 'utf-8' ) as file_config :
37+ config_data .update (json .load (file_config ))
3938
4039# Parse CLI args
4140parser = argparse .ArgumentParser (description = 'Translate en/messages.json to other locales' )
Original file line number Diff line number Diff line change 11'''
22Name: translate-en-messages.py
3- Version: 2026.2.10.12
3+ Version: 2026.2.10.13
44Author: Adam Lui
55Description: Translate en/messages.json to other locales
66Homepage: https://github.com/adamlui/python-utils
3333config_path = os .path .join (os .path .dirname (__file__ ), config_filename )
3434config_data = DEFAULT_CONFIG .copy ()
3535if 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 )
36+ with open (config_path , 'r' , encoding = 'utf-8' ) as file_config :
37+ config_data .update (json .load (file_config ))
3938
4039# Parse CLI args
4140parser = argparse .ArgumentParser (description = 'Translate en/messages.json to other locales' )
You can’t perform that action at this time.
0 commit comments