Add a New Sitecore Language to a Commerce Server Culture Mapping
Use the Commerce Server plug-in to map an additional language to a default culture.
Complete the following prerequisites:
Commerce Server supports more languages than Sitecore., and you may need to map a language to a region-free language. For example, Commerce Catalogs have Danish as da-DK, but Sitecore treats Danish as region-free. Therefore, in the CommerceServer.config, an entry would be required to map da-DK culture to the Sitecore da language.
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.configorMy.Overrides.CommerceServer.config. -
Create a configuration section that adds a new language element to the defaultLanguageCulture element collection.
For example, the following configuration instructs the Commerce data providers to use the fr-FR culture in the Commerce catalog system when the fr language is selected in Sitecore:
-
Save and close the file.
-
Restart IIS.