mirror of
https://github.com/GradienceTeam/Gradience.git
synced 2024-07-05 02:37:51 +00:00
ci: add update linguas
This commit is contained in:
parent
099ebe61ed
commit
bf43397cab
15
po/update_linguas.py
Normal file
15
po/update_linguas.py
Normal 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)
|
||||||
|
|
Loading…
Reference in a new issue