Change the Sitecore Language of a Commerce Server Culture Mapping

Version: 8.2

Use the Commerce Server plug-in to change the language of a default culture

Complete the following prerequisites:

In your XML Editor:

  1. Create a new .config file in the Website\App_Config\Include directory of your Sitecore site.

    Note

    The 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

  2. 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>
  3. Save and close the file

  4. Restart IIS.

Do you have some feedback for us?

If you have suggestions for improving this article,