translate_to_language

Translate English text to a target language while preserving placeholders and formatting.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill translates English text to a specified target language while preserving placeholders, formatting, and tone, making it ideal for localizing UI strings and i18n values.

Core Features & Use Cases

  • Placeholder preservation: Detect and keep placeholders (e.g., {{name}}, {count}, ${total}) intact in translations.
  • Context-aware tone: Optional context_key informs tone and formality for accurate localization.
  • Format-conscious translation: Maintains capitalization, punctuation, HTML entities, and spacing.

Quick Start

source_text: "Hello {{name}}, you have {{count}} messages." target_language_code: "es" target_language_name: "Spanish" context_key: "greeting.inbox" Output: "Hola {{name}}, tienes {{count}} mensajes."