web-article-translator
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseWeb Article Translator
Web Article Translator
Overview
Overview
翻译在线文章为中文,并将结果保存为 Markdown 格式文件,保留原文的图片链接。
Translate online articles into Chinese and save the results as Markdown format files, keeping the original image links unchanged.
Workflow
Workflow
1. 获取网页内容
1. Retrieve Web Page Content
使用 工具获取文章内容:
- 设置 为
return_formatmarkdown - 设置 为
retain_imagestrue - Keep all image links unchanged
- Do NOT translate code blocks or variable names
Use the webReader tool to retrieve article content:
- Set to
return_formatmarkdown - Set to
retain_imagestrue - Keep all image links unchanged
- Do NOT translate code blocks or variable names
2. 翻译内容
2. Translate Content
将获取的 Markdown 内容翻译为中文:
- 翻译原则:保持原文风格,根据原文类型(新闻、技术文档、博客等)自动调整翻译风格
- 专业术语:技术术语首次出现时保留英文原文在括号中,后续可直接使用中文
- 可读性:确保翻译合理、流畅、易懂
- 格式保留:保持原有的 Markdown 结构(标题、列表、代码块等)
Translate the retrieved Markdown content into Chinese:
- Translation Principles: Maintain the original style, automatically adjust the translation style based on the original content type (news, technical documents, blogs, etc.)
- Technical Terms: Retain the original English term in parentheses when it first appears, and use the Chinese term directly in subsequent references
- Readability: Ensure the translation is reasonable, fluent, and easy to understand
- Format Retention: Preserve the original Markdown structure (headings, lists, code blocks, etc.)
3. 保存文件
3. Save File
将翻译后的内容保存为 Markdown 文件:
- 文件名格式:或
translated-{标题}.mdtranslated-article-{日期时间}.md - 保存到当前工作目录
- Keep all image links unchanged
Save the translated content as a Markdown file:
- File name format: or
translated-{title}.mdtranslated-article-{datetime}.md - Save to the current working directory
- Keep all image links unchanged
4. 输出确认
4. Output Confirmation
完成翻译后,告知用户:
- 文件保存路径
- 翻译字数统计
- 图片数量(如果有)
After completing the translation, inform the user of:
- File save path
- Word count of the translation
- Number of images (if any)
Example Usage
Example Usage
用户请求:
翻译这篇文章 https://example.com/article
执行流程:
- 使用 webReader 工具获取 URL 内容
- 翻译 Markdown 内容为中文
- 保存到
translated-article.md - 告知用户完成情况
User Request:
Translate this article https://example.com/article
Execution Process:
- Use the webReader tool to retrieve the URL content
- Translate the Markdown content into Chinese
- Save to
translated-article.md - Notify the user of the completion status