Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per-player localization #101

Merged
merged 6 commits into from
Jan 30, 2024
Merged

Per-player localization #101

merged 6 commits into from
Jan 30, 2024

Conversation

rymiel
Copy link
Collaborator

@rymiel rymiel commented Jan 30, 2024

This change allows for Bolt to display messages to the user in the language they have picked in the settings of their Minecraft client.

This is controlled by the new per-player-locale config option. The language config option is still used, even if per-player locales are enabled. It will be used as the fallback language if a player is using a language the server does not have localization for. It is also the language used for the console.

Additionally, multiple custom localization files can be provided. Any properties files placed in the plugin's data folder will all be loaded, with custom translations taking precedence over built-in ones.

This change allows for Bolt to display messages to the user in the
language they have picked in the settings of their Minecraft client.

This is controlled by the new `per-player-locale` config option. The
`language` config option is still used, even if per-player locales are
enabled. It will be used as the fallback language if a player is using a
language the server does not have a localization for. It is also the
language used for the console.

Additionally, multiple custom localization files can be provided. Any
properties files placed in the plugin's data folder will all be loaded,
with custom translations taking precedence over built-in ones.
@pop4959 pop4959 added the enhancement New feature or request label Jan 30, 2024
@pop4959
Copy link
Owner

pop4959 commented Jan 30, 2024

Thank you so much, this is amazing!

@pop4959 pop4959 merged commit 99760d3 into pop4959:master Jan 30, 2024
1 check passed
@rymiel rymiel deleted the feat/locale branch January 30, 2024 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants