Change the Sitecore Language of a Commerce Server Culture Mapping
Use the Commerce Server plug-in to change the language of a default culture
Complete the following prerequisites:
In your XML Editor:
-
Create a new .config file in the
Website\App_Config\Includedirectory of your Sitecore site.NoteThe system applies the files in alphanumeric order. Ensure the file containing your overrides is named to run after
CommerceServer.config, For example zzCommerceServer.config or My.Overrides.CommerceServer.config -
Create a configuration section that overrides the culture attribute of a specific language.
For example, the following configuration instructs the Commerce data providers to use the en-CA culture in the Commerce catalog system when the en language is selected in Sitecore (by default the en-US culture is used).
RequestResponse<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> <sitecore> <commerceServer> <defaultLanguageCulture> <language name="en" culture="en-CA" patch:instead="language[@name='en']" /> </defaultLanguageCulture> </commerceServer> </sitecore> </configuration> -
Save and close the file
-
Restart IIS.