EPiServer change master language

To change the default language for a website in EPiServer, add the language attribute to all your <add/> elements inside the <siteHostMapping/>, <siteHosts/> section inside EPiServerFramework.config.

The following code changes the default language to swedish:

<siteHostMapping>
  <siteHosts siteId="…">
    <add name="*" language="sv" />
    <add name="foo:80" language="sv" />
    <add name="foo" language="sv" />
  </siteHosts>
</siteHostMapping

Leave a Reply