@@ -120,27 +120,11 @@ def runI18n4go(path: str) -> None:
120120 mxm_re = re .compile (r"^\"(.+?)\" exists in ([a-zA-Z_]{5,7}), but not in en_US$" , flags = re .M | re .DOTALL )
121121 # This should be the last line
122122 fin_re = re .compile (r"Could not checkup, err: Strings don't match$" )
123- # print(result.stdout)
123+
124124 if result .stderr :
125125 print (f"[red]Error: { result .stderr } " )
126- # to_check = ""
127- if result .returncode > 0 :
128-
129- # for line in result.stdout:
130- # to_check = f"{to_check}{line}"
131- # if to_check.endswith(" exists in the code, but not in en_US"):
132- # key = to_check.replace(" exists in the code, but not in en_US", '')
133- # add_json[key] = {"id": key, "translation": key}
134- # to_check = ""
135- # elif to_check.endswith(" exists in en_US, but not in the code"):
136- # key = to_check.replace(" exists in en_US, but not in the code", '')
137- # del_json[key] = {"id": key, "translation": key}
138- # to_check = ""
139- # elif to_check.endswith(", but not in en_US"):
140- # key = to_check.replace(" exists in en_US, but not in the code", '')
141- # del_json[key] = {"id": key, "translation": key}
142- # to_check = ""
143126
127+ if result .returncode > 0 :
144128 print ("\t [yellow] ====== ADD ======== " )
145129 add_results = add_re .findall (result .stdout )
146130 for line in add_results :
0 commit comments