parley
parley 是一款适用于 Fabric 26.1.2 的客户端聊天翻译模组。它让你能够用母语阅读聊天内容,并将翻译后的消息发送回去,而服务器端无需安装任何插件。
它会替换原始消息,而不是在下方添加第二行蓝色的翻译文本,从而避免聊天框被刷屏。在可能的情况下,它会保留服务器的等级、前缀、用户名颜色等样式。
[? ES] ⚲ [Usu] playername: do you want to be my friend?
地球图标显示的是它判断消息来源的语言。如果翻译耗时过长或失败,它将直接显示原始消息,以确保不会有任何内容丢失。
功能特性
- 将玩家聊天翻译成你设定的语言。
- 也可翻译服务器消息,例如广播、tellraw、死亡信息和动作栏信息。
- 保持消息顺序,而不是在几秒后将翻译消息杂乱地发送到聊天中。
- 允许你在消息前添加前缀以进行翻译并发送,仅发送翻译后的内容。
- 允许为单个服务器开启或关闭翻译。
- 允许对特定玩家始终翻译或从不翻译。
- 默认使用 Google Translate,也支持 Deepl 和 LibreTranslate。
- 如果你安装了 Cloth Config 和 Mod Menu,则提供模组菜单设置界面。
此为纯客户端模组。其他玩家无需安装 parley,服务器也无需安装。
快速设置:阅读西班牙语并发送西班牙语
/parley lang en
/parley players on
/parley system on
/parley outgoing es
然后在普通聊天中输入:
> hello everyone, can i join
它将仅发送西班牙语的翻译版本。> 前缀不会被发送。
命令
| 命令 |
功能 |
/parley |
显示当前 parley 的设置状态。 |
/parley toggle |
开启或关闭所有翻译功能。 |
/parley lang <code> |
设置你想要阅读的语言,如 en、es 或 ja。 |
/parley languages [filter] |
显示语言代码。也可以使用 parley languages spanish。 |
/parley players on|off|status |
开启或关闭玩家消息翻译。 |
/parley system on|off|status |
开启或关闭服务器消息翻译。 |
/parley prefix [value|off] |
更改发送消息的前缀,默认为 >。 |
/parley outgoing [code|same] |
设置发送翻译消息时使用的语言。 |
/parley translate <message> |
翻译一条消息并发送。 |
/parley provider <google|deepl|libre> |
更改翻译提供商。 |
/parley test |
检查你的翻译提供商是否正常工作。 |
/parley player <name> |
修改特定玩家的翻译模式(正常、始终翻译、从不翻译)。 |
/parley server on|off |
在当前服务器上开启或关闭 parley。 |
/parley cache clear |
清除已保存的翻译缓存。 |
翻译提供商
- Google Translate 是默认选项,无需 API Key 即可使用。如果你有 Google Cloud Key,也可以添加。
- Deepl 需要 Deepl API Key。
- LibreTranslate 可以使用公共服务器,也可以自行托管。
你可以在模组菜单或 config/parley.json 文件中更改提供商相关设置。
重要提示
翻译并非 100% 准确。它可能会误解俚语、专有名词、短消息、拼写错误、混合语言、笑话或服务器专用术语。它适合用于理解聊天内容,但请勿完全依赖它处理交易、规则、工作人员消息等关键信息,因为这些场景中对准确性要求极高。
parley 会将翻译后的消息直接从你的游戏发送至你所选择的提供商。它不使用 parley 服务器,也不会收集分析数据。如果你添加了 API Key,请确保 config/parley.json 文件保密。
某些服务器拥有高度自定义的聊天系统。parley 会在服务器将聊天内容传递给 Minecraft 时保留正常的颜色和格式,但它无法保证所有奇怪的自定义聊天插件都能完美显示。
依赖项
- Minecraft Java 26.1.2
- Fabric Loader 0.18.6 或更高版本
- Java 25
- Fabric API
- Fabric Language Kotlin
Cloth Config 和 Mod Menu 为可选依赖,但它们能让设置更加便捷。
许可证
MIT
parley
parley is a client side chat translator for fabric 26.1.2. it lets you read chat in your language, and send translated messages back without the server needing to install anything.
it replaces the message instead of putting a second blue translation line under it, so chat doesnt get flooded. it keeps the servers rank, prefix, username colors and stuff when it can.
[? ES] ⚲ [Usu] playername: do you want to be my friend?
the globe says what language it thinks the message came from. if translation takes too long or fails, it just shows the original message so nothing should disappear.
what it does
- translates player chat into whatever language you set.
- can translate server messages too, like broadcasts, tellraw, death messages, and action bar stuff.
- keeps messages in order instead of sending translations a few seconds later all over chat.
- lets you type a prefix before your message to translate and send it. only the translation gets sent.
- lets you turn translation on or off for one server.
- lets you always translate, or never translate, one player.
- works with google translate by default. deepl and libretranslate are there too if you want them.
- has mod menu settings if you have cloth config and mod menu installed.
this is client side only. other players dont need parley and servers dont need to install it.
quick setup, read spanish and write spanish
/parley lang en
/parley players on
/parley system on
/parley outgoing es
then type this in normal chat:
> hello everyone, can i join
it will only send the spanish translation. the > doesnt get sent.
commands
| command |
what it does |
/parley |
shows what parley is set to right now. |
/parley toggle |
turns all translation on or off. |
/parley lang <code> |
sets the language you want to read. like en, es, or ja. |
/parley languages [filter] |
shows language codes. parley languages spanish works too. |
/parley players on|off|status |
turns player messages on or off. |
/parley system on|off|status |
turns server messages on or off. |
/parley prefix [value|off] |
changes the outgoing prefix. default is >. |
/parley outgoing [code|same] |
sets what language prefix messages get sent in. |
/parley translate <message> |
translates a message and sends it. |
/parley provider <google|deepl|libre> |
changes translation provider. |
/parley test |
checks if your translation provider works. |
/parley player <name> |
changes one player between normal, always translate, and never translate. |
/parley server on|off |
turns parley on or off for the server you are on. |
/parley cache clear |
clears saved translations. |
providers
- google translate is default and works without putting in a key. you can add a google cloud key if you have one.
- deepl needs a deepl api key.
- libretranslate can use a public server or one you host yourself.
you can change provider stuff in mod menu, or in config/parley.json.
important stuff
translation is not 100% accurate. it can get slang, names, short messages, spelling mistakes, mixed languages, jokes, or server words wrong. its good for understanding chat, but dont trust it completely for important stuff like trades, rules, staff messages, or anything where one wrong word could matter.
parley sends the messages it translates straight from your game to the provider you picked. it doesnt use a parley server and it doesnt collect analytics. if you add an api key, keep config/parley.json private.
some servers have really custom chat systems. parley keeps the normal chat colors and formatting when the server gives it to minecraft, but it cant promise every weird custom chat plugin will look perfect.
needs
- minecraft java 26.1.2
- fabric loader 0.18.6 or newer
- java 25
- fabric api
- fabric language kotlin
cloth config and mod menu are optional, but they make settings easier.
license
mit
评论 0
登录后参与评分
还没有评论,来抢沙发吧