ci: add update linguas

This commit is contained in:
0xMRTT 2022-08-13 18:59:06 +02:00
parent 099ebe61ed
commit bf43397cab
No known key found for this signature in database
GPG key ID: AC9E06BF3DECB6FB

15
po/update_linguas.py Normal file
View file

@ -0,0 +1,15 @@
import os
def list_po():
files = []
for _, _, filesname in os.walk("po"):
for file in filesname:
if file.endswith(".po"):
files.append(file.strip(".po"))
return files
with open("LINGUAS", "w") as file:
po = "\n".join(list_po())
file.write(po)