Update 'Translation'
parent
35acf9c2ea
commit
b0c4ecb287
@ -19,7 +19,7 @@ no:
|
||||
|
||||
Language codes can use any format you want. So you could use "en", "en-US", "English" or whatever else. Just make sure to be consistent to avoid confusing your users. If a strings.yml file is found in the plugin folder, any translations in that will take precedence over the values set in your plugin, which allows full customization by the end-user. Color and formatting codes in translated messages will be automatically converted into formatted text. This behavior can be tweaked using `translator.setColorConversion`.
|
||||
|
||||
To create your translatable messages, create a class extending `TranslatableMessage` like so:
|
||||
To create your translatable messages, create a an enum extending `TranslatableMessage` like so:
|
||||
```java
|
||||
public enum MyTranslatableMessage implements TranslatableMessage {
|
||||
TRANSLATABLE_STRING_1,
|
||||
|
Loading…
x
Reference in New Issue
Block a user