<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh">
	<id>https://wiki.xdi8.top/index.php?action=history&amp;feed=atom&amp;title=LNNBot%2FWhatCommands%E6%8C%87%E4%BB%A4%2Ftranslate</id>
	<title>LNNBot/WhatCommands指令/translate - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.xdi8.top/index.php?action=history&amp;feed=atom&amp;title=LNNBot%2FWhatCommands%E6%8C%87%E4%BB%A4%2Ftranslate"/>
	<link rel="alternate" type="text/html" href="https://wiki.xdi8.top/index.php?title=LNNBot/WhatCommands%E6%8C%87%E4%BB%A4/translate&amp;action=history"/>
	<updated>2026-04-17T06:57:22Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://wiki.xdi8.top/index.php?title=LNNBot/WhatCommands%E6%8C%87%E4%BB%A4/translate&amp;diff=42775&amp;oldid=prev</id>
		<title>DGCK81LNN：​/* 历史 */</title>
		<link rel="alternate" type="text/html" href="https://wiki.xdi8.top/index.php?title=LNNBot/WhatCommands%E6%8C%87%E4%BB%A4/translate&amp;diff=42775&amp;oldid=prev"/>
		<updated>2025-12-16T09:55:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;历史&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2025年12月16日 (二) 17:55的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l13&quot;&gt;第13行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第13行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== 历史 ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== 历史 ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;本 W/C 指令最初由 {{LNN}} 于2024年10月13日创建，当时使用两个不同的免费翻译 API（&amp;lt;nowiki&amp;gt;https://findmyip.net/api/translate.php 和 https://translate.cloudflare.jaxing.cc&amp;lt;/nowiki&amp;gt;，取自 npm 包 koishi-plugin-universal-translation 版本 0.3.0 的编译后代码），其支持的语言有所不同。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;本 W/C 指令最初由 {{LNN}} 于2024年10月13日创建，当时使用两个不同的免费翻译 API &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;处理已知源语言和自动检测源语言的请求&lt;/ins&gt;（&amp;lt;nowiki&amp;gt;https://findmyip.net/api/translate.php 和 https://translate.cloudflare.jaxing.cc&amp;lt;/nowiki&amp;gt;，取自 npm 包 koishi-plugin-universal-translation 版本 0.3.0 的编译后代码），&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;且&lt;/ins&gt;其支持的语言有所不同。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;后来 API 效果不佳，2025年6月，{{U|Cycwin}} 制作了基于小牛翻译 API 且参数语法不同的新 W/C 指令 &amp;lt;code&amp;gt;translate1.1&amp;lt;/code&amp;gt;，它支持道本语（toki pona）、逻辑语（lojban）两门人造语言，且在中英等大语种对译上表现优秀。不过，为了隐藏 API 密钥和绕过 WAF，请求经过了两个不同服务器上的 PHP 脚本转发，中途由于参数编解码不规范经常出现故障，表现为文本包含换行时报错等问题。尽管如此，&amp;lt;code&amp;gt;translate1.1&amp;lt;/code&amp;gt; 的出现仍充分展示了小牛翻译 API 的优势。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;后来 API 效果不佳，2025年6月，{{U|Cycwin}} 制作了基于小牛翻译 API 且参数语法不同的新 W/C 指令 &amp;lt;code&amp;gt;translate1.1&amp;lt;/code&amp;gt;，它支持道本语（toki pona）、逻辑语（lojban）两门人造语言，且在中英等大语种对译上表现优秀。不过，为了隐藏 API 密钥和绕过 WAF，请求经过了两个不同服务器上的 PHP 脚本转发，中途由于参数编解码不规范经常出现故障，表现为文本包含换行时报错等问题。尽管如此，&amp;lt;code&amp;gt;translate1.1&amp;lt;/code&amp;gt; 的出现仍充分展示了小牛翻译 API 的优势。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;2025年8月7日，{{LNN}} 自行注册 API 密钥后将 W/C 指令 &amp;lt;code&amp;gt;translate&amp;lt;/code&amp;gt; 更新为使用小牛翻译 API。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;2025年8月7日，{{LNN}} 自行注册 API 密钥后将 W/C 指令 &amp;lt;code&amp;gt;translate&amp;lt;/code&amp;gt; 更新为使用小牛翻译 API。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>DGCK81LNN</name></author>
	</entry>
	<entry>
		<id>https://wiki.xdi8.top/index.php?title=LNNBot/WhatCommands%E6%8C%87%E4%BB%A4/translate&amp;diff=42763&amp;oldid=prev</id>
		<title>2025年12月13日 (六) 13:03 DGCK81LNN</title>
		<link rel="alternate" type="text/html" href="https://wiki.xdi8.top/index.php?title=LNNBot/WhatCommands%E6%8C%87%E4%BB%A4/translate&amp;diff=42763&amp;oldid=prev"/>
		<updated>2025-12-13T13:03:53Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2025年12月13日 (六) 21:03的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l15&quot;&gt;第15行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第15行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;本 W/C 指令最初由 {{LNN}} 于2024年10月13日创建，当时使用两个不同的免费翻译 API（&amp;lt;nowiki&amp;gt;https://findmyip.net/api/translate.php 和 https://translate.cloudflare.jaxing.cc&amp;lt;/nowiki&amp;gt;，取自 npm 包 koishi-plugin-universal-translation 版本 0.3.0 的编译后代码），其支持的语言有所不同。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;本 W/C 指令最初由 {{LNN}} 于2024年10月13日创建，当时使用两个不同的免费翻译 API（&amp;lt;nowiki&amp;gt;https://findmyip.net/api/translate.php 和 https://translate.cloudflare.jaxing.cc&amp;lt;/nowiki&amp;gt;，取自 npm 包 koishi-plugin-universal-translation 版本 0.3.0 的编译后代码），其支持的语言有所不同。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;后来 API 效果不佳，2025年6月&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;，cycwin &lt;/del&gt;制作了基于小牛翻译 API 且参数语法不同的新 W/C 指令 &amp;lt;code&amp;gt;translate1.1&amp;lt;/code&amp;gt;，它支持道本语（toki pona）、逻辑语（lojban）两门人造语言，且在中英等大语种对译上表现优秀。不过，为了隐藏 API 密钥和绕过 WAF，请求经过了两个不同服务器上的 PHP 脚本转发，中途由于参数编解码不规范经常出现故障，表现为文本包含换行时报错等问题。尽管如此，&amp;lt;code&amp;gt;translate1.1&amp;lt;/code&amp;gt; 的出现仍充分展示了小牛翻译 API 的优势。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;后来 API 效果不佳，2025年6月&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;，{{U|Cycwin}} &lt;/ins&gt;制作了基于小牛翻译 API 且参数语法不同的新 W/C 指令 &amp;lt;code&amp;gt;translate1.1&amp;lt;/code&amp;gt;，它支持道本语（toki pona）、逻辑语（lojban）两门人造语言，且在中英等大语种对译上表现优秀。不过，为了隐藏 API 密钥和绕过 WAF，请求经过了两个不同服务器上的 PHP 脚本转发，中途由于参数编解码不规范经常出现故障，表现为文本包含换行时报错等问题。尽管如此，&amp;lt;code&amp;gt;translate1.1&amp;lt;/code&amp;gt; 的出现仍充分展示了小牛翻译 API 的优势。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;2025年8月7日，{{LNN}} 自行注册 API 密钥后将 W/C 指令 &amp;lt;code&amp;gt;translate&amp;lt;/code&amp;gt; 更新为使用小牛翻译 API。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;2025年8月7日，{{LNN}} 自行注册 API 密钥后将 W/C 指令 &amp;lt;code&amp;gt;translate&amp;lt;/code&amp;gt; 更新为使用小牛翻译 API。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key xdi8:diff:1.41:old-42726:rev-42763:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>DGCK81LNN</name></author>
	</entry>
	<entry>
		<id>https://wiki.xdi8.top/index.php?title=LNNBot/WhatCommands%E6%8C%87%E4%BB%A4/translate&amp;diff=42726&amp;oldid=prev</id>
		<title>DGCK81LNN：​/* 历史 */</title>
		<link rel="alternate" type="text/html" href="https://wiki.xdi8.top/index.php?title=LNNBot/WhatCommands%E6%8C%87%E4%BB%A4/translate&amp;diff=42726&amp;oldid=prev"/>
		<updated>2025-12-02T23:08:49Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;历史&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2025年12月3日 (三) 07:08的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l15&quot;&gt;第15行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第15行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;本 W/C 指令最初由 {{LNN}} 于2024年10月13日创建，当时使用两个不同的免费翻译 API（&amp;lt;nowiki&amp;gt;https://findmyip.net/api/translate.php 和 https://translate.cloudflare.jaxing.cc&amp;lt;/nowiki&amp;gt;，取自 npm 包 koishi-plugin-universal-translation 版本 0.3.0 的编译后代码），其支持的语言有所不同。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;本 W/C 指令最初由 {{LNN}} 于2024年10月13日创建，当时使用两个不同的免费翻译 API（&amp;lt;nowiki&amp;gt;https://findmyip.net/api/translate.php 和 https://translate.cloudflare.jaxing.cc&amp;lt;/nowiki&amp;gt;，取自 npm 包 koishi-plugin-universal-translation 版本 0.3.0 的编译后代码），其支持的语言有所不同。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;后来 API 效果不佳，2025年6月，cycwin 制作了基于小牛翻译 API 且参数语法不同的新 W/C 指令 &amp;lt;code&amp;gt;translate1.1&amp;lt;/code&amp;gt;，&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;但由于&lt;/del&gt;为了隐藏 API 密钥和绕过 WAF，请求经过了两个不同服务器上的 PHP 脚本转发，中途由于参数编解码不规范经常出现故障，表现为文本包含换行时报错等问题。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;后来 API 效果不佳，2025年6月，cycwin 制作了基于小牛翻译 API 且参数语法不同的新 W/C 指令 &amp;lt;code&amp;gt;translate1.1&amp;lt;/code&amp;gt;，&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;它支持道本语（toki pona）、逻辑语（lojban）两门人造语言，且在中英等大语种对译上表现优秀。不过，&lt;/ins&gt;为了隐藏 API 密钥和绕过 WAF，请求经过了两个不同服务器上的 PHP 脚本转发，中途由于参数编解码不规范经常出现故障，表现为文本包含换行时报错等问题&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;。尽管如此，&amp;lt;code&amp;gt;translate1.1&amp;lt;/code&amp;gt; 的出现仍充分展示了小牛翻译 API 的优势&lt;/ins&gt;。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;2025年8月7日，{{LNN}} 自行注册 API 密钥后将 W/C 指令 &amp;lt;code&amp;gt;translate&amp;lt;/code&amp;gt; 更新为使用小牛翻译 API。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;2025年8月7日，{{LNN}} 自行注册 API 密钥后将 W/C 指令 &amp;lt;code&amp;gt;translate&amp;lt;/code&amp;gt; 更新为使用小牛翻译 API。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>DGCK81LNN</name></author>
	</entry>
	<entry>
		<id>https://wiki.xdi8.top/index.php?title=LNNBot/WhatCommands%E6%8C%87%E4%BB%A4/translate&amp;diff=42725&amp;oldid=prev</id>
		<title>DGCK81LNN：​/* 历史 */</title>
		<link rel="alternate" type="text/html" href="https://wiki.xdi8.top/index.php?title=LNNBot/WhatCommands%E6%8C%87%E4%BB%A4/translate&amp;diff=42725&amp;oldid=prev"/>
		<updated>2025-12-02T04:05:57Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;历史&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2025年12月2日 (二) 12:05的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l15&quot;&gt;第15行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第15行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;本 W/C 指令最初由 {{LNN}} 于2024年10月13日创建，当时使用两个不同的免费翻译 API（&amp;lt;nowiki&amp;gt;https://findmyip.net/api/translate.php 和 https://translate.cloudflare.jaxing.cc&amp;lt;/nowiki&amp;gt;，取自 npm 包 koishi-plugin-universal-translation 版本 0.3.0 的编译后代码），其支持的语言有所不同。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;本 W/C 指令最初由 {{LNN}} 于2024年10月13日创建，当时使用两个不同的免费翻译 API（&amp;lt;nowiki&amp;gt;https://findmyip.net/api/translate.php 和 https://translate.cloudflare.jaxing.cc&amp;lt;/nowiki&amp;gt;，取自 npm 包 koishi-plugin-universal-translation 版本 0.3.0 的编译后代码），其支持的语言有所不同。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;后来 API 效果不佳，2025年6月，cycwin 制作了基于小牛翻译 API 且参数语法不同的新 W/C 指令 &amp;lt;code&amp;gt;translate1.1&amp;lt;/code&amp;gt;，但由于为了隐藏 API 密钥和绕过 WAF，请求经过了两个不同服务器上的 PHP 脚本转发，中途&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;在&lt;/del&gt;参数编解码&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;过程中&lt;/del&gt;经常出现故障，表现为文本包含换行时报错等问题。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;后来 API 效果不佳，2025年6月，cycwin 制作了基于小牛翻译 API 且参数语法不同的新 W/C 指令 &amp;lt;code&amp;gt;translate1.1&amp;lt;/code&amp;gt;，但由于为了隐藏 API 密钥和绕过 WAF，请求经过了两个不同服务器上的 PHP 脚本转发，中途&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;由于&lt;/ins&gt;参数编解码&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;不规范&lt;/ins&gt;经常出现故障，表现为文本包含换行时报错等问题。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;2025年8月7日，{{LNN}} 自行注册 API 密钥后将 W/C 指令 &amp;lt;code&amp;gt;translate&amp;lt;/code&amp;gt; 更新为使用小牛翻译 API。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;2025年8月7日，{{LNN}} 自行注册 API 密钥后将 W/C 指令 &amp;lt;code&amp;gt;translate&amp;lt;/code&amp;gt; 更新为使用小牛翻译 API。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>DGCK81LNN</name></author>
	</entry>
	<entry>
		<id>https://wiki.xdi8.top/index.php?title=LNNBot/WhatCommands%E6%8C%87%E4%BB%A4/translate&amp;diff=42724&amp;oldid=prev</id>
		<title>DGCK81LNN：​/* 历史 */</title>
		<link rel="alternate" type="text/html" href="https://wiki.xdi8.top/index.php?title=LNNBot/WhatCommands%E6%8C%87%E4%BB%A4/translate&amp;diff=42724&amp;oldid=prev"/>
		<updated>2025-12-02T04:03:07Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;历史&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2025年12月2日 (二) 12:03的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l15&quot;&gt;第15行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第15行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;本 W/C 指令最初由 {{LNN}} 于2024年10月13日创建，当时使用两个不同的免费翻译 API（&amp;lt;nowiki&amp;gt;https://findmyip.net/api/translate.php 和 https://translate.cloudflare.jaxing.cc&amp;lt;/nowiki&amp;gt;，取自 npm 包 koishi-plugin-universal-translation 版本 0.3.0 的编译后代码），其支持的语言有所不同。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;本 W/C 指令最初由 {{LNN}} 于2024年10月13日创建，当时使用两个不同的免费翻译 API（&amp;lt;nowiki&amp;gt;https://findmyip.net/api/translate.php 和 https://translate.cloudflare.jaxing.cc&amp;lt;/nowiki&amp;gt;，取自 npm 包 koishi-plugin-universal-translation 版本 0.3.0 的编译后代码），其支持的语言有所不同。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;后来 API 效果不佳，2025年6月，cycwin 制作了基于小牛翻译 API 的新 W/C 指令 &amp;lt;code&amp;gt;translate1.1&amp;lt;/code&amp;gt;，但由于为了隐藏 API 密钥和绕过 WAF，请求经过了两个不同服务器上的 PHP 脚本转发，中途在参数编解码过程中经常出现故障，表现为文本包含换行时报错等问题。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;后来 API 效果不佳，2025年6月，cycwin 制作了基于小牛翻译 API &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;且参数语法不同&lt;/ins&gt;的新 W/C 指令 &amp;lt;code&amp;gt;translate1.1&amp;lt;/code&amp;gt;，但由于为了隐藏 API 密钥和绕过 WAF，请求经过了两个不同服务器上的 PHP 脚本转发，中途在参数编解码过程中经常出现故障，表现为文本包含换行时报错等问题。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;2025年8月7日，{{LNN}} 自行注册 API 密钥后将 W/C 指令 &amp;lt;code&amp;gt;translate&amp;lt;/code&amp;gt; 更新为使用小牛翻译 API。&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;2025年8月7日，{{LNN}} 自行注册 API 密钥后将 W/C 指令 &amp;lt;code&amp;gt;translate&amp;lt;/code&amp;gt; 更新为使用小牛翻译 API。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>DGCK81LNN</name></author>
	</entry>
	<entry>
		<id>https://wiki.xdi8.top/index.php?title=LNNBot/WhatCommands%E6%8C%87%E4%BB%A4/translate&amp;diff=42723&amp;oldid=prev</id>
		<title>DGCK81LNN：​创建页面，内容为“WhatCommands 指令 &#039;&#039;&#039;&lt;code&gt;translate&lt;/code&gt;&#039;&#039;&#039; 使用小牛翻译 API 对给定的文本进行机器翻译。  == 用法 ==   ¿¿translate [-f 源语言] [-t 目标语言] 文本...  源和目标语言需要输入语言代码，参考小牛翻译 API 文档：https://niutrans.com/documents/contents/transapi_text_v2#languageList  另外，若使用道本语的标准 ISO-639-3 代码 &lt;code&gt;tok&lt;/code&gt;，程序会自动将其纠正为小牛翻译使用的非标…”</title>
		<link rel="alternate" type="text/html" href="https://wiki.xdi8.top/index.php?title=LNNBot/WhatCommands%E6%8C%87%E4%BB%A4/translate&amp;diff=42723&amp;oldid=prev"/>
		<updated>2025-12-02T04:01:17Z</updated>

		<summary type="html">&lt;p&gt;创建页面，内容为“WhatCommands 指令 &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;translate&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; 使用小牛翻译 API 对给定的文本进行机器翻译。  == 用法 ==   ¿¿translate [-f 源语言] [-t 目标语言] 文本...  源和目标语言需要输入语言代码，参考小牛翻译 API 文档：https://niutrans.com/documents/contents/transapi_text_v2#languageList  另外，若使用道本语的标准 ISO-639-3 代码 &amp;lt;code&amp;gt;tok&amp;lt;/code&amp;gt;，程序会自动将其纠正为小牛翻译使用的非标…”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;WhatCommands 指令 &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;translate&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; 使用小牛翻译 API 对给定的文本进行机器翻译。&lt;br /&gt;
