Translate text between any languages using the best AI models through Crazyrouter.
Agent Execution:
SKILL_DIR = this SKILL.md file's directory${SKILL_DIR}/scripts/main.mjs[ -n "${CRAZYROUTER_API_KEY}" ] && echo "key_present" || echo "not_set"
| Result | Action |
|---|---|
| -------- | -------- |
key_present | Continue |
not_set | Ask user to set CRAZYROUTER_API_KEY. Get key at https://crazyrouter.com |
# Basic translation
node ${SKILL_DIR}/scripts/main.mjs --text "Hello world" --to zh
# Translate file
node ${SKILL_DIR}/scripts/main.mjs --input article.md --to ja --output article_ja.md
# Use specific model
node ${SKILL_DIR}/scripts/main.mjs --text "Bonjour le monde" --to en --model deepseek-r1
# Specify source language
node ${SKILL_DIR}/scripts/main.mjs --text "你好世界" --from zh --to ko
# Keep formatting (Markdown)
node ${SKILL_DIR}/scripts/main.mjs --input README.md --to ja --output README_ja.md --format markdown
| Option | Description | Default |
|---|---|---|
| -------- | ------------- | --------- |
--text | Text to translate | — |
--input | Read from file | — |
--output | Save to file | stdout |
--from | Source language | auto-detect |
--to | Target language (required) | — |
--model | AI model | gpt-4o-mini |
--format | plain or markdown | plain |
en, zh, ja, ko, es, fr, de, pt, ru, ar, vi, th, id, tr, it, pl, nl, sv, hi, ...
共 1 个版本