Localization

Localization of styles is performed by adding a locale to the style family in the Portal Manager. Styles that are placed in this locale are automatically used when the client locale matches.

Localization is also supported for Asset resources, and is done by creating a folder with the name of the locale in the root of Assets; for example, Assets/en-US.

To create the localization and style family folder structure, in the Portal Manager, select Content Development > Style Families and click Create Asset folders for Style Families.

Resources that are placed under this folder are automatically fetched when the client locale matches. For details about the lookup algorithm, see Resource lookup algorithms. The supported resources for localized lookup are Custom.js, Custom.css and images.

Similar to style families, a CSS class containing the active locale is added to the item in the generated HTML. The element getting the active locale as a class has the ID of ipf-master-body.