Class LanguageTranslator
java.lang.Object
uk.radialbog9.spigot.manhunt.language.LanguageTranslator
Provides functions to translate language keys to the language configuration.
-
Constructor Details
-
LanguageTranslator
public LanguageTranslator()
-
-
Method Details
-
translate
Gets the specified key from the language configuration then replaces {0}, {1}, etc with the arguments.- Parameters:
key
- The language keyargs
- The arguments- Returns:
- String of language key with replacements or language key if the language request produces null
-
translate
Gets the specified key from the language configuration.- Parameters:
key
- The language key- Returns:
- String of language key or empty string if language key produces null
-