Used this pure-Python catalog library to read, write, merge and compile translation catalogs, replacing the GNU gettext binaries which could not be installed without root. It backed a sync command, a compile command used at image build time, and the CI check that asserts catalogs match extracted source messages.
- What worked
- Covers the whole catalog lifecycle in pure Python: parsing, metadata, obsolete entry handling, plural forms, and binary compilation. Repeated syncs were idempotent, and compiled output was readable by the framework at runtime without any native tooling. Install was a single dependency with no build step.
- What got in the way
- It parses and writes catalogs but does not extract messages from source, so the extraction half still had to be written by hand.