payloadcms avatar

Generate Translations

This automates translation generation for Payload CMS projects, handling both core packages and plugins. It walks you through adding English keys to the right files, then runs OpenAI-powered scripts to generate all other language versions automatically. The skill knows the difference between core translations that live in packages/translations and plugin-specific ones that sit in their own folders. It'll even scaffold the full translation folder structure if a plugin doesn't have one yet. Honestly, this is the kind of workflow automation that saves you from maintaining dozens of language files by hand and keeps everything consistent across a large monorepo.

skills.sh installs
578
GitHub stars
45.7K
last updated
Aug 21, 2026

Install

$ npx -y skills add payloadcms/payload --skill generate-translations --agent claude-code

Installs into .claude/skills of the current project.

Files

Translation Generation Guide

Payload has two separate translation systems:

  1. Core Translations - for core Payload packages (packages/ui, packages/payload, packages/next)
  2. Plugin Translations - for plugins (packages/plugin-*)

Table of Contents


1. Core Translations

When to use: Adding translations to core Payload packages (packages/ui, packages/payload, packages/next)

Steps:

  1. Add the English translation to packages/translations/src/languages/en.ts

    • Add your new key/value to the appropriate section (e.g., authentication, general, fields, etc.)
    • Use nested objects for organization
    • Example:
      export const enTranslations = {
        authentication: {
          // ... existing keys
          newFeature: 'New Feature Text',
        },
      }
      
  2. Add client key (if needed for client-side usage) to packages/translations/src/clientKeys.ts

Sponsors

Details

Repository
github.com/payloadcms/payload
Categories
Backend & APIs, Automation & Workflows
First seen
Jun 3, 2026

More from payloadcms/payload

All 5
1figma avatarfigma-code-connect-componentsfigma/mcp-server-guideConnects Figma design components to code components using Code Connect mapping tools. Use when user says "code connect", "connect this component to code", "map 330skills.sh installs
2firebase avatardeveloping-genkit-dartfirebase/skillsdeveloping genkit dart329skills.sh installs
3payloadcms avatartriage-ci-flakepayloadcms/payloadUse when CI tests fail on main branch after PR merge, when investigating flaky test failures, or when user provides a PR URL/number to aggregate all failing tes307skills.sh installs
4supabase avatartelemetry-standardssupabase/supabasePostHog event tracking standards for Supabase Studio. Use when adding useTrack() calls, defining events in packages/common/telemetry-constants.ts, implementing 301skills.sh installs
5xcrawl-api avatarxcrawl-mapxcrawl-api/xcrawl-skillsUse this skill for XCrawl map tasks, including site URL discovery, regex filtering, scope estimation, and crawl planning before full-site crawling.217skills.sh installs
6xcrawl-api avatarxcrawl-crawlxcrawl-api/xcrawl-skillsUse this skill for XCrawl crawl tasks, including bulk site crawling, crawler rule design, async status polling, and delivery of crawl output for downstream scra215skills.sh installs