Back to blog
6 min read Export Guides

Export and Import Polylang Translations With CSV or Excel

The roastery’s German blog posts went to a copy editor in Berlin as a spreadsheet, and the corrected file had to come back without breaking the links between the German posts and their English and Ukrainian versions. A month later the same team needed a Ukrainian version of an article that existed only in English and German, written by a translator who works in Excel, not in WordPress. Both jobs come down to one thing: the file has to say which language each row is in and which posts belong together.

PRO: the language columns and the import that links translations are part of the PRO plugin. The free plugin exports and imports the content itself. Tested with Import Export by RockStarLab 2.2.48 and PRO 2.1.44, Polylang Pro 3.9.2, WordPress 7.1.5.

Short Answer

Go to Import Export by RockStarLab > Export, choose Blog Posts (or pages, a custom post type or WooCommerce products), add the filter Language (Polylang) if you need one language only, and keep the fields Language (Polylang) and Translation group (Polylang) in the file. Import the file with the same two columns mapped. Each row gets its language, rows of one translation group are linked, and rows that already exist are updated instead of duplicated.

Step 1: Pick the Language

An export covers all languages, even when the admin bar is set to show one. That is what you want for a full copy. For the copy editor we needed German only, so in Step 2: Filter Data we added the filter Language (Polylang), kept In these languages and chose Deutsch. The counter dropped to the 4 German posts:

Export Step 2: Filter Data with the filter Language (Polylang), condition In these languages and Deutsch selected; total items available 4
The Language (Polylang) filter: 4 German posts.

Hold Ctrl or Cmd to pick several languages, or switch the condition to Not in these languages to leave one out. The filter is also available for pages, custom post types and products, and combines with the other filters: German posts in one category, German posts changed this week.

Step 2: Keep the Language Columns

In Step 3: Select Fields, search for “Polylang”. Two fields come with PRO; drag them into the file next to the columns you need:

Export Step 3: Select Fields with ID, Title, Slug, Language (Polylang) taxonomy_language and Translation group (Polylang) taxonomy_post_translations in the file; search Polylang in Available Fields
The two Polylang columns in the export file.

The default export already includes both. In the file they look like this:

ID,post_title,post_name,taxonomy_language,taxonomy_post_translations
8264,"Espresso richtig einstellen",espresso-einstellen,de,"pll_6b042f0b53ea7 (en:dial-in-espresso, uk:nalashtuvaty-espreso)"

taxonomy_language is the language code. taxonomy_post_translations names the translation group and, in brackets, the slugs of the other languages in it. The importer uses the brackets to find those posts on a site where the group has a different name. The same two columns are in CSV, Excel, JSON, XML and ODS exports.

Step 3: Import the File Back

Open Import, choose Blog Posts, upload the file and click Auto Map. The language columns map to the Polylang fields by their names. In Import Options, check for existing items by Slug and choose Update.

The slug check stays within the row’s language. Polylang lets two languages share a slug, like our English and German pages visit, and a row in German only ever updates the German post with that slug. When we imported the same file a second time, every post was updated in place: no new copies, same languages, same translation groups.

A Translation From a Spreadsheet

For the missing Ukrainian article, the translator received the English row and returned a row like this:

post_title,post_name,post_status,post_content,taxonomy_language,taxonomy_post_translations
"Колд брю вдома",kold-briu-vdoma,publish,"<p>Залийте каву холодною водою на 12 годин.</p>",uk,"pll_6b04315ecd9d6 (en:cold-brew, de:cold-brew-2)"

The Translation group value was copied from the English row of the export. The import created a new post in Ukrainian and added it to the group of “Cold brew at home” and “Cold Brew zu Hause”, so the language switcher on the English post now offers the Ukrainian version too. A file with only one language is enough, as long as the other languages are already on the site.

Moving a Whole Multilingual Site

To copy all posts with their translations to another site, export without the language filter and import the file there. On our test site we deleted the 4 posts in three languages, imported the export, and checked every field against the source:

  • each post had its language and the same translation links as on the source;
  • categories and tags were the terms of the post’s language;
  • featured images, images in the content and ACF Image, Gallery and WYSIWYG fields used the media of the post’s language;
  • ACF Page Link and Relationship fields pointed to pages of the same language.

We ran the same test with CSV, Excel, JSON and XML files, with the same result. Set up the languages in Polylang on the receiving site before the import. Comments travel in their own file: export Comments and import them after the posts; they attach to the post of the right language, and an ACF image on a comment uses the file of that language.

For categories and tags, the Taxonomy Terms export has the same two columns, so a term file keeps “Brewing”, “Zubereitung” and “Заварювання” linked.

With an AI Agent

Import Export by RockStarLab gives AI agents its exports, imports and Content Sync as abilities. Through the WordPress MCP Adapter, WordPress itself offers an agent only read-only abilities for site, user and environment information, so without the plugin the agent cannot do the steps above. With it, one request is enough:

With Import Export by RockStarLab, export the German blog posts with their language and translation group to CSV.

The agent calls rsl-ie/export-start with a filter on the language taxonomy. In our test, rsl-ie/export-count with the language filter set to uk and a title filter returned exactly the one Ukrainian post we expected, and the export file carried the taxonomy_language and taxonomy_post_translations columns. The import goes through rsl-ie/import-start with the same mapping as in the wizard.

Before You Import

An import with Update overwrites the matching posts. Back up the site before importing a file that someone else edited, and import a file with two or three rows first.

FAQ

How do I export only one Polylang language?

Add the filter Language (Polylang) in Step 2 of the export and choose the language. Without the filter, the export includes every language.

Yes, with PRO. Rows with the same Translation group are linked, and the slugs in brackets link a row to translations that are already on the site.

Can a translator send back only the new language?

Yes. A file with rows in one language is linked to the existing posts named in its Translation group column.

What happens to two languages that use the same slug?

The import looks for an existing post only in the row’s language, so each row updates its own post.

Get the free plugin on WordPress.org. The Polylang columns are part of PRO.

Dmitriy
About author

Dmitriy

WordPress Developer with 15+ years of commercial experience. Elite Author on ThemeForest and creator of custom WordPress plugins. Passionate about clean code, performance optimization, and building useful tools for the WordPress community.

JOIN THE CONVERSATION

Comments 0

Have a question or a tip to share? Leave it below.

Leave a comment

Your email address will not be published. Required fields are marked *

We store your name, email and comment to show and moderate it; your email is never published. Spam protection is provided by Cloudflare Turnstile and profile pictures by Gravatar. See our Privacy Policy.


Try the plugin with no risks!

New users get 1 month with access to all premium features. Experience the most powerful WordPress data engine today.

Download Now
Get PRO for FREE