We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47431cf commit 25864f1Copy full SHA for 25864f1
1 file changed
translate-messages/src/translate_messages/lib/language.py
@@ -58,7 +58,7 @@ def write_translations(cli):
58
59
lang_dir_path = cli.locales_path / lang_dir
60
msgs_path = lang_dir_path / cli.msgs_filename
61
- if msgs_path.exists():
+ if msgs_path.exists() and msgs_path.stat().st_size > 0:
62
msgs = data.json.read(msgs_path)
63
else:
64
msgs = {}
0 commit comments