闲社服务运行正常AI智能体自动化平台
t

翻译CLI指南

技能标识:translate-cli

End-user guide for running and configuring the `translate` CLI across text/stdin/file/glob inputs, provider selection, presets, custom prompt templates, and TOML settings. Use when users ask for command construction, config updates (`translate config`/`translate presets`), provider setup, dry-run validation, or troubleshooting translation behavior.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 0.2.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

翻译CLI指南

translate-cli

使用此技能帮助终端用户运行和配置 translate CLI。

translate 是一个命令行翻译工具,支持文本、标准输入、文件、通配符和 .xcstrings 目录的翻译。它支持多种提供商(OpenAI、Anthropic、Ollama、兼容OpenAI的端点、Apple提供商、DeepL)、提示预设和模板覆盖,以及持久的TOML配置。

功能

  • - 为内联文本、标准输入、单文件和多文件工作流构建正确的 translate 命令。
  • 在构建命令时,将选项放在位置输入之前(例如,translate --to de README.md)。
  • 解释提供商选择、凭证、模型/基础URL要求以及提供商特定的限制。
  • 使用 translate config 和 config.toml 配置默认值、提供商端点、网络设置和预设。
  • 使用预设、内联模板、@file 模板和占位符自定义提示。
  • 解释输出行为(stdout、--output、--in-place、后缀命名)、并行任务、空运行和验证错误。
  • 流式输出:--stream 强制开启,--no-stream 强制关闭,否则使用 defaults.stream。

入门命令

bash
translate --text --to fr Hello world
translate --to de README.md
translate --provider ollama --text --to en --dry-run Merhaba dunya
translate config set defaults.provider anthropic

注意:在所有示例和生成的命令中,优先使用选项在输入之前的顺序。

参考资料

  • - 快速示例:references/quickstart.md
  • 完整标志和子命令参考:references/flags-and-subcommands.md
  • TOML模式和优先级:references/config-toml.md
  • 提供商规则和环境变量:references/providers-and-env.md
  • 预设、提示模板、占位符:references/presets-and-prompts.md
  • 运行时行为、警告和退出代码:references/behavior-and-errors.md

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 translate-cli-1776289577 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 translate-cli-1776289577 技能

通过命令行安装

skillhub install translate-cli-1776289577

下载

⬇ 下载 translate-cli v0.2.0(免费)

文件大小: 9.23 KB | 发布时间: 2026-4-16 17:10

v0.2.0 最新 2026-4-16 17:10
- Added end-user guide for running and configuring the translate CLI.
- Documents usage for text, stdin, file, and glob inputs.
- Explains provider selection, credentials, model, and endpoint configuration.
- Includes guidance for presets, prompt templates, TOML config, and troubleshooting.
- Starter command examples now recommended with options before input(s).
- Covers dry-run, validation, streaming output, and parallelism options.
返回顶部