sync-translations

Sync missing translation keys across locale files from a Japanese master.

1.1k|202|Updated Oct 14, 2023
One-click install
npx skills add https://github.com/tegnike/aituber-kit --skill sync-translations
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sync-translations
Source: https://github.com/tegnike/aituber-kit/tree/main/.claude/skills/sync-translations
Command: npx skills add https://github.com/tegnike/aituber-kit --skill sync-translations

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

日本語の翻訳キーを基準に、他言語ファイルの不足キーを自動的に追加して同期します。翻訳キーの追加やi18nの更新時に活用され、プロジェクト全体の整合性を保ちます。

Core Features & Use Cases

  • Automatic key propagation: 日本語 master に基づき、 locales の translation.json に欠如しているキーを自動挿入します。
  • Cross-language synchronization: locales/en, locales/zh, locales/ko など、合計14言語の翻訳ファイルを常に最新状態に保ちます。
  • Structure & order preservation: JSON のネスト構造とキー順を崩さずに新規キーを追加します。
  • Use Case: 新しい翻訳キーを追加する際、日本語を基準として他言語に自動展開してワークフローを短縮します。

Quick Start

Run the sync against your locales directory to align all translation files to ja/translation.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 missing translation keys across multiple locale JSON files?

To sync missing translation keys, this Skill reads a Japanese master JSON file and automatically inserts lacking keys into other locale translation files, preserving the original JSON structure and key order.

How do I keep i18n locale files synchronized when adding new translation keys?

Keeping i18n locale files synchronized is done by using a Japanese master translation.json as the reference, automatically propagating newly added keys to other language files to maintain project-wide consistency.

Does syncing translation files preserve the existing JSON nesting structure and key order?

Syncing translation files preserves the JSON nesting structure and key order. It only inserts new keys from the master file into the target locale files without altering your existing layout.

How many languages can I synchronize using the Japanese master locale file?

You can synchronize up to 14 languages using the Japanese master locale file. It updates target locales like en, zh, and ko by matching the structure of the master translation.json.

Can I use a different master locale file instead of Japanese for i18n synchronization?

Using a different master locale file for i18n synchronization is not supported. The Skill is specifically designed to read locales/ja/translation.json as the master to update other language files.

What is the best way to automate cross-language localization key propagation?

The best way to automate cross-language localization key propagation is to run a sync against your locales directory, aligning all translation.json files to the Japanese master to ensure consistency without manual updates.

Related Skills