It would be great to compile translations during the package installation. We made this for our own packages. I don't know if this is the proper way to do it: https://github.com/rero/reroils-app/blob/19a09ef0425dd9fedf251d32a44dcbb442207ec8/setup.py#L11