Skip to content

Commit eb19d2a

Browse files
authored
Add indentation to JSON output in langs.py
Formatted JSON output with indentation for better readability.
1 parent 8046274 commit eb19d2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jam/langs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def export_lang(task, lang_id, host):
281281
language[names[i]] = lang[0][i]
282282

283283
translation = get_dict(task, lang_id)
284-
content = json.dumps({'language': language, 'translation': translation}, ensure_ascii=False)
284+
content = json.dumps({'language': language, 'translation': translation}, ensure_ascii=False, indent=2)
285285

286286
name = language['f_name'].replace(' ', '_')
287287
file_name = '%s_%s.lang' % (name, datetime.datetime.now().strftime("%Y-%m-%d_%H-%M-%S"))

0 commit comments

Comments
 (0)