Skip to main content
Commonmark migration
Source Link

I think this is well covered on John West's post which in summary describes what the priority is and how Sitecore handles them:

"The Sitecore layout engine retrieves content from the Sitecore repository in the context language (Sitecore.Context.Language). The default logic to determine the context language is to use the first of these variables that specifies a value:

  1. The sc_lang query string parameter.

    https://www.company.com/about-us/?sc_lang=en

  2. The language prefix in the path in the requested URL.

    https://www.company.com/en/about-us/

  3. The language cookie associated with the context site.

    company#lang

  4. The default language associated with the context logical site.

https://www.company.com/about-us/?sc_lang=en 2. The language prefix in the path in the requested URL. https://www.company.com/en/about-us/ 3. The language cookie associated with the context site. company#lang 4. The default language associated with the context logical site.

<site name="company" patch:before="site[@name='website']" 
    virtualFolder="/" physicalFolder="/" 
    rootPath="/sitecore/content/company" language="en" 
    hostName="www.company.com" />
  1. The DefaultLanguage setting specified in web.config.
<setting name="DefaultLanguage" value="en" />

References:

I think this is well covered on John West's post which in summary describes what the priority is and how Sitecore handles them:

"The Sitecore layout engine retrieves content from the Sitecore repository in the context language (Sitecore.Context.Language). The default logic to determine the context language is to use the first of these variables that specifies a value:

  1. The sc_lang query string parameter.

https://www.company.com/about-us/?sc_lang=en 2. The language prefix in the path in the requested URL. https://www.company.com/en/about-us/ 3. The language cookie associated with the context site. company#lang 4. The default language associated with the context logical site.

<site name="company" patch:before="site[@name='website']" 
    virtualFolder="/" physicalFolder="/" 
    rootPath="/sitecore/content/company" language="en" 
    hostName="www.company.com" />
  1. The DefaultLanguage setting specified in web.config.
<setting name="DefaultLanguage" value="en" />

References:

I think this is well covered on John West's post which in summary describes what the priority is and how Sitecore handles them:

"The Sitecore layout engine retrieves content from the Sitecore repository in the context language (Sitecore.Context.Language). The default logic to determine the context language is to use the first of these variables that specifies a value:

  1. The sc_lang query string parameter.

    https://www.company.com/about-us/?sc_lang=en

  2. The language prefix in the path in the requested URL.

    https://www.company.com/en/about-us/

  3. The language cookie associated with the context site.

    company#lang

  4. The default language associated with the context logical site.
<site name="company" patch:before="site[@name='website']" 
    virtualFolder="/" physicalFolder="/" 
    rootPath="/sitecore/content/company" language="en" 
    hostName="www.company.com" />
  1. The DefaultLanguage setting specified in web.config.
<setting name="DefaultLanguage" value="en" />

References:

added 163 characters in body
Source Link
Michael West
  • 18.6k
  • 2
  • 42
  • 105

I think this is well covered on John West's post which in summary describes what the priority is and how Sitecore handles them:

"The Sitecore layout engine retrieves content from the Sitecore repository in the context language (Sitecore.Context.Language). The default logic to determine the context language is to use the first of these variables that specifies a value:

  1. The sc_lang query string parameter.

https://www.company.com/about-us/?sc_lang=en 2. The language prefix in the path in the requested URL. https://www.company.com/en/about-us/ 3. The language cookie associated with the context site. company#lang 4. The default language associated with the context logical site.

<site name="company" patch:before="site[@name='website']" 
    virtualFolder="/" physicalFolder="/" 
    rootPath="/sitecore/content/company" language="en" 
    hostName="www.company.com" />
  1. The DefaultLanguage setting specified in web.config.
<setting name="DefaultLanguage" value="en" />

References:

I think this is well covered on John West's post which in summary describes what the priority is and how Sitecore handles them:

"The Sitecore layout engine retrieves content from the Sitecore repository in the context language (Sitecore.Context.Language). The default logic to determine the context language is to use the first of these variables that specifies a value:

  1. The sc_lang query string parameter.

