Repository navigation
v0.1.0
Pre-release
Pre-release
Pre-release. Install and setup: installation guide.
What's in 0.1.0
Changed
- Where the API key is set up (installation guide, README,
apiKeyoption docs, demo.env.example) and in the "No Supertext API key is configured" server error, administrators now get links to create a Supertext account and to generate the API key at supertext.com → Integrations → API (requires the Admin role).
Fixed
- Rich text is translated a whole paragraph at a time with formatting and links as inline tags, instead of one piece per formatted run. Sentences that contain bold text or links now translate naturally.
- Translating into several locales at once no longer fails with Too many requests: requests that hit Supertext's per-second rate limit are retried automatically.
- The API key now works whether it is entered with or without the
Supertext-Auth-Keyprefix Supertext shows it with.
Added
- Payload 3 plugin
supertextTranslation()for collections and globals. - Translate control in the edit view: translate the saved document from the current locale into one or more locales.
- Translation of localized
text(incl.hasMany),textareaand LexicalrichTextfields, also inside groups, rows, collapsibles, tabs, arrays and blocks (incl.blockReferences). Rich-text formatting and links are preserved. - Translations are saved as drafts when the collection/global has drafts enabled (
saveAsDraft, defaulttrue). - Endpoints
GET /api/supertext/statusandPOST /api/supertext/translate, enforcing login, theaccessoption and collection/global access. - Supertext AI file translation API v1 client (live/staging/testing environments, custom
apiUrl). - Options:
languageMap,politeness,skipFieldNames(defaultslug), per-field opt-out viacustom: { supertext: false },pollIntervalMs,timeoutMs,disabled. - Installation, user and developer guides; CI on Node 20 and 22.
- Demo Payload site in
demo/(Pages + Header, four Swiss locales, sample content, Postgres) with a Dockerfile for the Railway demo. - Docs: screenshots in the user and installation guides (Translate control, result, rich text, locales), regenerated with
test/docs/screenshots.mjs. - Demo: accounts from
DEMO_ADMIN_*andDEMO_EDITOR_*variables, created on every start if missing (PAYLOAD_ADMIN_*still work). - Docs: how to publish one language at a time (
defaultLocalePublishOption: 'active'), since Payload's default Publish releases all languages' drafts.