Class NotTranslatableText

java.lang.Object
velox.gui.utils.localization.translatable.NotTranslatableText
All Implemented Interfaces:
TranslatableComponent

public class NotTranslatableText extends Object implements TranslatableComponent
A simple class that accepts any String and implements the TranslatableComponent interface. Always returns the same passed text regardless of locale. Use it if you need to pass TranslatableComponent but the text contained in TranslatableComponent does not require localization
  • Constructor Details

    • NotTranslatableText

      public NotTranslatableText(String text)
  • Method Details

    • toLocalizedString

      public String toLocalizedString(com.ibm.icu.util.ULocale locale)
      Specified by:
      toLocalizedString in interface TranslatableComponent
      Parameters:
      locale -
      Returns:
      localized string in specific locale