translate

Translate untranslated strings in locale JSON files using source code context.

419|43|Updated Nov 27, 2019
One-click install
npx skills add https://github.com/emavgl/oinkoin --skill translate-emavgl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: translate
Source: https://github.com/emavgl/oinkoin/tree/main/.claude/skills/translate
Command: npx skills add https://github.com/emavgl/oinkoin --skill translate-emavgl

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the process of translating untranslated strings within locale JSON files for the Oinkoin app, ensuring a consistent and comprehensive user experience across different languages.

Core Features & Use Cases

  • Identify Untranslated Strings: Detects strings in locale files where the value is identical to the key, indicating a need for translation.
  • Contextual Translation: Leverages source code analysis to understand the context of each string before providing a translation.
  • Bulk Translation: Processes all untranslated strings within a specified locale file in a single pass.
  • Use Case: When a new language version of the Oinkoin app is needed, this Skill can efficiently translate all UI elements, ensuring the app is ready for international users.

Quick Start

Translate all untranslated strings in the Italian locale file by running /translate assets/locales/it.json.

Frequently Asked Questions about translate

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

FAQPage Schema
How do I translate untranslated strings in locale JSON files for my app?

To translate untranslated strings in locale JSON files, you can use this Skill to identify entries where the value matches the key and generate localized text. It analyzes source code context to ensure accurate translations for the Oinkoin application.

What is the best way to automate i18n for new languages in JSON locale files?

Automating i18n for new languages in JSON locale files is handled by scanning for untranslated keys and applying contextual translations. This Skill leverages source code analysis to understand string context before updating the locale files for the Oinkoin app.

Do I need Python to sync keys and update locale JSON translations?

Yes, you need Python 3 installed to sync keys and update locale JSON translations. This Skill relies on Python scripts to identify untranslated strings and process the localization updates for the Oinkoin application's i18n files.

How does contextual translation work for JSON localization?

Contextual translation for JSON localization works by analyzing the source code to understand how each string is used. This Skill uses that context to provide accurate translations for keys in the Oinkoin locale files instead of translating strings in isolation.

Can I bulk translate all untranslated UI strings in a specified locale file?

Yes, you can bulk translate all untranslated UI strings in a specified locale file. By running a command like /translate assets/locales/it.json, this Skill processes all matching keys and updates the JSON file with the translated values.

How are untranslated strings identified in locale JSON files?

Untranslated strings in locale JSON files are identified by detecting entries where the value is identical to the key. This Skill uses this pattern to find missing translations and syncs keys using Python scripts before applying contextual translations.