forked from Github-Mirrors/canaille
generate compiled translations (.mo files) when the package is built
This commit is contained in:
parent
38401005e7
commit
ee2135963e
1 changed files with 10 additions and 0 deletions
10
build.py
Normal file
10
build.py
Normal 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({})
|
Loading…
Reference in a new issue