Skip to content

Commit f829481

Browse files
committed
Corrected msgs_host_url
1 parent 0eae7eb commit f829481

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

remove-json-keys/src/remove_json_keys/lib/language.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def get_msgs(cli: sn, lang_code: str = 'en') -> sn:
6767
Path(__file__).parent.parent / '_locales/en/messages.json'))
6868

6969
if not lang_code.startswith('en'): # fetch non-English msgs from jsDelivr
70-
msgs_host_url = f'{jsdelivr.create_commit_url(cli, cli.commit_hashes.locales)}/_locales/'
70+
msgs_host_url = f'{jsdelivr.create_commit_url(cli, cli.commit_hashes.locales)}/src/remove_json_keys/_locales/'
7171
msg_href = f'{msgs_host_url}{lang_code}/messages.json'
7272
for attempt in range(3):
7373
try: # fetch remote msgs

translate-messages/src/translate_messages/lib/language.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def get_msgs(cli: sn, lang_code: str = 'en') -> sn:
9999
Path(__file__).parent.parent / '_locales/en/messages.json'))
100100

101101
if not lang_code.startswith('en'): # fetch non-English msgs from jsDelivr
102-
msgs_host_url = f'{jsdelivr.create_commit_url(cli, cli.commit_hashes.locales)}/_locales/'
102+
msgs_host_url = f'{jsdelivr.create_commit_url(cli, cli.commit_hashes.locales)}/src/translate_messages/_locales/'
103103
msg_href = f'{msgs_host_url}{lang_code}/messages.json'
104104
for attempt in range(3):
105105
try: # fetch remote msgs

0 commit comments

Comments
 (0)