public class TranslatedMessages extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
activeTranslation |
static String |
DEFAULT_LANG |
static String |
DEFAULT_PREFIX |
static List<String> |
LANGS |
static String |
PLATFORM_PROVIDER_ID |
Constructor and Description |
---|
TranslatedMessages() |
Modifier and Type | Method and Description |
---|---|
static String |
getDefaultLang() |
static String |
getLang(UUID playerId) |
static String |
getStringFromLang(String lang,
String key,
Object... placeholders) |
static List<String> |
getStringListFromLang(String lang,
String key,
Object... placeholders) |
static void |
init() |
static void |
loadMessages() |
static void |
registerTranslationProviderFactory(String id,
TranslationProviderFactory factory) |
public static final String PLATFORM_PROVIDER_ID
public static final String DEFAULT_PREFIX
public static String DEFAULT_LANG
public static boolean activeTranslation
public static void init()
public static void loadMessages()
public static void registerTranslationProviderFactory(String id, TranslationProviderFactory factory)
public static String getDefaultLang()
public static List<String> getStringListFromLang(String lang, String key, Object... placeholders)