i18n-contextual-rewriting

Manage translation files and generate scripts for bulk localization updates.

1|Updated Apr 17, 2026
One-click install
npx skills add https://github.com/sorawit-w/agent-skills --skill i18n-contextual-rewriting
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: i18n-contextual-rewriting
Source: https://github.com/sorawit-w/agent-skills/tree/main/skills/i18n-contextual-rewriting
Command: npx skills add https://github.com/sorawit-w/agent-skills --skill i18n-contextual-rewriting

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

It addresses the challenge of maintaining large translation files and producing culturally relevant localized content.

Core Features & Use Cases

  • Safe File Handling: Performs surgical edits on translation files to prevent token limit issues.
  • Bulk Operations via Scripts: Generates scripts for merging new keys and synchronizing internationalization files across multiple locales.
  • Use Case: When adding new language support or updating large files, use this Skill to avoid overwriting entire files and ensure accurate, consistent translations.

Quick Start

Ask the AI to update the en.json file with new keys without overwriting existing entries.

Frequently Asked Questions about i18n-contextual-rewriting

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

FAQPage Schema
How do I add new keys to a large JSON translation file without overwriting existing entries?

To add new keys to large translation files without overwriting entries, perform surgical edits that safely inject only the modified sections. This approach prevents token limit issues by avoiding rewriting the entire file.

What is the best way to synchronize i18n files across multiple locales?

Synchronizing i18n files across multiple locales is best handled by generating scripts for bulk operations. These scripts merge new keys and update translations programmatically, ensuring accurate, consistent localization workflows without manual file manipulation.

Can I use this approach to manage TypeScript localization files?

Yes, you can manage TypeScript localization files using this approach. It supports JSON, YAML, and TypeScript formats, allowing you to handle multi-locale synchronization efficiently and apply culture-sensitive edits across these file types.

Why do my multi-locale translation updates fail due to token limits?

Multi-locale translation updates fail due to token limits when attempting to process entire large files at once. Avoid this by performing surgical edits that target specific sections, or by generating scripts for bulk updates to process data efficiently.

When do I need to generate scripts for bulk updates to localization files?

You need to generate scripts for bulk updates when adding new language support or synchronizing large internationalization files across multiple locales. This ensures consistent translations and prevents overwriting existing entries during the update process.