Skip to content

Commit 5c14831

Browse files
committed
Condensed SimpleNamespace refs ↞ [auto-sync from https://github.com/adamlui/python-utils/tree/main/translate-messages]
1 parent f57ec7e commit 5c14831

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

utils/translate-en-messages.py

Lines changed: 4 additions & 4 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.17
3+
Version: 2026.2.10.18
44
Author: Adam Lui
55
Description: Translate en/messages.json to other locales
66
Homepage: https://github.com/adamlui/python-utils
@@ -13,12 +13,12 @@
1313
import os, json
1414
from sys import stdout
1515
from translate import Translator
16-
from types import SimpleNamespace
16+
from types import SimpleNamespace as sns
1717
from urllib.request import urlopen
1818

19-
cli = SimpleNamespace(
19+
cli = sns(
2020
name='translate-messages',
21-
urls=SimpleNamespace(jsdelivr='https://cdn.jsdelivr.net/gh/adamlui/python-utils')
21+
urls=sns(jsdelivr='https://cdn.jsdelivr.net/gh/adamlui/python-utils')
2222
)
2323

2424
provider = ''

0 commit comments

Comments
 (0)