Skip to content

feat: make 'hand' keyword localizable; sync locale files#416

Merged
tastybento merged 4 commits intodevelopfrom
feat/localizable-hand-keyword
Apr 21, 2026
Merged

feat: make 'hand' keyword localizable; sync locale files#416
tastybento merged 4 commits intodevelopfrom
feat/localizable-hand-keyword

Conversation

@tastybento
Copy link
Copy Markdown
Member

Summary

  • Makes the hand keyword in /island donate and /island value localizable via a new island.donate.hand.keyword locale key — English hand always accepted as a fallback for backward compatibility
  • Syncs all 16 non-English locale files with missing keys from en-US.yml
  • Adds the missing island.donate.invalid-item key to all non-English locales
  • Fully translates the island.donate.* section in uk.yml (was entirely in English)
  • Updates uk.yml donate/value command parameter display strings to use Ukrainian keyword (рука)

Code changes

IslandDonateCommand.java

  • "hand".equalsIgnoreCase(args.get(0))isHandKeyword(user, args.get(0)) helper that accepts both English and localized keyword
  • Tab completion returns the localized keyword

IslandValueCommand.java

  • Same localized keyword check for the hand argument

en-US.yml

  • Added island.donate.hand.keyword: "hand"

Test plan

  • IslandDonateCommandTest and IslandValueCommandTest updated and passing
  • mvn test passes (175 tests, 0 failures)

🤖 Generated with Claude Code

tastybento and others added 4 commits April 11, 2026 17:22
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…locales

- Add island.donate.hand.keyword locale key (en-US: "hand") so each
  language can provide its own word for the hand subcommand arg
- IslandDonateCommand: accept both English "hand" and the localized keyword;
  tab-complete shows the localized keyword
- IslandValueCommand: same localizable keyword for HAND arg and tab-complete
- All 16 non-English locales: add island.donate.hand.keyword (translated) and
  island.donate.invalid-item (translated)
- uk.yml: fully translate donate section (parameters, description, all
  messages) and update value command parameters/description

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sonarqubecloud
Copy link
Copy Markdown

@tastybento tastybento merged commit 3650093 into develop Apr 21, 2026
3 checks passed
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