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 Type
    Method
    Description
    Retrieves value for the context locale in the context resource bundle.
    Retrieves parameterized value for the context locale in the context resource bundle.
  • Method Details

    • getLocalizedString

      String getLocalizedString(String key)
      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

      String getLocalizedString(String key, Object[] params)
      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 the MessageFormat conventions.
      Returns:
      value in the resource bundle for the localization key or the key, if the key is not found in the resource bundle.