Skip to content

Conversation

rice-awa
Copy link

@rice-awa rice-awa commented Feb 4, 2025

更新了150个文件的翻译(包括之前只翻译了一部分内容的文件),详见附件的文件列表
file_list.json

有个地方不知道怎么处理,就是新版本删除了runCommandAsync方法(在server.Entityserver.Dimension中),但是考虑到有些用户可能用的不是最新版sapi,但是用的是这个项目的ts文档,所以我的版本保留了该方法并加上了一个新的标签 “@attention”,不需要可以去掉:

	 * @attention 注:此方法在最新版已被删除,这里为了兼容性保留
	 * @remarks
	 * 从该实体的上下文中运行特定命令(异步)。注意,在给定的 tick 中最多可以运行 128 个异步命令。
	 *
	 * Runs a particular command asynchronously from the context of
	 * this entity. Note that there is a maximum queue of 128
	 * asynchronous commands that can be run in a given tick.
	 *
	 * @param commandString
	 * 要运行的命令。注意,命令字符串不应以斜杠开头。
	 *
	 * Command to run. Note that command strings should not start
	 * with slash.
	 * @returns
	 * 对于返回数据的命令,将返回包含命令响应值的 JSON 结构。
	 *
	 * For commands that return data, returns a JSON structure with
	 * command response values.
	 * @throws 此函数可能会抛出错误。
	 *
	 * This function can throw errors.
	 */
	runCommandAsync(commandString: string): Promise<CommandResult>;

[基于GPT-4o的翻译,大部分人工校对过,有一些可能没来得及看,还有一点原因就是原文有点抽象看不懂]

目前最大的问题就是translate-pieces/server/enums中的大部分文件都是中文在下英文在上,因为翻译的时候提示词搞错了,提示词用你ai翻译那个库改的,但是看了下翻译规则是先中文翻译后英文原文,我都翻译完enums了才发现的😭😭,不过应该不影响阅读

文件均已同步最新版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant