json-translator

Translate specified text fields in JSON files via external APIs.

58|1|Updated May 13, 2026
One-click install
npx skills add https://github.com/Simplified-Reasoning/Pi-Bench --skill json-translator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: json-translator
Source: https://github.com/Simplified-Reasoning/Pi-Bench/tree/main/data/Financier/skills/json-translator-1.0.0
Command: npx skills add https://github.com/Simplified-Reasoning/Pi-Bench --skill json-translator

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) components.

What problem does it solve?

This Skill solves the problem of manually translating repetitive text inside JSON files, especially when you need to localize fields like description across many entries.

Core Features & Use Cases

  • Targeted field translation: Translates only specified keys in your JSON (default key: description) while keeping the rest of the structure unchanged.
  • Multi-language support: Converts between zh, en, ja, and ko, with optional source-language specification (or auto).
  • Online translation with fallback handling: Uses MyMemory as the primary translation service and adds clear markers when translations fail, without stopping the whole job.
  • Practical use cases: Product descriptions, API/config documentation localization, dataset text field translation, and generating multi-language JSON variants for internationalization.

Quick Start

Ask the assistant to translate the JSON file's description fields to Chinese using the json-translator skill.

Frequently Asked Questions about json-translator

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

FAQPage Schema
How do I translate specific text fields inside a JSON file for localization?

Translating specific JSON text fields involves recursively discovering targeted keys like description and calling an external translation API to replace matched strings. This process preserves your original JSON structure while generating an updated, localized JSON file.

What is the best way to automate product description localization in a JSON dataset?

Automating product description localization in a JSON dataset is best handled by recursively discovering targeted keys like description and translating each matched string via an online API. This generates a multi-language JSON variant while preserving the original structure.

Does JSON translation support multiple languages like Chinese, English, Japanese, and Korean?

JSON translation supports multiple languages including zh, en, ja, and ko. You can optionally specify the source language or set it to auto, converting your text fields accurately across these supported linguistic variations.

How do I handle API translation failures when converting JSON text fields?

When API translation failures occur during JSON text field conversion, the system marks the failed entries with clear markers instead of aborting the entire job. This ensures your localization workflow continues and outputs an updated JSON file with identifiable failures.

Can I translate API configuration documentation stored in JSON format?

You can translate API and config documentation stored in JSON format by specifying the relevant text keys. The process recursively scans the configuration, translates matched values via an online API, and preserves the original JSON structure for internationalization.

Do I need the requests library to run JSON translation scripts?

You need the requests library installed to run these JSON translation scripts. This dependency is required to make the external HTTP calls to the primary translation service for each matched string discovered during recursive field scanning.