public interface I18NProvider extends Serializable
Modifier and Type | Method and Description |
---|---|
List<Locale> |
getProvidedLocales()
Get the locales that we have translations for.
|
String |
getTranslation(String key,
Locale locale,
Object... params)
Get the translation for key with given locale.
|
List<Locale> getProvidedLocales()
String getTranslation(String key, Locale locale, Object... params)
Note! For usability and catching missing translations implementation should never return a null, but an exception string e.g. '!{key}!'
key
- translation keylocale
- locale to useparams
- parameters used in translation stringCopyright © 2018. All rights reserved.