Translate PO and POT Files Automatically with AI

Translate PO and POT files with AI in minutes. Upload your file and download .po and .mo translations for WordPress plugins and themes.

How to Translate PO Files and POT Files Online 

Step 1: Create a PTC Account

Create a free PTC account and select the Manual File Upload option during project setup. This method allows you to upload .pot files and download translated .po and .mo files.

Step 2: Configure AI Translation Settings

Next, go through the setup wizard to:

  • Tell PTC what your WordPress theme or plugin is about, so it can generate human-quality translations
  • Select target languages 
  • Upload .pot files
  • Select output files you want to receive. By default, PTC creates .po files, but you can also configure PTC to create .mo files, .l10n.php files, and .json files
  • Add terms to your glossary (optional)

Step 3: Download Translation Files

Once PTC finishes translating:

  1. Go to the Translations tab to review all translated strings. 
  2. Go to the Resource Files tab to download your translation files as a ZIP archive

Loading Translation Files in WordPress

After downloading your translated .po and .mo files from PTC, you need to load them in your WordPress plugin or theme.

You have two options: bundle the translations with your plugin/theme, or import them to WordPress.org (if your project is hosted there).

Option 1

Bundle translations with your plugin or theme (recommended)

  • Place .po and .mo files in your /languages/ directory
  • Add load_plugin_textdomain() or load_theme_textdomain() calls to load the text domain (see the PHP commit and JavaScript commit in our demo plugin repository)

Option 2

Import translations to WordPress.org

  • Create a CLPTE (Cross-Locale Project Translation Editor) account on WordPress.org
  • Wait around 4-6 days for approval
  • Import the translated files to your plugin or theme’s translation project page

See our complete guide on loading WordPress translations for step-by-step instructions and comparisons of both options.

Automating Translations

Once you’ve translated your first PO or POT file manually, you can automate the entire process so translations stay up-to-date as your code changes. PTC gives you two options:

Automate with Git Integration

Connect your GitHub, GitLab, or Bitbucket repository to PTC:

  1. Select the repository and branches you want PTC to monitor
  2. Define the output paths for your .pot files.
  3. When PTC detects changes, it automatically translates updated strings
  4. Translations are delivered back to your repository via merge request


Automate with the PTC API

If you prefer not to connect your repository directly, integrate translations into your CI/CD pipeline:

  1. Use the PTC API to upload your .pot files automatically when your build pipeline generates them
  2. PTC translates the files and returns .po and .mo files in the API response
  3. Your CI system saves the translated files as artifacts or commits them back to your repository


FAQ: WordPress POT and PO File Translation

Using placeholders also prevents variables from being translated as text. PTC automatically detects and preserves placeholders during translation.

Learn more about how PTC handles placeholders.

Start Translating Your PO/POT Files

Upload your file, select languages, and download translated .po and .mo files in minutes.

Scroll to Top