Update i18n for emoji
This commit is contained in:
parent
38431dca1c
commit
f0ba7f014b
2 changed files with 513 additions and 65 deletions
|
@ -25,7 +25,7 @@ def merge_sas_emoji_v1():
|
|||
with open(os.path.join(pth, translation), encoding="utf8") as lf:
|
||||
descs = json.load(lf)
|
||||
for e in emoji:
|
||||
e["translated_descriptions"][lang] = descs[e["description"]]
|
||||
e["translated_descriptions"][lang] = descs.get(e["description"])
|
||||
with open(os.path.join(data_defs_dir, "sas-emoji.json"), mode="w+", encoding="utf8") as o:
|
||||
json.dump(emoji, o, ensure_ascii=False, indent=4)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue