Skip to content

Command formatting - #164

Merged
UltraProdigy merged 3 commits into
masterfrom
formatNumbers
Aug 6, 2026
Merged

UltraProdigy merged 3 commits into
masterfrom
formatNumbers

Conversation

@Connor-Colenso

Copy link
Copy Markdown

Some clean up of command handling. Introduces proper localisation, number formatting and some safeguards. This project has a chinese lang file so would be nice if someone can translated my lang entries for that at some point.

image image image

Connor Colenso added 2 commits August 2, 2026 03:02
@Connor-Colenso Connor-Colenso added Chore Buildscript update, dep update, adaptation to trivial breaking changes, etc. Refactor For PRs rewriting a part of the code to have a nicer code overall. labels Aug 5, 2026

@cubefury cubefury left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, thank you for your PR!

Codewise looks good, just some minor rewording of the langkeys is needed. I think some of the logical subclassing of the commands is a little excessive, eg. add.chat.add.all.currency.response -> add.all_currency.response. I've indicated a couple other examples in the langfile itself, but it applies in general to most of the new langkeys you've added.

Thanks for the help!

Comment thread src/main/resources/assets/vendingmachine/lang/en_US.lang Outdated
Comment thread src/main/resources/assets/vendingmachine/lang/en_US.lang Outdated
Comment thread src/main/resources/assets/vendingmachine/lang/en_US.lang Outdated
@Connor-Colenso

Copy link
Copy Markdown
Author

Cleaned up the lang entries and removed the 0 case, defaults to just add now.

@cubefury cubefury left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!!

@UltraProdigy
UltraProdigy merged commit ac07812 into master Aug 6, 2026
1 check passed
@UltraProdigy
UltraProdigy deleted the formatNumbers branch August 6, 2026 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Chore Buildscript update, dep update, adaptation to trivial breaking changes, etc. Refactor For PRs rewriting a part of the code to have a nicer code overall.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants