translate-changes

Detect changes in en.json and update six locale files with translations.

25|7|Updated Sep 25, 2019
One-click install
npx skills add https://github.com/MuckRock/documentcloud-frontend --skill translate-changes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: translate-changes
Source: https://github.com/MuckRock/documentcloud-frontend/tree/main/.claude/skills/translate-changes
Command: npx skills add https://github.com/MuckRock/documentcloud-frontend --skill translate-changes

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill detects changes in the English language file and propagates updated strings to all locale files, ensuring your app stays bilingual as you evolve UI copy.

Core Features & Use Cases

  • Detects added or modified keys in src/langs/json/en.json and catalogs them for translation.
  • Translates updated keys into German, Spanish, French, Italian, Russian, and Ukrainian while preserving HTML structure and placeholders.
  • Use Case: When a new UI string is added or an existing one is updated, run this skill to propagate translations to all locale files so the app remains consistent across languages.

Quick Start

After modifying en.json, trigger the workflow via the /translate-changes command or run the included extract-and-apply scripts to update locale files.

Frequently Asked Questions about translate-changes

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

FAQPage Schema
How do I automatically translate changes made to en.json across all language files?

This Skill detects modifications to src/langs/json/en.json, identifies changed keys, and generates translations for German, Spanish, French, Italian, Russian, and Ukrainian locale files while preserving HTML structures and placeholders. Trigger it after editing en.json to propagate updates across all languages.

Can I keep my locale files in sync when I update UI copy?

Yes. The Skill parses git diffs to find added or modified keys in en.json, then automatically translates them into de.json, es.json, fr.json, it.json, ru.json, and uk.json, ensuring all locale files stay consistent with your English source.

What happens to HTML tags and placeholders when translations are applied?

HTML structures and placeholders are preserved during translation. The Skill maintains formatting while updating only the translatable content, so your locale files retain their original markup and variable references.

How does the Skill identify which strings need translation?

It detects changes to src/langs/json/en.json by analyzing the current branch's git diff, catalogs newly added or modified keys, and maps them for translation into supported locales.

What languages does this Skill support for translation?

The Skill translates into six languages: German (de.json), Spanish (es.json), French (fr.json), Italian (it.json), Russian (ru.json), and Ukrainian (uk.json).

Do I need to manually edit locale files or can this run automatically?

The Skill automates the entire process. Trigger it via the /translate-changes command or run the included extract-and-apply scripts after modifying en.json; locale files update without manual intervention.