AutoTranslator – 智能 AI 驱动的 Minecraft 模组翻译
一键 AI 翻译——告别未翻译的模组! AutoTranslator 是一款客户端 NeoForge 1.21.1 模组,它使用你配置的任何 AI 模型(本地或云端)批量翻译所有已安装模组的语言文件为简体中文,并自动将其打包为一个资源包以便立即生效。
✨ 主要功能 ? AI 驱动自动化 不再需要手动搜索翻译包。只需配置你的 AI API 端点,点击“开始翻译”,所有缺失的中文条目都会自动生成。几分钟内即可享受完全本地化的体验。
? 内置术语数据库 在向 AI 发送请求之前,该模组会查询本地的 SQLite 字典(源自 CFPA 项目)以查找已知的 Minecraft 术语。这确保了翻译的一致性,并大幅减少了 API 调用次数,从而节省令牌成本。
? i18n 资源包协同作用 与现有的 i18n 资源包(例如 Minecraft-Mod-Language-Modpack)独特集成。该模组可以读取外部中文资源包中的翻译,仅将剩余缺失的条目转发给 AI。这进一步降低了成本并提高了整体质量。
⚙️ 完全透明与控制 游戏内 GUI 便于配置:API URL、密钥、模型名称、本地/远程模式等。
详细的调试日志位于 config/autotranslator/debug.log——记录每次请求、字典命中情况和进度。
白名单/黑名单过滤,仅翻译特定模组。
随时手动停止而不会损坏生成的资源包。
原子资源包替换——临时文件被原子移动至最终资源包,防止不完整读取。
? 快速入门
-
安装 将模组 .jar 放入你的 mods 文件夹并启动游戏。
-
打开配置 在主菜单中,进入 Mods,在列表中找到 AutoTranslator,然后点击配置按钮(齿轮图标)。
-
输入 API 详情 API URL:例如 (云端)或 (本地 LM Studio)。
API Key:对于云服务,输入你的密钥。对于本地模型,任意字符串均可(例如 lm-studio)。
Model Name:确切的模型标识符,例如 deepseek-chat, qwen2.5-7b-instruct。
Local Mode:使用本地 API 时启用(顺序运行任务以避免过载)。
- (可选)高级配置 编辑 config/autotranslator/config.json 以修改隐藏设置(即使在 GUI 中不可见,保存后仍会保留):
timeout_seconds:请求超时时间(秒)(默认 300;建议慢速本地模型设为 600)。
batch_size:每次 AI 调用的条目数(默认 30;如果发生超时,请减少至 10)。
requests_per_second:每秒最大 API 调用次数(默认 5;本地模型可增加此值)。
filter_mode / filter_list:模组过滤(白名单/黑名单)。
system_prompt:自定义 AI 翻译指令。
i18n_resourcepack_name:外部 i18n 资源包文件的名称;设置为 "none" 以禁用(详见 i18n 协同部分)。
- 开始翻译 在开始之前,确保在资源包界面中禁用 AutoTranslation.zip 资源包。
回到配置界面,点击“开始翻译”。
进度显示在底部。完成后,按 F3+T 重新加载资源包。
? i18n 资源包协同作用(详细说明) 如果你有一个社区维护的 i18n 包,例如 Minecraft-Mod-Language-Modpack-Converted-1.21.1.zip,将其放入 resourcepacks 文件夹并更新 config.json:
json
"i18n_resourcepack_name": "Minecraft-Mod-Language-Modpack-Converted-1.21.1.zip"
翻译时,该模组将从该包中提取所有中文字符串,并用它们覆盖自己的输出。只有仍然缺失的键才会发送给 AI。这可以节省超过 70% 的 API 调用。
优先级:i18n 包 > 之前的 AutoTranslator 缓存 > AI 翻译。 启用方法:修改配置后,在 GUI 中点击“Reload File”或重新启动游戏。
⚠️ 重要提示 资源包冲突:在开始新翻译之前,务必在资源包菜单中禁用现有的 AutoTranslation.zip。
网络问题:如果在某些地区下载字典或访问 GitHub 失败,请在启动器的 JVM 参数中添加 -Djava.net.useSystemProxies=true 并启用系统代理。
令牌消耗:使用云 API 时,请注意令牌计费。使用内置字典和 i18n 包可大幅降低成本。
本地模型调整:设置更高的超时时间(例如 600 秒)和更小的批次大小(例如 10)以避免请求超时。
安全性:此模组仅在客户端运行,不修改核心游戏文件,仅添加一个资源包。
? 文件结构 text
config/autotranslator/ ├── config.json # 用户配置 ├── debug.log # 详细翻译日志 └── dict/ └── Dict-Sqlite.db # 自动下载的 Minecraft 术语数据库 resourcepacks/ └── AutoTranslation.zip # 生成的中文资源包
? 开源与归属 本模组的内置翻译数据库源自 CFPATools/i18n-dict,原始数据由 CFPAOrg/Minecraft-Mod-Language-Package 维护,采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可证 (CC BY-NC-SA 4.0)。
模组代码根据 MIT 许可证发布。
? 调试与日志 所有翻译活动都记录在 config/autotranslator/debug.log 中,带有时间戳 ([HH:mm:ss])。日志为中文,方便开发者查看。
实时监控:
bash
tail -f config/autotranslator/debug.log
? 常见问题 Q: 为什么有些条目翻译失败? A: 通常是 API 超时或响应格式错误。增加 timeout_seconds,减少 batch_size,并验证模型名称。
Q: 如何仅翻译特定模组? A: 在 config.json 中将 filter_mode 设置为 whitelist,并将模组 ID 添加到 filter_list(用逗号分隔)。
Q:如何更新内置词典?
A:词典每 7 天自动更新。或者,删除 config/autotranslator/dict/Dict-Sqlite.db 并重新启动游戏。
Q:我可以分享生成的资源包吗? A:当然可以!AutoTranslation.zip 是一个标准的资源包,可以自由分享。


