Catalogs can currently only be compiled using the command line. To allow applications to leverage Babel to compile translations themselves, the relevant code can be extracted from babel.messages.frontend.compile_catalog() into its own API function, separating it from the command line.
Right now this has to be done by invoking the Babel command line, like in bartfeenstra/betty#619
Catalogs can currently only be compiled using the command line. To allow applications to leverage Babel to compile translations themselves, the relevant code can be extracted from
babel.messages.frontend.compile_catalog()into its own API function, separating it from the command line.Right now this has to be done by invoking the Babel command line, like in bartfeenstra/betty#619