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)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Discover a treasure trove of wisdom within this insightful piece, highly respected in the nurturing DEV Community enviroment. Developers, whether novice or expert, are encouraged to participate and add to our shared knowledge basin.

A simple "thank you" can illuminate someone's day. Express your appreciation in the comments section!

On DEV, sharing ideas smoothens our journey and strengthens our community ties. Learn something useful? Offering a quick thanks to the author is deeply appreciated.

Okay