https://www.company.com/about-us/?sc_lang=en 2. The language prefix in the path in the requested URL. https://www.company.com/en/about-us/ 3. The language cookie associated with the context site. company#lang 4. The default language associated with the context logical site.

<site name="company" patch:before="site[@name='website']" 
    virtualFolder="/" physicalFolder="/" 
    rootPath="/sitecore/content/company" language="en" 
    hostName="www.company.com" />
  1. The DefaultLanguage setting specified in web.config.
<setting name="DefaultLanguage" value="en" />

I think this is well covered on John West's post which in summary describes what the priority is and how Sitecore handles them:

"The Sitecore layout engine retrieves content from the Sitecore repository in the context language (Sitecore.Context.Language). The default logic to determine the context language is to use the first of these variables that specifies a value:

  1. The sc_lang query string parameter.

https://www.company.com/about-us/?sc_lang=en 2. The language prefix in the path in the requested URL. https://www.company.com/en/about-us/ 3. The language cookie associated with the context site. company#lang 4. The default language associated with the context logical site.

<site name="company" patch:before="site[@name='website']" 
    virtualFolder="/" physicalFolder="/" 
    rootPath="/sitecore/content/company" language="en" 
    hostName="www.company.com" />
  1. The DefaultLanguage setting specified in web.config.
<setting name="DefaultLanguage" value="en" />

References:

Added examples.
Source Link
Michael West
  • 18.6k
  • 2
  • 42
  • 105

I think this is well covered on John West's post which in summary describes what the priority is and how Sitecore handles them:

"The Sitecore layout engine retrieves content from the Sitecore repository in the context language (Sitecore.Context.Language). The default logic to determine the context language is to use the first of these variables that specifies a value:

  1. The sc_lang query string parameter.
  2. The language prefix in the path in the requested URL.
  3. The language cookie associated with the context site.
  4. The default language associated with the context logical site.
  5. The DefaultLanguage setting specified in web.config.

https://www.company.com/about-us/?sc_lang=en 2. The language prefix in the path in the requested URL. https://www.company.com/en/about-us/ 3. The language cookie associated with the context site. company#lang 4. The default language associated with the context logical site.

<site name="company" patch:before="site[@name='website']" 
    virtualFolder="/" physicalFolder="/" 
    rootPath="/sitecore/content/company" language="en" 
    hostName="www.company.com" />
  1. The DefaultLanguage setting specified in web.config.
<setting name="DefaultLanguage" value="en" />

I think this is well covered on John West's post which in summary describes what the priority is and how Sitecore handles them:

"The Sitecore layout engine retrieves content from the Sitecore repository in the context language (Sitecore.Context.Language). The default logic to determine the context language is to use the first of these variables that specifies a value:

  1. The sc_lang query string parameter.
  2. The language prefix in the path in the requested URL.
  3. The language cookie associated with the context site.
  4. The default language associated with the context logical site.
  5. The DefaultLanguage setting specified in web.config.

I think this is well covered on John West's post which in summary describes what the priority is and how Sitecore handles them:

"The Sitecore layout engine retrieves content from the Sitecore repository in the context language (Sitecore.Context.Language). The default logic to determine the context language is to use the first of these variables that specifies a value:

  1. The sc_lang query string parameter.

https://www.company.com/about-us/?sc_lang=en 2. The language prefix in the path in the requested URL. https://www.company.com/en/about-us/ 3. The language cookie associated with the context site. company#lang 4. The default language associated with the context logical site.

<site name="company" patch:before="site[@name='website']" 
    virtualFolder="/" physicalFolder="/" 
    rootPath="/sitecore/content/company" language="en" 
    hostName="www.company.com" />
  1. The DefaultLanguage setting specified in web.config.
<setting name="DefaultLanguage" value="en" />
added 20 characters in body
Source Link
Michael West
  • 18.6k
  • 2
  • 42
  • 105
Loading
Source Link
Diego
  • 5.7k
  • 2
  • 28
  • 61
Loading