Interface I18nPlatform
public interface I18nPlatform
-
Method Summary
Modifier and TypeMethodDescriptiongetUnformattedText(Object component) Return the given component with all formatting codes removeddefault booleanhasTranslation(String key) Return true when the currently loaded language has a value forkeydefault ObjectReturn a translatable component-like object for the current platformReturn a translatable component-like object for the current platformdefault StringtranslateString(String key, Object... args) Resolve a translation key using the currently selected language
-
Method Details
-
translate
Return a translatable component-like object for the current platform -
translate
Return a translatable component-like object for the current platform -
translateString
Resolve a translation key using the currently selected language -
hasTranslation
Return true when the currently loaded language has a value forkey -
getUnformattedText
Return the given component with all formatting codes removed
-