Repository navigation
Commands: Changed the answers to translatable keys with named arguments - #6
Merged
Merged
Conversation
whereareiam
force-pushed
the
feature/commands-translatable
branch
from
November 9, 2026 09:17
3cfcad0 to
9aa7c2e
Compare
… arguments ExtensionCommands sends each answer as Component.translatable(<prefix> + message) with arguments the host's factory names (Semantica's TextArgument::of), so the host's translator words it for each sender. A state and a reason are translatable components themselves; a count stays a number. Each command is described by Commandant's TranslatableDescription of <prefix>description.<name>, so Commandant's help is translated too. Chassis ships no wording: the keys and their arguments are the contract, and the host writes the messages. The MiniMessage rendering, ExtensionMessages and Builder#messages are gone. Commandant moves to dev-b9903b5, the development build with translatable descriptions. The module compiles against Adventure 4.25 and is tested on 5.2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
whereareiam
force-pushed
the
feature/commands-translatable
branch
from
November 9, 2026 09:18
9aa7c2e to
63ed35d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ExtensionCommandsno longer renders MiniMessage itself. Each answer is nowComponent.translatable(<prefix> + message, arguments...), so the host's translator in Adventure'sGlobalTranslatorcan word it for each sender's language. Arbor needs this to translate/arbor module ….keys(String)sets the key prefix. It defaults to<root>.<kind>., which for Arbor isarbor.module..arguments(BiFunction<String, Object, ComponentLike>)names each argument, for example Semantica'sTextArgument::of. Chassis does not depend on Semantica. Without this factory, the values are passed by position.countis anInteger.state(state.enabled|disabled|waiting|failed) andreason(reason{why}) are translatable components of their own.list.header{count},list.line{id, version, state, reason},list.footer,list.empty,info{… name, description, authors, jar},enabled|disabled|reloaded{id, version, state, reason},rescanned{count},unknown{id},refused{id, why},description.<command>. They are listed in the class Javadoc and indocs/content/developers/commands/.TranslatableDescription.of(<prefix> + "description." + name)(Commandantdev-b9903b5, the development build that includes Help: Changed help and pagination to translatable components commandant#17).ExtensionMessagesis removed. The keys and arguments are the contract, and the host writes the messages in its own translations. The guide shows an example.ExtensionMessages,Builder#messages(...)and the MiniMessage rendering, with no compatibility path. The module no longer needs MiniMessage. It compiles against Adventure 4.25, and its tests run on Adventure 5.2.0 (the version Arbor bundles).API change to a public type of
chassis-adapter-commandant. It is labelledskip-changelogbecause the adapter has not been released yet (there are no release tags).Release notes
Area: Descriptionwith a listed areaskip-changelog, because the adapter has never shippedmajornot needed, since nothing released changesChecks
ExtensionCommandsTestchecks keys and argument names)docs/content/updated🤖 Generated with Claude Code