supertext

Payload Supertext Translation

by supertext
Translation
v3
^3.0.0
MIT

Overview

Summary generated from the README

Adds a Translate button to localized collections and globals in the Payload admin. It sends localized text, textarea and Lexical rich text fields to Supertext and saves the results into the chosen locales, as drafts when drafts are enabled. It requires a Supertext account and an API key set as an environment variable, and supports Payload 3.

Features

  • Translate button with target language selection on configured collections and globals
  • Handles text, textarea and Lexical rich text fields, including inside groups, tabs, arrays and blocks
  • Preserves formatting and links in rich text
  • Saves translations as drafts for review when drafts are enabled
  • Export documents as XLIFF 1.2 or HTML and import translated files with an import summary
  • Maps each Payload locale to a Supertext language in admin settings or through a config option

Use cases

  • Translate pages and posts into several locales in one step from the document header
  • Send content to external translation tools through XLIFF and import the finished files
  • Review machine translations as drafts before publishing a multilingual site

From the author

Supertext AI translation for Payload CMS 3 localized collections and globals

Installation

npm i payload-supertext-translation

0

Stars

0

Forks

1

Open Issues

Yesterday

Last Updated

0

Weekly Downloads

v

npm Version

Dependencies

GitHub stars

00 since Oct 4

Show data
GitHub stars by day (UTC)
DateStars
Dec 6, 20260
Dec 5, 20260
Dec 4, 20260
Dec 3, 20260
Dec 2, 20260
Dec 1, 20260
Nov 30, 20260
Nov 29, 20260
Nov 28, 20260
Nov 27, 20260
Nov 26, 20260
Nov 25, 20260
Nov 24, 20260
Nov 23, 20260
Nov 22, 20260
Nov 21, 20260
Nov 20, 20260
Nov 19, 20260
Nov 18, 20260
Nov 17, 20260
Nov 16, 20260
Nov 15, 20260
Nov 14, 20260
Nov 13, 20260
Nov 12, 20260
Nov 11, 20260
Nov 10, 20260
Nov 9, 20260
Nov 8, 20260
Nov 7, 20260
Nov 6, 20260
Nov 5, 20260
Nov 4, 20260
Nov 3, 20260
Nov 2, 20260
Nov 1, 20260
Oct 31, 20260
Oct 30, 20260
Oct 29, 20260
Oct 28, 20260
Oct 27, 20260
Oct 26, 20260
Oct 25, 20260
Oct 24, 20260
Oct 23, 20260
Oct 22, 20260
Oct 21, 20260
Oct 20, 20260
Oct 19, 20260
Oct 18, 20260
Oct 17, 20260
Oct 16, 20260
Oct 15, 20260
Oct 14, 20260
Oct 13, 20260
Oct 12, 20260
Oct 11, 20260
Oct 10, 20260
Oct 9, 20260
Oct 8, 20260
Oct 7, 20260
Oct 6, 20260
Oct 5, 20260
Oct 4, 20260
npm weekly downloads

Trends appear after 7 days of data. Daily snapshots have not started yet.

Each point is npm's rolling 7-day download count.

Health Score

25/100Fair

Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.

Badge for your README

