translate-i18n

Solid

Fill missing i18n translations in the viewer source JSON. Run this after adding or modifying English or Chinese UI strings in claude_tap/viewer_i18n.json — it auto-translates to ja, ko, fr, ar, de, ru via OpenRouter.

AI & Automation 1,021 stars 109 forks Updated today MIT

Install

View on GitHub

Quality Score: 96/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Translate i18n Automatically fill missing translations for the viewer's `claude_tap/viewer_i18n.json` source file. The script uses English and Chinese as source languages and translates to Japanese, Korean, French, Arabic, German, and Russian. ## Prerequisites - `OPENROUTER_API_KEY` must be set in the environment (it is in the user's `.zshrc`) - Default model: `google/gemini-2.5-flash` ## Workflow ### 1. Check what's missing (dry run) Always preview first to confirm which keys need translation: ```bash uv run python scripts/translate_i18n.py --dry-run ``` This parses `claude_tap/viewer_i18n.json`, finds keys present in both `en` and `zh-CN` but missing in other languages, and lists them without modifying the file. ### 2. Run the translation ```bash uv run python scripts/translate_i18n.py ``` The script calls OpenRouter once per target language, then writes the translations back into `viewer_i18n.json` in-place. ### 3. Verify the result After translation, run the formatter and tests to make sure nothing broke: ```bash uv run python -m json.tool claude_tap/viewer_i18n.json >/dev/null uv run pytest tests/test_translate_i18n.py -v ``` ## Options | Flag | Purpose | |------|---------| | `--dry-run` | Show missing keys only, no file changes | | `--model MODEL` | Override the OpenRouter model (default: `google/gemini-2.5-flash`) | | `--target {viewer,cli}` | Translation target preset (default: `viewer`) | | `--file PATH` | Override target file path | | `--object-nam...

Details

Author
liaohch3
Repository
liaohch3/claude-tap
Created
3 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Data & Documents Solid

oma-translator

Context-aware translation that preserves tone, style, and natural word order. Use when translating UI strings, documentation, marketing copy, or any multilingual content. Infers register, domain, and style from the source text and surrounding codebase context.

1,036 Updated today
first-fluke
AI & Automation Listed

ifly-translate

iFlytek Machine Translation (机器翻译) — translate text between Chinese, English, Japanese, Korean, French, Spanish, German, Russian, Arabic, Thai, Vietnamese, and many more languages. Use when the user wants to translate text. Pure Python stdlib, no pip dependencies.

179 Updated 1 months ago
iflytek
Data & Documents Solid

ifly-translate

iFlytek Machine Translation (机器翻译) — translate text between Chinese, English, Japanese, Korean, French, Spanish, German, Russian, Arabic, Thai, Vietnamese, and many more languages. Use when the user wants to translate text. Pure Python stdlib, no pip dependencies.

3,964 Updated 1 months ago
openclaw
AI & Automation Solid

baoyu-translate

Translates articles and documents between languages with three modes - quick (direct), normal (analyze then translate), and refined (analyze, translate, review, polish). Supports custom glossaries and terminology consistency via EXTEND.md. Use when user asks to "translate", "翻译", "精翻", "translate article", "translate to Chinese/English", "改成中文", "改成英文", "convert to Chinese", "localize", "本地化", or needs any document translation. Also triggers for "refined translation", "精细翻译", "proofread translation", "快速翻译", "快翻", "这篇文章翻译一下", or when a URL or file is provided with translation intent.

839 Updated today
guanyang
AI & Automation Listed

translate-script

Translate a script between Chinese and English while preserving section structure, BROLL cues, and pacing markers. Use when producing a bilingual explainer or localizing an existing video.

0 Updated today
huodebing-alt