Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion src/content/docs/adventure/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ GlobalTranslator.translator().addSource(myStore);
```

There are additional methods on the message format translation store to bulk register from [resource bundles](jd:java:java.util.ResourceBundle).
You may also want to use Adventure's `UTF8ResourceBundleControl` utility class to create your bundle.

### Using MiniMessage for translations

Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/paper/dev/api/component-api/i18n.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ some.translation.key=Translated Message: {0}
```java
TranslationStore.StringBased<MessageFormat> store = TranslationStore.messageFormat(Key.key("namespace:value"));

ResourceBundle bundle = ResourceBundle.getBundle("your.plugin.Bundle", Locale.US, UTF8ResourceBundleControl.get());
ResourceBundle bundle = ResourceBundle.getBundle("your.plugin.Bundle", Locale.US);
store.registerAll(Locale.US, bundle, true);
GlobalTranslator.translator().addSource(store);
```
Expand Down