Format code (#1096)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
3686c8b317
commit
473c20c264
@ -199,4 +199,5 @@ class Config:
|
|||||||
pass
|
pass
|
||||||
return x_pad, x_query, x_center, x_max
|
return x_pad, x_query, x_center, x_max
|
||||||
|
|
||||||
|
|
||||||
defaultconfig = Config()
|
defaultconfig = Config()
|
||||||
|
@ -67,9 +67,10 @@ for missing_key in missing_keys:
|
|||||||
print("\t", missing_key)
|
print("\t", missing_key)
|
||||||
|
|
||||||
code_keys_dict = OrderedDict()
|
code_keys_dict = OrderedDict()
|
||||||
for s in strings: code_keys_dict[s] = s
|
for s in strings:
|
||||||
|
code_keys_dict[s] = s
|
||||||
|
|
||||||
# write back
|
# write back
|
||||||
with open(f"lib/i18n/{standard_file}", "w", encoding="utf-8") as f:
|
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)
|
json.dump(code_keys_dict, f, ensure_ascii=False, indent=4, sort_keys=True)
|
||||||
f.write('\n')
|
f.write("\n")
|
||||||
|
Loading…
Reference in New Issue
Block a user