Interface MessageFormatTranslation
- All Superinterfaces:
Translation
A translation backed by a
MessageFormat.-
Method Summary
Modifier and TypeMethodDescriptionReturns the locale of this message format translation.Returns the pattern of this message format translation.static TranslationCreates a newMessageFormatTranslationwith the given pattern and locale.Methods inherited from interface com.xpdustry.distributor.api.translation.Translation
format, formatAsComponent, formatTo
-
Method Details
-
of
Creates a newMessageFormatTranslationwith the given pattern and locale. The implementation returned by this method supportsComponentStringBuilder.- Parameters:
pattern- the patternlocale- 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.
-