Interface I18nPlatform


public interface I18nPlatform
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the given component with all formatting codes removed.
    default boolean
    Return true when the currently loaded language has a value for key.
    default Object
    translate(String key, Object... args)
    Return a translatable component-like object for the current platform.
    default String
    translateString(String key, Object... args)
    Resolve a translation key using the currently selected language.
  • Method Details

    • translate

      default Object translate(String key, Object... args)
      Return a translatable component-like object for the current platform.
    • translateString

      default String translateString(String key, Object... args)
      Resolve a translation key using the currently selected language.
    • hasTranslation

      default boolean hasTranslation(String key)
      Return true when the currently loaded language has a value for key.
    • getUnformattedText

      String getUnformattedText(Object component)
      Return the given component with all formatting codes removed.