Package com.codebarrel.i18n
Interface I18nResolver
- All Known Implementing Classes:
JiraI18nResolver
public interface I18nResolver
Converts i18n keys to their translated text.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a translated string for the given key, or the key if no translations can be found.getText
(String key, Serializable... params) Returns a translated string for the given key and params, or the key if no translations can be found.
-
Method Details
-
getText
Returns a translated string for the given key, or the key if no translations can be found.- Parameters:
key
- The key of the translation.- Returns:
- Translated text
-
getText
Returns a translated string for the given key and params, or the key if no translations can be found.- Parameters:
key
- The key of the translation.params
- Additional parameters to use in the translation.- Returns:
- Translated text
-