aboutsummaryrefslogtreecommitdiff
path: root/codegen/lib/code/language.py
blob: ff3e6906d4d42d993f745281e8909c813cf7810e (plain)
1
2
3
4
5
6
7
8
9
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="  "))