常用短语多语言翻译
translate
将常用短语翻译成一种或多种语言。
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 307
- Forks
- 56
01 前言 Front Matter
- name
- translate
- description
- Translates a common phrase into one or more languages.
02 资源文件 2
- 参考文档references/phrasebook.tsv830 B
- 脚本scripts/translate.py2.2 KB
03 SKILL.md 正文
Translate a phrase using the bundled phrasebook, rather than from memory.
Run scripts/translate.py with Python 3 through the run_skill_script tool,
from the skill's directory so that it finds the phrasebook. The script takes the
phrase as its first argument, followed by one argument per target language, and
prints one language: translation line per language. Quote the phrase.
Example usage: call the run_skill_script tool with skill_name "translate",
file_path "scripts/translate.py", and this command:
cd skills/translate && python3 scripts/translate.py 'good morning' french japanese
That prints:
french: bonjour
japanese: ohayō
The phrasebook covers a small set of phrases (hello, goodbye, thank you, good morning, please, yes, no) in Spanish, French, German, Polish, and Japanese. The script exits with a non-zero status and writes to stderr when a phrase or language is missing; report that to the user instead of guessing a translation.
04 同仓库更多 Skills
常用短语多语言翻译
translate
将常用短语翻译成一种或多种语言。
魔法使魔召唤
summon-familiar
召唤一只魔法生物来协助你。
火球术施放
cast-fireball
向指定目标施放火球术。
魔法生物召唤
summon-familiar
召唤一只魔法生物来协助你。
火球术施放
cast-fireball
向指定目标施放火球。
魔法生物召唤
summon-familiar
召唤一只魔法生物来协助你。