Translatable

Translation container for a multi-platform translation. The default_ translation should never be empty and it should be a string that can be loaded from a language file. The minecraft and bedrock strings can either be a client-side translated message or empty. In that case the default_ string is translated server-side and sent to the client.

Members

Manifest constants

MULTIPLAYER_JOINED
enum MULTIPLAYER_JOINED;
Undocumented in source.
MULTIPLAYER_LEFT
enum MULTIPLAYER_LEFT;
Undocumented in source.

Static functions

all
Translatable all(string translation)
Undocumented in source. Be warned that the author may not have intended to support it.
fromBedrock
Translatable fromBedrock(string translation)
Undocumented in source. Be warned that the author may not have intended to support it.
fromJava
Translatable fromJava(string translation)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

bedrock
string bedrock;

Values.

default_
string default_;
java
string java;

Values.

Examples

// server-side string
Translatable("example.test");

// server-side for minecraft and client-side for bedrock
Translatable("description.help", "", "commands.help.description");

Meta