diff --git a/clean_translations.py b/clean_translations.py new file mode 100644 index 000000000..a0d2893e4 --- /dev/null +++ b/clean_translations.py @@ -0,0 +1,16 @@ +import os + + +files_in_main = [] + + +for i in os.listdir("_pages/en_US/"): + files_in_main.append(i) + +for i in os.listdir("_pages/"): + if i == "en_US": + continue + for j in os.listdir(f"_pages/{i}"): + if j not in files_in_main: + print(f"Deleting _pages/{i}/{j}") + os.remove(f"_pages/{i}/{j}")