&lt;br /&gt;
== 用法 ==&lt;br /&gt;
&lt;br /&gt;
 ¿¿translate [-f 源语言] [-t 目标语言] 文本...&lt;br /&gt;
&lt;br /&gt;
源和目标语言需要输入语言代码，参考小牛翻译 API 文档：https://niutrans.com/documents/contents/transapi_text_v2#languageList&lt;br /&gt;
&lt;br /&gt;
另外，若使用道本语的标准 ISO-639-3 代码 &amp;lt;code&amp;gt;tok&amp;lt;/code&amp;gt;，程序会自动将其纠正为小牛翻译使用的非标准代码 &amp;lt;code&amp;gt;toki&amp;lt;/code&amp;gt;。&lt;br /&gt;
&lt;br /&gt;
未指定目标语言时，若源语言为中文则翻译成英语，否则翻译成中文。若源语言也未指定，程序会根据文本中汉字和日语假名的占比尝试判断，可能与小牛翻译 API 自动判断的结果不同。&lt;br /&gt;
&lt;br /&gt;
== 历史 ==&lt;br /&gt;
&lt;br /&gt;
本 W/C 指令最初由 {{LNN}} 于2024年10月13日创建，当时使用两个不同的免费翻译 API（&amp;lt;nowiki&amp;gt;https://findmyip.net/api/translate.php 和 https://translate.cloudflare.jaxing.cc&amp;lt;/nowiki&amp;gt;，取自 npm 包 koishi-plugin-universal-translation 版本 0.3.0 的编译后代码），其支持的语言有所不同。&lt;br /&gt;
&lt;br /&gt;
后来 API 效果不佳，2025年6月，cycwin 制作了基于小牛翻译 API 的新 W/C 指令 &amp;lt;code&amp;gt;translate1.1&amp;lt;/code&amp;gt;，但由于为了隐藏 API 密钥和绕过 WAF，请求经过了两个不同服务器上的 PHP 脚本转发，中途在参数编解码过程中经常出现故障，表现为文本包含换行时报错等问题。&lt;br /&gt;
&lt;br /&gt;
2025年8月7日，{{LNN}} 自行注册 API 密钥后将 W/C 指令 &amp;lt;code&amp;gt;translate&amp;lt;/code&amp;gt; 更新为使用小牛翻译 API。&lt;/div&gt;</summary>
		<author><name>DGCK81LNN</name></author>
	</entry>
</feed>