I've just discovered the .po
and .mo
files with Django.
They are used for internationalization and localization.
It looks like .po
are plain text files whereas .mo
are optimized byte compiled files from .po
.
Process is always compiling to .mo
after editing .po
files.
What is the best option:
- Versionning only
.po
in git and have an automatic compilation from.po
to.mo
in the deployment process? - Versionning both
.po
and.mo
(maybe with a precommit hook for automatic compilation)?