@Environment(value=CLIENT) public class TranslationStorage extends Language
Modifier and Type | Field and Description |
---|---|
private static Logger |
LOGGER |
private boolean |
rightToLeft |
private Map<String,String> |
translations |
Modifier | Constructor and Description |
---|---|
private |
TranslationStorage(Map<String,String> translations,
boolean rightToLeft) |
Modifier and Type | Method and Description |
---|---|
String |
get(String key) |
boolean |
hasTranslation(String key) |
boolean |
isRightToLeft() |
private static void |
load(List<Resource> resources,
Map<String,String> translationMap) |
static TranslationStorage |
load(ResourceManager resourceManager,
List<LanguageDefinition> definitions) |
OrderedText |
reorder(StringVisitable text) |
getInstance, load, reorder, setInstance
private static final Logger LOGGER
private final boolean rightToLeft
public static TranslationStorage load(ResourceManager resourceManager, List<LanguageDefinition> definitions)
public boolean hasTranslation(String key)
hasTranslation
in class Language
public boolean isRightToLeft()
isRightToLeft
in class Language
public OrderedText reorder(StringVisitable text)