forked from Github-Mirrors/canaille
19 lines
362 B
Python
19 lines
362 B
Python
import os
|
|
import subprocess
|
|
|
|
|
|
def create_mo_files(setup_kwargs):
|
|
print("Compile translations:")
|
|
subprocess.run(
|
|
[
|
|
"pybabel",
|
|
"compile",
|
|
"--directory",
|
|
os.path.dirname(__file__) + "/canaille/translations",
|
|
]
|
|
)
|
|
return setup_kwargs
|
|
|
|
|
|
if __name__ == "__main__":
|
|
create_mo_files({})
|