In Visual Studio Code based Modeler, the Locale contract structure is generated by
fetching the default labels and images implemented in the customizer’s snapshot. Use these
instructions to create a locale contract for a custom locale other than the available in the
default MCP zip.
Required Editions
Available in: Enterprise, Performance, and Unlimited Editions
User Permissions Needed
To create a locale contract
Customizer, Admin
For information on languages supported in Salesforce, see Supported Languages.
Create an XML file in a text or XML editor. Specify the file name in the <languageCode>.locale.xml format. For example: bu.locale.xml for Bulgarian.
Save the file in the $workspaceFolder/src/Locale folder in your
Modeler workspace.
Add this code to the <languageCode>.locale.xml file.
<Locale language=””
languageCode=””></Locale>.
Specify language and languageCode values in lowercase
letters using only two letters.
For example, in de.locale.xml use the following XML:
<Locale language=”bu” languageCode=”bu”>
</Locale>.
To add entries of the newly added labels and images to the new locale contract, run the
refresh command:sf modeler workspace refreshLocale.
Save your changes and check in the locale contract.
Did this article solve your issue?
Let us know so we can improve!
Loading
Salesforce Help | Article
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.