generate-translations

Generate translation strings for new Payload CMS translation keys using Bash scripts.

44.1k|4.0k|Updated Jan 5, 2021
One-click install
npx skills add https://github.com/payloadcms/payload --skill generate-translations-payloadcms
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-translations
Source: https://github.com/payloadcms/payload/tree/main/.claude/skills/generate-translations
Command: npx skills add https://github.com/payloadcms/payload --skill generate-translations-payloadcms

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Bash, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of generating translation strings for new translation keys in Payload plugins, simplifying the maintenance and addition of language support.

Core Features & Use Cases

  • Automatic Key Generation: Automates the generation of new translation strings for added translation keys.
  • Plugin-Specific: Generates translations for both core Payload packages and individual plugins.
  • Use Case: When you add new features to your Payload plugin, this Skill can help generate the corresponding translations for all supported languages without manual work.

Quick Start

To generate translations for a new feature, use the command: run generate-translations plugin-{plugin-name}

Frequently Asked Questions about generate-translations

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate translation key generation for my Payload CMS plugin?

You can automate translation key generation for Payload CMS plugins by running a Bash script that automatically generates translation strings for newly added keys. This streamlines internationalization without manual text entry.

Can I use Bash scripts to generate translation strings for Payload core packages?

Yes, Bash scripts can generate translation strings for both Payload core packages and individual plugins. This allows developers to automate internationalization across the entire Payload ecosystem.

What is the best way to add internationalization to a new Payload plugin feature?

The best way to add internationalization to a new Payload plugin feature is to use an automated translation generation script. It detects new translation keys and outputs the corresponding strings for all supported languages.

Do I need to manually create translation strings for every new key in Payload?

No, you do not need to manually create translation strings for every new key in Payload. You can use an automated generation skill to handle the translation string creation for your plugin's new features.

Does the Payload translation generation script support languages other than English?

The translation generation script uses English as the source language to generate translation strings for new keys. It creates the baseline translations needed to support additional languages in your Payload plugins.

How do I trigger translation automation for a specific Payload plugin?

You trigger translation automation for a specific Payload plugin by executing the command 'run generate-translations plugin-{plugin-name}'. This initiates the Bash script to process your new keys.