Format code (#1096)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot] 2023-08-27 01:02:39 +08:00 committed by GitHub
parent 3686c8b317
commit 473c20c264
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -199,4 +199,5 @@ class Config:
pass
return x_pad, x_query, x_center, x_max
defaultconfig = Config()

View File

@ -67,9 +67,10 @@ for missing_key in missing_keys:
print("\t", missing_key)
code_keys_dict = OrderedDict()
for s in strings: code_keys_dict[s] = s
for s in strings:
code_keys_dict[s] = s
# write back
with open(f"lib/i18n/{standard_file}", "w", encoding="utf-8") as f:
json.dump(code_keys_dict, f, ensure_ascii=False, indent=4, sort_keys=True)
f.write('\n')
f.write("\n")