public interface Translation
ResourceBundle
Some translations require parameters to be sent together with them, if they're not given they will be filled with empty text.
While the client has multiple locales available, server-side vanilla translations
support only Locale.ENGLISH
.
Modifier and Type | Method and Description |
---|---|
String |
get(Locale locale)
Gets the default translation without any parameters replaced.
|
String |
get(Locale locale,
Object... args)
Gets the default translation format with the specified parameters.
|
String |
getId()
Returns identifier for this
Translation . |
String getId()
Translation
.String get(Locale locale)
locale
- The language to get the translated format string for