fix autofix locale format path

This commit is contained in:
Kay0u 2022-01-20 19:27:00 +01:00
parent 7ee5565a83
commit cf97136237
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

View file

@ -89,11 +89,11 @@ def autofix_orthotypography_and_standardized_words():
def reformat(lang, transformations):
locale = open(f"../locales/{lang}.json").read()
locale = open(f"{LOCALE_FOLDER}{lang}.json").read()
for pattern, replace in transformations.items():
locale = re.compile(pattern).sub(replace, locale)
open(f"../locales/{lang}.json", "w").write(locale)
open(f"{LOCALE_FOLDER}{lang}.json", "w").write(locale)
######################################################