Interface LocalizationService
- All Known Implementing Classes:
DefaultIntegrationBackofficeLocalizationService
public interface LocalizationService
A services that provides localized messages, labels, and other resources to other services and backoffice views.
All methods imply the current session locale selected in the context of the call.
-
Method Summary
Modifier and TypeMethodDescriptiongetLocalizedString(String key) Retrieves value for the context locale in the context resource bundle.getLocalizedString(String key, Object[] params) Retrieves parameterized value for the context locale in the context resource bundle.
-
Method Details
-
getLocalizedString
Retrieves value for the context locale in the context resource bundle.- Parameters:
key- resource bundle key to get the value for.- Returns:
- value in the resource bundle for the localization key or the key, if the key is not found in the resource bundle.
-
getLocalizedString
Retrieves parameterized value for the context locale in the context resource bundle.- Parameters:
key- resource bundle key to get the value for.params- parameters to be injected into the localized value according to theMessageFormatconventions.- Returns:
- value in the resource bundle for the localization key or the key, if the key is not found in the resource bundle.
-