public class LocaleUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static Map<String,Map<String,String>> |
LOCALE_MAPPINGS |
| Constructor and Description |
|---|
LocaleUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
downloadAndLoadLocale(String locale)
Downloads a locale from Mojang if its not already loaded
|
static String |
getLocaleString(String messageText,
String locale)
Translate the given language string into the given locale, or falls back to the default locale
|
static void |
init() |
public static void downloadAndLoadLocale(String locale)
locale - Locale to download and loadpublic static String getLocaleString(String messageText, String locale)
messageText - Language string to translatelocale - Locale to translate topublic static void init()
Copyright © 2021 GeyserMC. All rights reserved.