public interface I18NProvider extends Serializable
| Modifier and Type | Method and Description |
|---|---|
List<Locale> |
getProvidedLocales()
Get the locales that we have translations for.
|
default String |
getTranslation(Object key,
Locale locale,
Object... params)
Get the translation for key with given locale.
|
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 stringdefault String getTranslation(Object 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 © 2025. All rights reserved.