DEV Community

Cover image for My single shell-command to automate the Django translation workflow
Daniel Lindholm
Daniel Lindholm

Posted on

My single shell-command to automate the Django translation workflow

I looked for an easy way to translate my Django projects with a single command, but eventually ended up building a CLI tool for it. In my shell the translation workflow now looks like this:

Image description

The command pofile populate locates the PO files in the current project and translates them using https://pofile.io as backend. I check the translations using a simple "git diff".

The command is made available by installing pofile-cli (pip install pofile-cli).
The API key can be obtained for free at https://pofile.io

I'd be keen to get feedback on the CLI tool, so feel free get in touch if you find it useful.

Top comments (0)