Source profileQuality 87/100Review permissions

payloadcms/payload/.claude/skills/generate-translations/SKILL.md

generate-translations

Use when new translation keys are added to packages to generate new translations strings

Source repository stars
44,005
Declared platforms
0
Static risk flags
1
Last source update
2026-08-06
Source checked
2026-08-06

Decision brief

What it does—and where it fits

Payload has two separate translation systems:

Best for

  • Use when new translation keys are added to packages to generate new translations strings

Not for

  • Tasks that require unconfirmed production actions or broad system permissions.
  • Environments where the pinned source and install steps cannot be inspected.

Compatibility matrix

Platform support, with evidence labels

PlatformStatusEvidenceWhat to check
CodexNot declaredNo explicit evidencePortability before use
Claude CodeNot declaredNo explicit evidencePortability before use
CursorNot declaredNo explicit evidencePortability before use
Gemini CLINot declaredNo explicit evidencePortability before use
Open the compatibility checker

Installation

Inspect first. Install second.

The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

Source-detected install commandSource
npx skills add https://github.com/payloadcms/payload --skill ".claude/skills/generate-translations"
Safe inspection promptEditorial

Inspect the Agent Skill "generate-translations" from https://github.com/payloadcms/payload/blob/8b2f2484a7556adeaab679538374228f9c395213/.claude/skills/generate-translations/SKILL.md at commit 8b2f2484a7556adeaab679538374228f9c395213. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

Workflow

What the source asks the agent to do

  1. 01

    1. Core Translations

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

    Add the English translation to packages/translations/src/languages/en.tsAdd your new key/value to the appropriate section (e.g., authentication, general, fields, etc.)Use nested objects for organization
  2. 02

    Steps:

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

    Add the English translation to packages/translations/src/languages/en.tsAdd your new key/value to the appropriate section (e.g., authentication, general, fields, etc.)Use nested objects for organization
  3. 03

    2. Plugin Translations

    When to use: Adding translations to any plugin package (packages/plugin-\)

    Verify plugin has translations folderCheck if packages/plugin-{name}/src/translations existsIf it doesn't exist, see "Scaffolding New Plugin Translations" below
  4. 04

    Scaffolding New Plugin Translations

    If a plugin doesn't have a translations folder yet, ask the user if they want to scaffold one.

    types.ts - Define the plugin's translation typesindex.ts - Export all translations and re-export typeslanguages/en.ts - English translations (the source for generation)

Permission review

Static risk signals and limitations

Runs scripts

medium · line 76

The documentation asks the agent to run terminal commands or scripts.

Run the plugin-specific script: `pnpm generateTranslations:plugin-{name}`

Evidence record

Why each signal appears

EvidenceSourceComputedTestedEditorial
SignalValueEvidence typeMeaning
Quality score87/100ComputedDocumentation, specificity, maintenance, and trust rules
Repository stars44,005SourceRepository attention, not individual Skill quality
Compatibility0 platformsSourceDeclared in the catalog source record
Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

Pinned source

Provenance and original SKILL.md

Repository
payloadcms/payload
Skill path
.claude/skills/generate-translations/SKILL.md
Commit
8b2f2484a7556adeaab679538374228f9c395213
License
MIT
Collected
2026-08-06
Default branch
main
View the original SKILL.md

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

    • Add the translation key path using colon notation
    • Example: 'authentication:newFeature'
    • Client keys are used for translations that need to be available in the browser
  3. Generate translations for all languages

    • Change directory: cd tools/scripts
    • Run: pnpm generateTranslations:core
    • This auto-translates your new English keys to all other supported languages

2. Plugin Translations

When to use: Adding translations to any plugin package (packages/plugin-*)

Steps:

  1. Verify plugin has translations folder

    • Check if packages/plugin-{name}/src/translations exists
    • If it doesn't exist, see "Scaffolding New Plugin Translations" below
  2. Add the English translation to the plugin's packages/plugin-{name}/src/translations/languages/en.ts

    • Plugin translations are namespaced under the plugin name
    • Example for plugin-multi-tenant:
      export const enTranslations = {
        'plugin-multi-tenant': {
          'new-feature-label': 'New Feature',
        },
      }
      
  3. Generate translations for all languages

    • Change directory: cd tools/scripts
    • Run the plugin-specific script: pnpm generateTranslations:plugin-{name}
    • Examples:
      • pnpm generateTranslations:plugin-multi-tenant
      • pnpm generateTranslations:plugin-ecommerce
      • pnpm generateTranslations:plugin-import-export

Scaffolding New Plugin Translations

If a plugin doesn't have a translations folder yet, ask the user if they want to scaffold one.

Structure to create:

packages/plugin-{name}/src/translations/
├── index.ts
├── types.ts
└── languages/
    ├── en.ts
    ├── es.ts
    └── ... (all other language files)

Files to create:

  1. types.ts - Define the plugin's translation types
  2. index.ts - Export all translations and re-export types
  3. languages/en.ts - English translations (the source for generation)
  4. languages/*.ts - Other language files (initially empty, will be generated)

Generation script to create:

  1. Create tools/scripts/src/generateTranslations/plugin-{name}.ts

    • Use plugin-multi-tenant.ts as a template
    • Update the import paths to point to the new plugin
    • Update the targetFolder path
  2. Add script to tools/scripts/package.json:

    "generateTranslations:plugin-{name}": "node --no-deprecation --import @swc-node/register/esm-register src/generateTranslations/plugin-{name}.ts"
    

Important Notes

  • All translation generation requires OPENAI_KEY environment variable to be set
  • The generation scripts use OpenAI to translate from English to other languages
  • Always add translations to English first - it's the source of truth
  • Core translations: Client keys are only needed for translations used in the browser/admin UI
  • Plugin translations: Automatically namespaced under the plugin name to avoid conflicts

Alternatives

Compare before choosing

Computed 1007

narrative-io/narrative-skills-marketplace

design-analysis

Translate a fuzzy analytical question into a rigorous investigation plan. Interrogates the ask, grounds the plan in the available data dictionary, applies analytical best practices, and produces a structured brief of query specifications for a downstream query-writing skill. Plans, does not write SQL. Use when: "why did X drop", "is there a relationship between A and B", "who are our highest-value customers", "what's driving the change in Y", "investigate this trend", "design an analysis for", "

Computed 9639

wyre-technology/msp-claude-plugins

Sherweb API Patterns

Sherweb Partner API fundamentals: OAuth 2.0 client-credentials auth, token caching, subscription-key header, scopes and base URLs, endpoint and MCP tool catalog, page-based pagination, Accept-Language localization, rate limits, and error codes.

Computed 95518

rampstackco/claude-skills

pm-spec-writing

Translate ideas, feature requests, or vague concepts into specific, actionable dev briefs. Use this skill whenever the user has an idea they want to build, a feature to spec out, a bug to file, a project to scope, or needs to convert a half-formed idea into a clear implementation brief. Triggers on I want to add, we should build, can we make, what is the plan for, how do we implement, dev brief, feature spec, PRD, user story, acceptance criteria, scope this, prioritize. Also triggers when the us

Computed 9599

ffroliva/gflow-cli

pr-council-review

Multi-dimensional LLM council review of an open PR (default) or a local feature branch (§ 8 branch mode, invoked via `/gflow:branch-review`). Five baseline dimensions (correctness, quality, security, tests, memory-hygiene) plus adaptive dimensions per surface (transports / data / CLI / docs / auth / BDD / scripts / release-gate). Each agent invokes specialized skills (security-review, code-review, verify) for its dimension. Reads files via `git show <sha>:<path>` to avoid stale-working-tree fals