Skip to content

Extract the compile functionality into an API function #760

Open

Description

@bartfeenstra

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

Activity

  1. akx commented on Jan 25, 2022

    @akx
    Member

    PR welcome!

  2. azmeuk commented on Jun 16, 2023

    @azmeuk

    PR welcome!

    @akx Have you expectations on how this should be done? Just extracting the logic from the Command object in babel/messages/frontend.py is enough? Should the PR also do this for all the other commands in the file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions