PythonClaw translator

install
source · Clone the upstream repo
git clone https://github.com/ericwang915/PythonClaw
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ericwang915/PythonClaw "$T" && mkdir -p ~/.claude/skills && cp -r "$T/pythonclaw/templates/skills/text/translator" ~/.claude/skills/ericwang915-pythonclaw-translator && rm -rf "$T"
manifest: pythonclaw/templates/skills/text/translator/SKILL.md
source content

Translator

When to Use

  • Translate text to or from any supported language
  • Detect the source language of text
  • Work with multilingual content (e.g., "how do you say X in Y?")
  • Translate phrases, sentences, or paragraphs

When NOT to Use

  • Bulk translation of code or large docs — consider dedicated tools
  • Summarization or paraphrasing
  • Rewriting text in the same language
  • When the user explicitly wants a different translation service

Setup

Install dependency:

pip install deep-translator

Usage/Commands

python {skill_path}/translate.py "text to translate" --to TARGET_LANG [options]
OptionDescription
--to LANG
Target language (required): code or name, e.g.
zh-CN
,
french
,
ja
--from LANG
Source language (default:
auto
)
--format json
Output as JSON

Common codes:

en
,
zh-CN
,
zh-TW
,
ja
,
ko
,
fr
,
de
,
es
,
pt
,
ru
,
ar
,
hi
,
it

Full names also work:

chinese (simplified)
,
japanese
,
french
, etc.

Notes

  • Source language is auto-detected when
    --from
    is omitted
  • Supports 100+ languages via
    deep-translator
  • For programmatic use,
    --format json
    returns structured output