Moved the naming dict to a JSON file

This commit is contained in:
David Benepe
2022-02-07 11:14:15 -05:00
parent cc37e923eb
commit 51f8df1ddf
2 changed files with 9 additions and 5 deletions
+4 -5
View File
@@ -1,5 +1,6 @@
#!/usr/bin/env python3
import argparse
import json
import re
import os
@@ -14,12 +15,10 @@ TERMINAL_COLOR_GREEN = "\033[32m"
TERMINAL_COLOR_YELLOW = "\033[33m"
TERMINAL_COLOR_RESET = "\033[0m"
REGIONAL_NAMES_JSON_PATH = 'tools/python/regional_names.json'
# Note: All names MUST be lowercase
diffMap = [
{ "us": "color", "uk": "colour" },
{ "us": "gray", "uk": "grey" },
{ "us": "dialog", "uk": "dialogue" },
]
diffMap = json.loads(FileUtil.readAllText(REGIONAL_NAMES_JSON_PATH))
def precheckForErrors(version):
versionBuildPath = 'build/' + version
+5
View File
@@ -0,0 +1,5 @@
[
{ "us": "color", "uk": "colour" },
{ "us": "gray", "uk": "grey" },
{ "us": "dialog", "uk": "dialogue" }
]