Interface I18nPlatform
public interface I18nPlatform
-
Method Summary
Modifier and TypeMethodDescriptiongetUnformattedText(Object component) Return the given component with all formatting codes removed.default booleanhasTranslation(String key) Return true when the currently loaded language has a value forkey.default ObjectReturn a translatable component-like object for the current platform.default 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. -
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.
-