Skip to content

feat(i18n): Adventure translations with editable lang files - #121

Merged
Zoriot merged 2 commits into
mainfrom
feature/i18n-adventure-translations
Oct 31, 2026
Merged

Zoriot merged 2 commits into
mainfrom
feature/i18n-adventure-translations

Conversation

@Zoriot

@Zoriot Zoriot commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add Adventure GlobalTranslator i18n (MiniMessage + UTF-8 bundles, stable btt.* keys, configurable chat <prefix>).
  • Migrate player-facing strings across common/network/map/updater, navigation/warps, generator, block palette, stats, and shared menus.
  • Copy messages into plugins/BuildTeamTools/lang/, merge new keys on update without overwriting edits, load extra locale files, and reload on /btt reload-config.

Notes

  • Console startup banners in ModuleHandler still use legacy §/ChatColor (ops-only; left for a follow-up cleanup).
  • Cloud RichDescriptions are unchanged.

Test plan

  • Fresh start creates plugins/BuildTeamTools/lang/messages_en_US.properties
  • Edit a string on disk → /btt reload-config → message updates in-game
  • Customized key survives plugin update; new keys are appended
  • Drop messages_de_DE.properties and confirm a client on de_DE gets those strings (fallback to en_US otherwise)
  • Spot-check menus/commands: warps, navigator, generator, block palette, /btt help/info
  • ./gradlew test

@Zoriot Zoriot self-assigned this Oct 31, 2026
@Zoriot Zoriot added this to the Release v0.4.0 milestone Oct 31, 2026
@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Qodana for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com

@Zoriot
Zoriot force-pushed the feature/i18n-adventure-translations branch 3 times, most recently from 934ae6a to 4de214b Compare October 31, 2026 20:26
Introduce MiniMessage resource-bundle translations with stable btt.* keys,
configurable <prefix>, editable plugins/.../lang/ sync with merge-on-update,
and reload support.
Wire modules, menus and items through Messages/ItemBuilder, replace legacy
§/ChatColor console and UI formatting, and keep AnvilGUI titles on the string
bridge until upstream Component support exists.
@Zoriot
Zoriot force-pushed the feature/i18n-adventure-translations branch from 4de214b to 82d1341 Compare October 31, 2026 20:27
@Zoriot
Zoriot merged commit 975793f into main Oct 31, 2026
4 checks passed
@Zoriot
Zoriot deleted the feature/i18n-adventure-translations branch October 31, 2026 20:30
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