Package com.adobe.acs.commons.mcp
Interface McpLocalizationService
@ProviderType
public interface McpLocalizationService
Service to retrieve cofiguration values related to MCP Localization.
This is primarily used (or introduced) after "Localization" support in MCP, FormField.localize()
Thus helps to override the behavior at global level and provides overlayed languages resource path. Meaning evenif some Classes that you do NOT have control are annotated to turn localization ON, that can be supressed via these configurations, for e.g. GenericList.Item.getTitle()
-
Method Summary
Modifier and TypeMethodDescriptionGet the overlayed (or supported) languages resource path like '/libs/wcm/core/resources/languages' but in overlayed structure.booleanDetermines if Global-Level localization of MCP FormFields is "enabled".
-
Method Details
-
isLocalizationEnabled
boolean isLocalizationEnabled()Determines if Global-Level localization of MCP FormFields is "enabled". By default it will be disabled and can be enabled via OSGi configuration changes.- Returns:
- true to support "Localization"
-
getOverlayedLanguagesResourcePath
String getOverlayedLanguagesResourcePath()Get the overlayed (or supported) languages resource path like '/libs/wcm/core/resources/languages' but in overlayed structure.- Returns:
- the overlayed languages resource path
-