Spaces:
Running
Running
File size: 460 Bytes
9b0a8c5 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
import json
meta = json.load(open("metadata.json", "r", encoding="utf-8"))
concepts = json.load(open("concepts.json", "r", encoding="utf-8"))
for country in concepts:
if not country in meta:
meta[country] = dict()
for language in concepts[country]:
if language not in meta[country]:
meta[country][language] = meta["USA"]["English"]
with open("metadata.json", "w", encoding="utf-8") as f:
json.dump(meta, f, indent=2)
|