Update i18n for emoji

This commit is contained in:
Travis Ralston 2020-08-13 11:54:56 -06:00
parent 38431dca1c
commit f0ba7f014b
2 changed files with 513 additions and 65 deletions

View file

@ -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)