generate compiled translations (.mo files) when the package is built

This commit is contained in:
Stéphane Blondon 2022-05-14 18:37:39 +02:00
parent 38401005e7
commit ee2135963e

10
build.py Normal file
View file

@ -0,0 +1,10 @@
import subprocess
def create_mo_files(setup_kwargs):
print("Compile translations:")
subprocess.run(["pybabel", "compile", "--directory", "canaille/translations"])
return setup_kwargs
if __name__ == "__main__":
create_mo_files({})