<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Daniel Lindholm</title>
    <description>The latest articles on DEV Community by Daniel Lindholm (@jdlindholm).</description>
    <link>https://dev.to/jdlindholm</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2131534%2F30437277-79c4-4ea4-a6cf-ff6e815b760e.jpg</url>
      <title>DEV Community: Daniel Lindholm</title>
      <link>https://dev.to/jdlindholm</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jdlindholm"/>
    <language>en</language>
    <item>
      <title>My single shell-command to automate the Django translation workflow</title>
      <dc:creator>Daniel Lindholm</dc:creator>
      <pubDate>Thu, 03 Oct 2024 19:02:41 +0000</pubDate>
      <link>https://dev.to/jdlindholm/my-single-shell-command-to-automate-the-django-translation-workflow-5bp8</link>
      <guid>https://dev.to/jdlindholm/my-single-shell-command-to-automate-the-django-translation-workflow-5bp8</guid>
      <description>&lt;p&gt;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:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F49xil4m5i7h2fv6xfs0p.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F49xil4m5i7h2fv6xfs0p.gif" alt="Image description" width="640" height="356"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The command &lt;code&gt;pofile populate&lt;/code&gt; locates the PO files in the current project and translates them using &lt;a href="https://pofile.io" rel="noopener noreferrer"&gt;https://pofile.io&lt;/a&gt; as backend. I check the translations using a simple "git diff".&lt;/p&gt;

&lt;p&gt;The command is made available by installing &lt;a href="https://pypi.org/project/pofile-cli/" rel="noopener noreferrer"&gt;pofile-cli&lt;/a&gt; (&lt;code&gt;pip install pofile-cli&lt;/code&gt;).&lt;br&gt;
The API key can be obtained for free at &lt;a href="https://pofile.io" rel="noopener noreferrer"&gt;https://pofile.io&lt;/a&gt;&lt;/p&gt;

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

</description>
      <category>django</category>
      <category>localization</category>
      <category>webdev</category>
      <category>shell</category>
    </item>
  </channel>
</rss>
