mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
fix autofix locale format path
This commit is contained in:
parent
7ee5565a83
commit
cf97136237
1 changed files with 2 additions and 2 deletions
|
@ -89,11 +89,11 @@ def autofix_orthotypography_and_standardized_words():
|
||||||
|
|
||||||
def reformat(lang, transformations):
|
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():
|
for pattern, replace in transformations.items():
|
||||||
locale = re.compile(pattern).sub(replace, locale)
|
locale = re.compile(pattern).sub(replace, locale)
|
||||||
|
|
||||||
open(f"../locales/{lang}.json", "w").write(locale)
|
open(f"{LOCALE_FOLDER}{lang}.json", "w").write(locale)
|
||||||
|
|
||||||
######################################################
|
######################################################
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue