Skip to main content

translate

Translates a common phrase into one or more languages.

来源信息

仓库
google/adk-kotlin
最近来源活动
2026年10月7日 12:24
检测到的 SKILL.md 语言
英语
星标
271
分支
43

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
3 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
translate
description
Translates a common phrase into one or more languages.
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.
在 GitHub 查看