Adds an auto-translate button to configured localized fields when editing a non-default locale in the Payload admin. It fetches the content from the primary locale, sends it to OpenAI for translation, and fills the current locale's field. Requires Payload 3.37 or higher, localization enabled in the config, and an OpenAI API key.
AI-powered localization plugin for Payload CMS using OpenAI
Installation
npm i payload-plugin-ai-localization26
Stars
1
Forks
1
Open Issues
1 years ago
Last Updated
36
Weekly Downloads
v1.0.3
npm Version
50.7 KB
Unpacked Size
2
Dependencies
260 since Sep 6
| Date | Stars |
|---|---|
| Dec 5, 2026 | 26 |
| Dec 4, 2026 | 26 |
| Dec 3, 2026 | 26 |
| Dec 2, 2026 | 26 |
| Dec 1, 2026 | 26 |
| Nov 30, 2026 | 26 |
| Nov 29, 2026 | 26 |
| Nov 28, 2026 | 26 |
| Nov 27, 2026 | 26 |
| Nov 26, 2026 | 26 |
| Nov 25, 2026 | 26 |
| Nov 24, 2026 | 26 |
| Nov 23, 2026 | 26 |
| Nov 22, 2026 | 26 |
| Nov 21, 2026 | 26 |
| Nov 20, 2026 | 26 |
| Nov 19, 2026 | 26 |
| Nov 18, 2026 | 26 |
| Nov 17, 2026 | 26 |
| Nov 16, 2026 | 26 |
| Nov 15, 2026 | 26 |
| Nov 14, 2026 | 26 |
| Nov 13, 2026 | 26 |
| Nov 12, 2026 | 26 |
| Nov 11, 2026 | 26 |
| Nov 10, 2026 | 26 |
| Nov 9, 2026 | 26 |
| Nov 8, 2026 | 26 |
| Nov 7, 2026 | 26 |
| Nov 6, 2026 | 26 |
| Nov 5, 2026 | 26 |
| Nov 4, 2026 | 26 |
| Nov 3, 2026 | 26 |
| Nov 2, 2026 | 26 |
| Nov 1, 2026 | 26 |
| Oct 31, 2026 | 26 |
| Oct 30, 2026 | 26 |
| Oct 29, 2026 | 26 |
| Oct 28, 2026 | 26 |
| Oct 27, 2026 | 26 |
| Oct 26, 2026 | 26 |
| Oct 25, 2026 | 26 |
| Oct 24, 2026 | 26 |
| Oct 23, 2026 | 26 |
| Oct 22, 2026 | 26 |
| Oct 21, 2026 | 26 |
| Oct 20, 2026 | 26 |
| Oct 19, 2026 | 26 |
| Oct 18, 2026 | 26 |
| Oct 17, 2026 | 26 |
| Oct 16, 2026 | 26 |
| Oct 15, 2026 | 26 |
| Oct 14, 2026 | 26 |
| Oct 13, 2026 | 26 |
| Oct 12, 2026 | 26 |
| Oct 11, 2026 | 26 |
| Oct 10, 2026 | 26 |
| Oct 9, 2026 | 26 |
| Oct 8, 2026 | 26 |
| Oct 7, 2026 | 26 |
| Oct 6, 2026 | 26 |
| Oct 5, 2026 | 26 |
| Oct 4, 2026 | 26 |
| Oct 3, 2026 | 26 |
| Oct 2, 2026 | 26 |
| Oct 1, 2026 | 26 |
| Sep 30, 2026 | 26 |
| Sep 29, 2026 | 26 |
| Sep 28, 2026 | 26 |
| Sep 27, 2026 | 26 |
| Sep 26, 2026 | 26 |
| Sep 25, 2026 | 26 |
| Sep 24, 2026 | 26 |
| Sep 23, 2026 | 26 |
| Sep 22, 2026 | 26 |
| Sep 21, 2026 | 26 |
| Sep 20, 2026 | 26 |
| Sep 19, 2026 | 26 |
| Sep 18, 2026 | 26 |
| Sep 17, 2026 | 26 |
| Sep 16, 2026 | 26 |
| Sep 15, 2026 | 26 |
| Sep 14, 2026 | 26 |
| Sep 13, 2026 | 26 |
| Sep 12, 2026 | 26 |
| Sep 11, 2026 | 26 |
| Sep 10, 2026 | 26 |
| Sep 9, 2026 | 26 |
| Sep 8, 2026 | 26 |
| Sep 7, 2026 | 26 |
| Sep 6, 2026 | 26 |
20+11 since Sep 6
| Date | Weekly downloads |
|---|---|
| Dec 5, 2026 | 20 |
| Dec 4, 2026 | 23 |
| Dec 3, 2026 | 24 |
| Dec 2, 2026 | 22 |
| Dec 1, 2026 | 29 |
| Nov 30, 2026 | 34 |
| Nov 29, 2026 | 44 |
| Nov 28, 2026 | 44 |
| Nov 27, 2026 | 40 |
| Nov 26, 2026 | 35 |
| Nov 25, 2026 | 50 |
| Nov 24, 2026 | 45 |
| Nov 23, 2026 | 38 |
| Nov 22, 2026 | 32 |
| Nov 21, 2026 | 36 |
| Nov 20, 2026 | 49 |
| Nov 19, 2026 | 54 |
| Nov 18, 2026 | 43 |
| Nov 17, 2026 | 40 |
| Nov 16, 2026 | 44 |
| Nov 15, 2026 | 39 |
| Nov 14, 2026 | 33 |
| Nov 13, 2026 | 21 |
| Nov 12, 2026 | 49 |
| Nov 11, 2026 | 45 |
| Nov 10, 2026 | 51 |
| Nov 9, 2026 | 47 |
| Nov 8, 2026 | 54 |
| Nov 7, 2026 | 56 |
| Nov 6, 2026 | 54 |
| Nov 5, 2026 | 59 |
| Nov 4, 2026 | 62 |
| Nov 3, 2026 | 64 |
| Nov 2, 2026 | 68 |
| Nov 1, 2026 | 66 |
| Oct 31, 2026 | 66 |
| Oct 30, 2026 | 70 |
| Oct 29, 2026 | 32 |
| Oct 28, 2026 | 29 |
| Oct 27, 2026 | 23 |
| Oct 26, 2026 | 19 |
| Oct 25, 2026 | 14 |
| Oct 24, 2026 | 19 |
| Oct 23, 2026 | 13 |
| Oct 22, 2026 | 19 |
| Oct 21, 2026 | 24 |
| Oct 20, 2026 | 24 |
| Oct 19, 2026 | 22 |
| Oct 18, 2026 | 22 |
| Oct 17, 2026 | 17 |
| Oct 16, 2026 | 18 |
| Oct 15, 2026 | 14 |
| Oct 14, 2026 | 9 |
| Oct 13, 2026 | 12 |
| Oct 12, 2026 | 12 |
| Oct 11, 2026 | 16 |
| Oct 10, 2026 | 25 |
| Oct 9, 2026 | 26 |
| Oct 8, 2026 | 24 |
| Oct 7, 2026 | 24 |
| Oct 6, 2026 | 22 |
| Oct 5, 2026 | 23 |
| Oct 4, 2026 | 21 |
| Oct 3, 2026 | 28 |
| Oct 2, 2026 | 73 |
| Oct 1, 2026 | 74 |
| Sep 30, 2026 | 78 |
| Sep 29, 2026 | 90 |
| Sep 28, 2026 | 91 |
| Sep 27, 2026 | 92 |
| Sep 26, 2026 | 116 |
| Sep 25, 2026 | 148 |
| Sep 24, 2026 | 189 |
| Sep 23, 2026 | 190 |
| Sep 22, 2026 | 178 |
| Sep 21, 2026 | 180 |
| Sep 20, 2026 | 177 |
| Sep 19, 2026 | 136 |
| Sep 18, 2026 | 61 |
| Sep 17, 2026 | 35 |
| Sep 16, 2026 | 33 |
| Sep 15, 2026 | 29 |
| Sep 14, 2026 | 27 |
| Sep 13, 2026 | 27 |
| Sep 12, 2026 | 28 |
| Sep 11, 2026 | 25 |
| Sep 10, 2026 | 10 |
| Sep 9, 2026 | 8 |
| Sep 8, 2026 | 8 |
| Sep 7, 2026 | 10 |
| Sep 6, 2026 | 9 |
Each point is npm's rolling 7-day download count.
Health Score
Composite score based on GitHub activity, stars, npm downloads, publish recency, dependency count, and package size.
Badge for your README
[](https://payloaddirectory.dev/plugins/1000565815-root)<a href="https://payloaddirectory.dev/plugins/1000565815-root"><img src="https://payloaddirectory.dev/badge/1000565815-root.svg" alt="Payload Directory"></a>README
A Payload CMS plugin that provides AI-powered content translation using OpenAI, designed to work seamlessly with Payload's built-in localization system.
npm install payload-plugin-ai-localization
First, ensure your Payload config has localization enabled:
import { buildConfig } from 'payload'
import { aiLocalization } from 'payload-plugin-ai-localization'
export default buildConfig({
// ... other config
localization: {
locales: ['en', 'de', 'fr', 'es'], // Configure your supported locales
defaultLocale: 'en', // Set your default locale
},
plugins: [
aiLocalization({
openai: {
apiKey: process.env.OPENAI_API_KEY, // Your OpenAI API key
model: 'gpt-4.1-nano', // Optional: specify the model (defaults to gpt-4.1-nano)
},
collections: {
posts: {
fields: ['title', 'excerpt', 'content'], // Fields that should have auto-translate buttons
},
pages: {
fields: ['title', 'description'],
},
},
}),
],
})
Make sure to set your OpenAI API key in your environment variables of PayloadCMS:
OPENAI_API_KEY=your_openai_api_key_here
The plugin integrates with Payload's native localization system by:
text - Single line text fieldstextarea - Multi-line text fieldsrichText - Rich text editor fields (preserves formatting)The plugin adds these endpoints to your Payload app:
POST /api/ai-localization/translate-bulk - Translates content between localesMIT
Contributions are welcome! Please read the contributing guidelines before submitting PRs.
For issues and questions:
Note: This plugin requires Payload CMS v3.37.0 or higher and an OpenAI API key.
Topics
payload plugin translator
AI translation of localized fields in collections and globals, saved as drafts without overwriting hand-edited text
74356/wk1v3
payload plugin translator
Translate localized Payload content with an AI provider from the admin panel via background jobs
713.9k/wk37v3
translator
Translate localized Payload content from the admin or Local API using Google, OpenAI, LibreTranslate or custom resolvers
541.5k/wk335v3
payload plugin polyglot
Automatic content translation on publish and in sweeps, with translation memory and protection for human-reviewed text
68836/wk0v3
payload auto translate
Automatic content translation for localized Payload collections using a LibreTranslate instance
6348/wk2v3
Payload Supertext Translation
Translate localized Payload collections and globals with Supertext AI, plus XLIFF and HTML export and import
250v3