sync-translations

Synchronize next-intl locale JSON files against de.json keys.

55|1|Updated Feb 16, 2026
One-click install
npx skills add https://github.com/aaronjoeldev/cashlytics-ai --skill sync-translations-aaronjoeldev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sync-translations
Source: https://github.com/aaronjoeldev/cashlytics-ai/tree/main/.claude/skills/sync-translations
Command: npx skills add https://github.com/aaronjoeldev/cashlytics-ai --skill sync-translations-aaronjoeldev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Keeps translation message files consistent across locales so UI text changes, missing keys, and structural drift are detected and corrected before they reach users.

Core Features & Use Cases

  • Detect missing keys: Compare every locale against de.json and list keys that are absent or orphaned.
  • Find structural drift: Flag differences in nesting or namespace shapes between locale files without automatically restructuring them.
  • Create or update locales: Add missing keys to all locales, create full locale files when a new locale appears in config, and ensure placeholders and ICU syntax are preserved.
  • Use case: When a developer adds new UI text or renames a translation key, run this skill to generate a change plan and apply safe, consistent updates across en and other locales.

Quick Start

Run the sync-translations skill to scan messages, identify missing or orphaned keys, and update all locale files to match de.json.

Frequently Asked Questions about sync-translations

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

FAQPage Schema
How do I sync translation JSON files across multiple locales in a Next.js project?

Synchronizing translation JSON files across locales ensures consistent keys by comparing each locale against a base file like de.json to detect missing or orphaned keys. This process validates structural drift, preserves interpolation placeholders, and updates all locale files to mirror the base.

How do I find missing translation keys in my next-intl locale JSON files?

Finding missing translation keys in next-intl locale files involves comparing every locale against a reference file such as de.json to list keys that are absent or orphaned. This detection scans messages and identifies structural drift in nesting or namespace shapes between locale files without automatically restructuring them.

Can I generate a complete locale JSON file when adding a new language to next-intl?

Generating a complete locale file for a newly added locale in next-intl is supported by creating a full set of translation messages matching the base locale. This ensures all keys are present, ICU syntax and placeholders are preserved, and the new file mirrors the structure of the reference locale.

Does the sync-translations approach work with useTranslations and getTranslations patterns?

The synchronization approach works with Next.js projects using next-intl where code references use useTranslations, getTranslations, and t(...) patterns under the src/ directory. It scans these patterns to validate that translation message files across locales remain consistent and aligned with the base locale.

What happens to ICU syntax and interpolation placeholders when syncing locale files?

ICU syntax and interpolation placeholders are preserved when syncing locale files across locales. The synchronization process ensures that placeholders and JSON formatting remain intact while adding missing keys to all locales, preventing broken translations caused by mismatched variable references.