Skip to content

Commit 6400671

Browse files
committed
Grouped DEFAULT_CONFIG init w/ init/load config file ↞ [auto-sync from https://github.com/adamlui/python-utils/tree/main/translate-messages]
1 parent 02a5760 commit 6400671

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

utils/translate-en-messages.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'''
22
Name: translate-en-messages.py
3-
Version: 2026.2.10.13
3+
Version: 2026.2.10.14
44
Author: Adam Lui
55
Description: Translate en/messages.json to other locales
66
Homepage: https://github.com/adamlui/python-utils
@@ -15,8 +15,6 @@
1515
from translate import Translator
1616
from urllib.request import urlopen
1717

18-
DEFAULT_CONFIG = { 'include_langs': '', 'exclude_langs': '', 'ignore_keys': '' }
19-
2018
locales_folder = '_locales' ; provider = ''
2119
default_target_locales = [
2220
'af', 'am', 'ar', 'az', 'be', 'bem', 'bg', 'bn', 'bo', 'bs', 'ca', 'ceb', 'cs', 'cy', 'da', 'de', 'dv', 'dz', 'el',
@@ -28,6 +26,7 @@
2826
]
2927

3028
# Init/load config file
29+
DEFAULT_CONFIG = { 'include_langs': '', 'exclude_langs': '', 'ignore_keys': '' }
3130
script_name = os.path.splitext(os.path.basename(__file__))[0]
3231
config_filename = f'{script_name}.config.json'
3332
config_path = os.path.join(os.path.dirname(__file__), config_filename)

0 commit comments

Comments
 (0)