AutoTranslator – Smart AI-Powered Minecraft Mod Translation
One-click AI translation – say goodbye to untranslated mods! AutoTranslator is a client-side NeoForge 1.21.1 mod that uses any AI model you configure (local or cloud) to batch-translate all installed mod language files into Simplified Chinese and automatically pack them as a resource pack for immediate effect.
✨ Key Features ? AI-Powered Automation No more manual searching for translation packs. Just configure your AI API endpoint, click "Start Translation", and all missing Chinese entries are generated automatically. Enjoy a fully localized experience in minutes.
? Built-in Terminology Database Before sending requests to the AI, the mod queries a local SQLite dictionary (sourced from the CFPA project) for known Minecraft terms. This ensures consistent translations and drastically reduces API calls, saving token costs.
? i18n Resource Pack Synergy Unique integration with existing i18n resource packs (e.g., Minecraft-Mod-Language-Modpack). The mod can read translations from an external Chinese resource pack and only forward the remaining missing entries to the AI. This further reduces costs and improves overall quality.
⚙️ Full Transparency & Control In-game GUI for easy configuration: API URL, key, model name, local/remote mode, etc.
Detailed debug log at config/autotranslator/debug.log – tracks every request, dictionary hit, and progress.
Whitelist / Blacklist filtering to translate only specific mods.
Manual stop anytime without corrupting the generated pack.
Atomic resource pack replacement – temporary file is atomically moved to the final pack, preventing incomplete reads.
? Quick Start
-
Install Place the mod .jar into your mods folder and launch the game.
-
Open Configuration From the main menu, go to Mods, find AutoTranslator in the list, and click the Configure button (gear icon).
-
Enter API Details API URL: e.g., (cloud) or (local LM Studio).
API Key: For cloud services, enter your key. For local models, any string works (e.g., lm-studio).
Model Name: Exact model identifier, e.g., deepseek-chat, qwen2.5-7b-instruct.
Local Mode: Enable when using a local API (runs tasks sequentially to avoid overload).
- (Optional) Advanced Configuration Edit config/autotranslator/config.json for hidden settings (preserved across saves even though not in GUI):
timeout_seconds: Request timeout in seconds (default 300; recommend 600 for slow local models).
batch_size: Number of entries per AI call (default 30; reduce to 10 if timeouts occur).
requests_per_second: Max API calls per second (default 5; can be increased for local models).
filter_mode / filter_list: Mod filtering (whitelist/blacklist).
system_prompt: Custom AI translation instructions.
i18n_resourcepack_name: Name of an external i18n resource pack file; set to "none" to disable (see i18n synergy below).
- Start Translation Make sure the AutoTranslation.zip resource pack is disabled in the Resource Packs screen before starting.
Back in the configuration screen, click "Start Translation".
Progress is shown at the bottom. After completion, press F3+T to reload resource packs.
? i18n Resource Pack Synergy (Detailed) If you have a community-maintained i18n pack such as Minecraft-Mod-Language-Modpack-Converted-1.21.1.zip, place it inside the resourcepacks folder and update config.json:
json
"i18n_resourcepack_name": "Minecraft-Mod-Language-Modpack-Converted-1.21.1.zip"
When translating, the mod will extract all Chinese strings from that pack and overwrite its own output with them. Only keys that are still missing will be sent to the AI. This can save over 70% of API calls.
Priority: i18n pack > previous AutoTranslator cache > AI translation. Enabling: After modifying config, click "Reload File" in the GUI or restart the game.
⚠️ Important Notes Resource Pack Conflict: Always disable the existing AutoTranslation.zip in the resource pack menu before starting a new translation.
Network Issues: If dictionary download or GitHub access fails in some regions, add -Djava.net.useSystemProxies=true to your launcher's JVM arguments and enable a system proxy.
Token Consumption: When using cloud APIs, be aware of token billing. Using the built-in dictionary and an i18n pack drastically reduces costs.
Local Model Tuning: Set a higher timeout (e.g., 600 seconds) and smaller batch size (e.g., 10) to avoid request timeouts.
Safety: This mod only runs on the client, does not modify core game files, and only adds a resource pack.
? File Structure text
config/autotranslator/ ├── config.json # User configuration ├── debug.log # Detailed translation log └── dict/ └── Dict-Sqlite.db # Automatically downloaded Minecraft terminology database resourcepacks/ └── AutoTranslation.zip # Generated Chinese resource pack
? Open Source & Attribution This mod's built-in translation database is sourced from CFPATools/i18n-dict, with original data maintained by CFPAOrg/Minecraft-Mod-Language-Package under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License (CC BY-NC-SA 4.0).
The mod code is released under the MIT License.
? Debugging & Logs All translation activities are recorded in config/autotranslator/debug.log with timestamps ([HH:mm:ss]). The log is in Chinese for the developer's convenience.
Monitor it live:
bash
tail -f config/autotranslator/debug.log
? FAQ Q: Why do some entries fail to translate? A: Usually an API timeout or malformed response. Increase timeout_seconds, decrease batch_size, and verify the model name.
Q: How to translate only specific mods? A: Set filter_mode to whitelist and add mod IDs to filter_list (comma-separated) in config.json.
Q: How to update the built-in dictionary? A: The dictionary auto-updates every 7 days. Alternatively, delete config/autotranslator/dict/Dict-Sqlite.db and restart the game.
Q: Can I share the generated resource pack? A: Absolutely! AutoTranslation.zip is a standard resource pack and can be shared freely.


下载 autotranslator
下载 autotranslator
下载 autotranslator
下载 autotranslator
下载 autotranslator
下载 autotranslator
下载 autotranslator
下载 autotranslator
下载 autotranslator
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