Salesforce B2B Commerce (CloudCraze) utilizes Page Labels feature to display the content as per the Users Locale. Recently, we launched a commerce portal for a toy store in 3 different languages. This article explains how we used Page Labels to implement localization of the portal.
Let’s say the requirement is create the portal in 3 languages – English, Spanish and Italian.
Create a base page label in English Language in CC Page Label object as shown in the below screenshot.
Salesforce B2B Commerce offers translation object CC PageLabeli18n to store translated texts. In the example below the texts are entered in Spanish and Italian and linked to the base page label which is English.
Let’s see how this page label displays on the portal based on the Users Locale.
For English user:
For Spanish user:
For Italian user: