Interface MessageFormatTranslation

All Superinterfaces:
Translation

public interface MessageFormatTranslation extends Translation
A translation backed by a MessageFormat.
  • Method Details

    • of

      static Translation of(String pattern, Locale locale)
      Creates a new MessageFormatTranslation with the given pattern and locale. The implementation returned by this method supports ComponentStringBuilder.
      Parameters:
      pattern - the pattern
      locale - the locale
      Returns:
      the created message format translation
    • getPattern

      String getPattern()
      Returns the pattern of this message format translation.
    • getLocale

      Locale getLocale()
      Returns the locale of this message format translation.