File tree Expand file tree Collapse file tree
translate-messages/src/translate_messages/lib Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -69,10 +69,11 @@ def write_translations(cli):
6969 log .info (f'{ action } { lang_dir } /{ cli .msgs_filename } ...' , end = '' )
7070 sys .stdout .flush ()
7171 translated_msgs = create_translations (cli , msgs , lang_code )
72- data .json .write (msgs_path , translated_msgs , style = 'compact' )
73-
74- if translated_msgs == msgs : langs_skipped .append (lang_code ) ; lang_skipped = True
75- else : langs_translated .append (lang_code ) ; lang_translated = True
72+ if translated_msgs == msgs :
73+ langs_skipped .append (lang_code ) ; lang_skipped = True
74+ else :
75+ data .json .write (msgs_path , translated_msgs , style = 'compact' )
76+ langs_translated .append (lang_code ) ; lang_translated = True
7677 if not lang_translated : langs_not_translated .append (lang_code )
7778 status = f'{ log .colors .dg } { cli .msgs .log_ADDED } ' if lang_added else \
7879 f'{ log .colors .gry } { cli .msgs .log_SKIPPED } ' if lang_skipped else \
You can’t perform that action at this time.
0 commit comments