Skip to content

Commit 60530fa

Browse files
committed
Corrected locales_dir ref
1 parent 36a86da commit 60530fa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

translate-messages/translate-en-messages.py

Lines changed: 2 additions & 2 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.20
3+
Version: 2026.2.10.21
44
Author: Adam Lui
55
Description: Translate en/messages.json to other locales
66
Homepage: https://github.com/adamlui/python-utils
@@ -47,7 +47,7 @@
4747
parser.add_argument('--locales-dir', type=str, help='Name of folder containing locales')
4848
parser.add_argument('--init', action='store_true', help='Create .config.json file to store defaults')
4949
args = parser.parse_args()
50-
locales_dir = args.locales_dir or config_data.get('include_langs', '') or '_locales'
50+
locales_dir = args.locales_dir or config_data.get('locales_dir', '') or '_locales'
5151

5252
if args.init: # create config file
5353
if os.path.exists(config_path):

0 commit comments

Comments
 (0)