jta
БесплатноЗапускает вложенные скриптыНе проверенTranslate JSON i18n files to multiple languages with AI-powered quality optimization. Use when user mentions translating JSON, i18n files…
Об этом скилле
Jta Translation
AI-powered JSON internationalization file translator with Agentic reflection mechanism.
When to Use This Skill
- User asks to translate JSON i18n/locale files
- User mentions "internationalization", "i18n", "l10n", or "locale"
- User wants to add new languages to their project
- User needs to update existing translations
- User mentions specific languages like "translate to Chinese/Japanese/Korean"
Core Capabilities
- Agentic Translation: AI translates, evaluates, and improves its own work (3x API calls per batch)
- Smart Terminology: Automatically detects and maintains consistent terms (brand names, technical terms)
- Format Protection: Preserves
{variables},{{placeholders}}, HTML tags, URLs, Markdown - Incremental Mode: Only translates new/changed content (saves 80-90% API cost on updates)
- 27 Languages: Including RTL languages (Arabic, Hebrew, Persian, Urdu)
Instructions
Step 1: Check if jta is installed
# Check if jta exists
if ! command -v jta &> /dev/null; then
echo "jta not found, will install"
fi
Step 2: Install jta if needed
# Detect OS and install jta
OS="$(uname -s)"
ARCH="$(uname -m)"
if "$OS" == "Darwin"*; then
# macOS - try Homebrew first
if command -v brew &> /dev/null; then
brew tap hikanner/jta
brew install jta
else
# Download binary
if "$ARCH" == "arm64"; then
curl -L https://github.com/hikanner/jta/releases/latest/download/jta-darwin-arm64 -o jta
else
curl -L https://github.com/hikanner/jta/releases/latest/download/jta-darwin-amd64 -o jta
fi
chmod +x jta
sudo mv jta /usr/local/bin/
fi
elif "$OS" == "Linux"*; then
# Linux
curl -L https://github.com/hikanner/jta/releases/latest/download/jta-linux-amd64 -o jta
chmod +x jta
sudo mv jta /usr/local/bin/
fi
# Verify installation
jta --version
Step 3: Check for API key and set provider
Jta requires an AI provider API key. Check in this order and set the provider flag:
# Detect API key and set provider flag
if -n "$ANTHROPIC_API_KEY"; then
echo "✓ Anthropic API key found"
PROVIDER_FLAG="--provider anthropic"
elif -n "$GEMINI_API_KEY"; then
echo "✓ Gemini API key found"
PROVIDER_FLAG="--provider gemini"
elif -n "$OPENAI_API_KEY"; then
echo "✓ OpenAI API key found"
PROVIDER_FLAG="" # OpenAI is default, no flag needed
else
echo "✗ No API key found. Please set one of:"
echo " export OPENAI_API_KEY=sk-..."
echo " export ANTHROPIC_API_KEY=sk-ant-..."
echo " export GEMINI_API_KEY=..."
exit 1
fi
Important: Save the PROVIDER_FLAG value to use in translation commands.
Step 4: Identify source file
# Find JSON files in common i18n/locale directories
find . -type f -name "*.json" \
\( -path "*/locales/*" -o \
-path "*/locale/*" -o \
-path "*/i18n/*" -o \
-path "*/lang/*" -o \
-path "*/translations/*" \) \
| head -20
Ask user to confirm which file to translate if multiple found.
Step 5: Determine translation requirements
Ask user (if not specified in their request):
- Target languages (e.g., "zh,ja,ko")
- Whether to use incremental mode (recommended for updates)
- Output location preference
Step 6: Execute translation
Always use $PROVIDER_FLAG from Step 3 to ensure the correct AI provider is used:
# Basic translation with detected provider
jta <source-file> --to <target-langs> $PROVIDER_FLAG
# Examples:
# Single language
jta en.json --to zh $PROVIDER_FLAG
# Multiple languages
jta en.json --to zh,ja,ko $PROVIDER_FLAG
# Incremental mode (for updates)
jta en.json --to zh --incremental $PROVIDER_FLAG
# With custom output
jta en.json --to zh --output ./locales/zh.json $PROVIDER_FLAG
# Non-interactive mode (for multiple languages)
jta en.json --to zh,ja,ko,es,fr -y $PROVIDER_FLAG
# Override with specific model for quality
jta en.json --to zh --provider anthropic --model claude-sonnet-4-5
# Translate specific keys only
jta en.json --to zh --keys "settings.*,user.*" $PROVIDER_FLAG
# Exclude certain keys
jta en.json --to zh --exclude-keys "admin.*,internal.*" $PROVIDER_FLAG
Step 7: Verify results
After translation completes:
# Check output files exist
ls -lh <output-files>
# Validate JSON structure
for file in <output-files>; do
if jq empty "$file" 2>/dev/null; then
echo "✓ $file is valid JSON"
else
echo "✗ $file has invalid JSON"
fi
done
Step 8: Report to user
Show the user:
- Translation statistics (total items, success rate, API calls, duration)
- Location of output files
- Any errors or warnings
- Cost implications if significant (e.g., "Used 15 API calls, estimated $0.30")
Terminology Management
Jta automatically creates a .jta/ directory to store terminology:
.jta/
├── terminology.json # Source language terms (preserve + consistent)
├── terminology.zh.json # Chinese translatio
Установить jta в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteBashGlobВложенные файлы
FAQ
Что делает скилл jta?
Translate JSON i18n files to multiple languages with AI-powered quality optimization. Use when user mentions translating JSON, i18n files, internationalization, locale files, or needs to convert language files to other languages.
Как установить скилл jta?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл jta запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic