aboutsummaryrefslogtreecommitdiff
path: root/codegen/lib/code/language.py
diff options
context:
space:
mode:
Diffstat (limited to 'codegen/lib/code/language.py')
-rw-r--r--codegen/lib/code/language.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/codegen/lib/code/language.py b/codegen/lib/code/language.py
new file mode 100644
index 00000000..d27dde81
--- /dev/null
+++ b/codegen/lib/code/language.py
@@ -0,0 +1,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=' ')) \ No newline at end of file