Payload Directory health badge
Markdown
[![Payload Directory](https://payloaddirectory.dev/badge/1404773974-root.svg)](https://payloaddirectory.dev/plugins/1404773974-root)
HTML
<a href="https://payloaddirectory.dev/plugins/1404773974-root"><img src="https://payloaddirectory.dev/badge/1404773974-root.svg" alt="Payload Directory"></a>
Updated Dec 5, 2026Created Oct 4, 2026

README

Payload Supertext Translation

AI translation for Payload CMS 3 by Supertext. Adds a Translate button to your localized collections and globals: pick target languages, and the plugin sends the document's localized fields to Supertext and saves the translations into those locales — as drafts for review when drafts are enabled.

Demo: a Payload page in English, Translate with German and French ticked, Translate into 2, and the German version of the page as a draft

import { supertextTranslation } from 'payload-supertext-translation'

plugins: [supertextTranslation({ collections: ['pages', 'posts'], globals: ['header'] })]

Translates localized text, textarea and Lexical richText fields, including inside groups, tabs, arrays and blocks. Formatting and links in rich text are preserved.

Translation files: Export for translation downloads a document as XLIFF 1.2 (for translation tools) or HTML; Import translation writes the translated file back, with a summary of what was imported.

Live demo: https://payload-production-cfd2.up.railway.app (admin at /admin, credentials from the Supertext team)

Requirements: a Supertext account (create one or log in) and an API key from supertext.com → Integrations → API (requires the Admin role), set as SUPERTEXT_API_KEY. Each Payload locale's Supertext language is chosen in the admin under Supertext → Supertext settings (one combo box per locale, preselected: de → de-DE, en → en-US, de-CH stays de-CH); the languageMap option can override it for automated setups.

The plugin checks the API key automatically and, unless you turn it off (versionReports: false or SUPERTEXT_VERSION_REPORTS=0), sends version information to Supertext: the site URL and the plugin, Payload, Node.js and SDK versions — no content, no API key, no personal data. See the Installation guide.

Export for translation and import (XLIFF and HTML)

Besides translating with Supertext AI, you can export a document as a file, have it translated elsewhere and import the result.

  • Where: the Export for translation and Import translation tabs of the Translate dialog in the document header.
  • Formats: XLIFF 1.2 for translation tools such as Trados, memoQ or Phrase (formatting travels as protected tags; several target languages in one file), or HTML (one language per file) for translators or Supertext's web app, which keeps the file's head and data-st-id attributes, so the translated file imports as it is.
  • Import: the file says what it was exported from and for which language. The translations are written with the same rules as a Supertext AI translation, and a summary shows what was imported and what was skipped: source changed since the export (import those anyway with Also import texts whose source changed since the export), not translated, formatting changed, not in the file.
  • Safe: files over 10 MB, files from another system and translations that add markup the source doesn't have are refused; uploaded files aren't stored.

Details: user guide.

Guides

  • Installation guide — requirements, install, API key, languages, all settings, troubleshooting
  • User guide — translating and reviewing in the admin panel
  • Developer guide — architecture, Supertext API protocol, tests, releasing, roadmap

Part of Supertext's translation plugins for open source CMSs. See also the WordPress plugin and the Drupal module.

Changelog · MIT licensed

Supertext plugins for other systems

Supertext offers AI and professional translation plugins for these systems:

Content management systems (CMS)

SystemPluginType of integrationWhat it does
Adobe Experience Managersupertext-aem-connectorTranslation connector: two AEM content packages for AEM's Translation Integration Framework.Sends AEM translation projects to Supertext and imports the results
ApostropheCMSApostrophe-Supertext-TranslationApostrophe module (npm): a translation provider for Apostrophe's own Localize… step.Translates pages and pieces as editors localize them, widgets and rich text included
ContaoContao-Supertext-TranslationContao bundle (Composer) that adds a back-end action.Translate with Supertext in the site structure: pages or whole websites into other languages
Craft CMSCraftCms-Supertext-TranslationCraft plugin (Composer) with a Supertext box on the edit page.Translates entries, categories, global sets and assets into your other sites, Matrix, CKEditor and SEOmatic included
DirectusDirectus-Supertext-TranslationDirectus extension bundle (npm): interface, endpoint, Flow operation and module.Translate with Supertext box on the item form, fills the Translations field
django CMSdjangoCMS-Supertext-TranslationDjango app (Python package) that adds a toolbar entry.Translates pages and their plugins from the toolbar
Drupaltmgmt_supertext_aiDrupal module: a translator provider for the Translation Management Tool (TMGMT), by MD Systems.Translates TMGMT jobs with Supertext AI
Drupal (API v2)Drupal-Supertext-Translation-v2Drupal module (Composer): a provider for the Translation Management Tool (TMGMT) on Supertext's API v2, results delivered by callback.In development: AI translation, Verification and Optimisation of TMGMT jobs
GhostGhost-Supertext-TranslationSeparate connector service (Ghost has no admin plugins): works through internal tags, webhooks and the Admin API.Tag a post #translate-… and a translated draft appears
GravGrav-Supertext-TranslationGrav 2 plugin with an Admin2 panel.Supertext panel in the page editor, Markdown kept intact
HubSpotHubSpot-Supertext-TranslationHosted app connected to HubSpot with OAuth, working through HubSpot's multi-language content.Translates website and landing pages, blog posts, marketing emails and knowledge base articles into draft language versions
JoomlaJoomla-Supertext-TranslationJoomla system plugin (installable package).Translates articles into linked, unpublished language versions
MagnoliaMagnolia-Supertext-TranslationMagnolia module with a Translate with Supertext action in the Pages app.Translates pages, areas and components into the site's other languages
NeosNeos-Supertext-TranslationNeos package (Composer) that hooks into the content repository, with a Supertext backend module for translation files.Translates automatically when an editor creates a page in another language
Orchard CoreOrchardCore-Supertext-TranslationOrchard Core module (.NET) with an admin page and a localization hook.Translates content items into other cultures, on demand or on localization
Payload CMSPayload-Supertext-TranslationPayload plugin (npm) added to payload.config.Translate button for localized collections and globals
SilverstripeSilverstripe-Supertext-TranslationSilverstripe module (Composer) on top of Fluent.Supertext tab translates pages and Elemental blocks into Fluent locales
StrapiStrapi-Supertext-TranslationStrapi 5 plugin (npm) with a Content Manager panel.Translates entries into other locales from the Content Manager
TYPO3Typo3-Supertext-TranslationTYPO3 extension (Composer) that hooks into TYPO3's own localization, with a Supertext backend module for translation files.Translates pages and content elements as editors localize them
UmbracoUmbraco-Supertext-TranslationUmbraco package (NuGet) with a backoffice extension.Translate with Supertext for pages, block lists and grids included
WagtailWagtail-Supertext-TranslationPython package: a machine translator for wagtail-localize.Translates pages and snippets inside wagtail-localize's editor
WordPress (Polylang)Wordpress-Polylang-Supertext-TranslationWordPress plugin: a machine-translation service for Polylang Pro, plus professional translation orders.AI translation next to DeepL in Polylang, and human translation orders
WordPress (WPML)Wordpress-WPML-Supertext-TranslationWordPress plugin for WPML, with bulk actions in the posts and pages lists and a Supertext box in the editor.AI translation into your WPML languages, professional translation orders and XLIFF/HTML translation files

Product information management (PIM)

SystemPluginType of integrationWhat it does
Akeneo PIMAkeneo-Supertext-TranslationAkeneo PIM bundle with a Translate with Supertext action on the product page.Translates products and product models into your other locales
AtroPIMAtroPIM-Supertext-TranslationAtroCore module with a button on the product and a mass action in the list.Translates products and other AtroCore records into your other languages
PimcorePimcore-Supertext-TranslationPimcore bundle (Composer) with a Translate with Supertext button in Pimcore Studio.Translates documents into linked language versions and data objects' localized fields

E-commerce

SystemPluginType of integrationWhat it does
MagentoMagento-Supertext-TranslationMagento 2 module (also Mage-OS) with a mass action in the admin lists and a button on the edit pages.Translates products, categories, CMS pages and blocks into your store views' languages
PrestaShopPrestaShop-Supertext-TranslationPrestaShop module with a bulk action in the back-office lists.Translates products, categories and CMS pages into your shop's other languages
ShopifyShopify-Supertext-TranslationShopify app in the Shopify admin.Translates products, collections, pages and blog posts into all your shop's languages
WixWix-Supertext-TranslationWix app with a dashboard page (hosted service), working through Wix Multilingual.In development: translates Wix Stores products and other Wix Multilingual content into your site's languages

Email marketing

SystemPluginType of integrationWhat it does
MailchimpMailchimp-Supertext-TranslationHosted app connected to Mailchimp with OAuth: Supertext folders in Mailchimp and a translate page.In development: turns a campaign into one draft per language, each sent to the subscribers with that language

Design files (XLIFF round trip)

ApplicationPluginType of integrationWhat it does
Adobe InDesignAdobe-InDesign-TranslationInDesign scripts (ExtendScript).Exports all text to XLIFF 1.2 for any CAT tool and imports the translations with formatting intact
Adobe IllustratorAdobe-Illustrator-TranslationIllustrator scripts (ExtendScript).Exports all text to XLIFF 1.2 for any CAT tool and imports the translations with formatting intact
CorelDRAWCorelDRAW-Supertext-TranslationCorelDRAW VBA macro.Exports all text to XLIFF 1.2 for any CAT tool and imports the translations with formatting intact

Support

Questions, problems or ideas? Use the Supertext support form: describe what happened and you get an answer by email, in your language. Requests are tracked as issues in this repository, without your name and email address. Developers are welcome to open issues and pull requests here directly. Security issues: see SECURITY.md.

Similar plugins