Skip to main content

Configuration

To use a localized image, the url must point to the image in its base locale. Then set the property localize: true

images: [
{
imageName: "gameImage",
height: 340,
width: 255,
url: "images/gameImage.png",
localize: true,
},
info

Images configured for localization will automatically use lazy loading to avoid preparing unnecessary images.

In the demo below, notice how both the text and the image change when a locale is selected.

Loading...