aboutsummaryrefslogtreecommitdiff
path: root/codegen/lib/code/language.py
blob: d27dde81cd2fe4a987eb0a9941431f04ee7de6eb (plain)
1
2
3
4
5
6
7
8
from lib.utils import get_dir_location
import json

LANGUAGE_DIR = get_dir_location('../azalea-language/src/en_us.json')

def write_language(contents: dict):
    with open(LANGUAGE_DIR, 'w') as f:
        f.write(json.dumps(contents, indent='  '))