We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3ad7b9 commit 0e80c31Copy full SHA for 0e80c31
scripts/extract_locale_strings.py
@@ -22,5 +22,4 @@
22
23
if output:
24
result_file_path = project_root_path / "locale" / "en.json"
25
- with open(result_file_path, "w", encoding="utf-8") as result_file:
26
- result_file.write(json.dumps(output, indent=2, ensure_ascii=False))
+ result_file_path.write_text(json.dumps(output, indent=2, ensure_ascii=False), encoding="utf-8")
0 commit comments