update_json_localization_file

Update JSON localization files with dot-notation additions and deletions.

2|Updated Apr 7, 2025
One-click install
npx skills add https://github.com/ericfitz/tmi-ux --skill update-json-localization-file
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: update_json_localization_file
Source: https://github.com/ericfitz/tmi-ux/tree/main/.claude/skills/update_json_localization_file
Command: npx skills add https://github.com/ericfitz/tmi-ux --skill update-json-localization-file

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill updates a JSON localization file by applying additions, updates, and deletions while preserving formatting and structure, enabling safe synchronization of i18n keys.

Core Features & Use Cases

  • Dot-notation updates: Add or update nested keys using dot notation (e.g., "about.title").
  • Safe deletions: Remove keys by path while preserving parent structures.
  • Formatting preservation: Optionally preserve existing key order or sort automatically; writes with proper indentation and encoding.

Quick Start

  • file_path: "src/assets/i18n/es-ES.json"
  • additions: {"common.save": "Guardar"}
  • deletions: ["obsolete.key"] The Skill returns a summary including keys_added, keys_updated, keys_deleted, and total_keys.