public interface L10NService
| Modifier and Type | Method and Description |
|---|---|
String |
getLocalizedString(String resKey)
Return the localization of an given key and the current session language.
|
String |
getLocalizedString(String resKey,
Object[] arguments)
Return the localization of an given key and the current session language.
|
ResourceBundle |
getResourceBundle()
Returns a
ResourceBundle for all type localizations which supports hybris specific fallback strategies.The fallback bundles are fetched according to the current session Language. |
ResourceBundle |
getResourceBundle(Locale[] locales)
Returns a
ResourceBundle for all type localizations. |
ResourceBundle |
getResourceBundle(String baseName)
Returns a
ResourceBundle for a given base name. |
ResourceBundle |
getResourceBundle(String baseName,
Locale[] locales)
Returns a
ResourceBundle for a given base name. |
ResourceBundle getResourceBundle()
ResourceBundle for all type localizations which supports hybris specific fallback strategies.ResourceBundle getResourceBundle(Locale[] locales)
ResourceBundle for all type localizations. The resource bundle supports hybris specific fallback
strategies.locales - fallback locales (bundles)ResourceBundle getResourceBundle(String baseName)
ResourceBundle for a given base name. The resource bundle supports hybris specific fallback
strategies.baseName - bundle nameResourceBundle getResourceBundle(String baseName, Locale[] locales)
ResourceBundle for a given base name. The resource bundle supports hybris specific fallback
strategies.baseName - bundle namelocales - fallback locales (bundles)String getLocalizedString(String resKey, Object[] arguments)
MessageFormat using given arguments.resKey - the resource keyarguments - list of values for the text arguments (see MessageFormat.format(String, Object[]))Copyright © 2017 SAP SE. All Rights Reserved.