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:
.po
in git and have an automatic compilation from
.po
to .mo
in the deployment process?.po
and .mo
(maybe with a precommit hook for
automatic compilation)?It is generally considered bad practice to version files that can be generated from the files already versioned, especially when those output files are binaries. It clutters the history with files Git is unable to version efficiently.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With