Field level language fallback enables you to specify on a field-to-field basis, which field values should be localized and which field values should fall back to another language.
Field level language fallback is disabled by default, so you must enable it on each relevant website and on the template field definition item.
Please consult Language Fallback documentation on doc.sitecore.net to learn more about this feature.
Follow these steps to enable the feature on your Sitecore instance:
- Enable Field level language fallback on the desired sites[1] in Sitecore configuration[2].
This change can be done within /App_Config/Include/Sitecore.LanguageFallback.config or any other custom config include file.
<sites>
<site name="shell">
<patch:attribute name="enableFieldLanguageFallback">true</patch:attribute>
</site>
<site name="website">
<patch:attribute name="enableFieldLanguageFallback">true</patch:attribute>
</site>
</sites>
- Specify the fallback language rules.
The fallback language specified on a language definition item in content tree under the /sitecore/system/Languages item.
For each language that has to be enabled for fallback, make sure the Fallback Language field on that language definition item points to the desired target language.
- Finally, you need to enable Field level language fallback for those fields you'd like to have this feature enabled.
There are two checkbox fields that enable this feature[3]:
Success criteria:
If the feature is configured correctly, you will see fields that have no value in the original language falling back to the desired language, and both Content Editor and Experience Editor will indicate this in the field label:
- [1] For single site installations, modifying 'shell' and 'website' sites is sufficient. In multi site environments, where you only want to enable language fallback on a subset of websites, you need to create a specific 'shell' site for each website where you want the language fallback feature enabled. This enables you to control the language fallback feature switches independently, and provide a consistent authoring and delivery experience.
- [2] Step 1 applies to all Sitecore XP instances, including Content Delivery, where the language fallback needs to be enabled.
- [3] These two fields are mutually exclusive. You either need to use one or the other for a given field.
- [4] Enabling the AllowVaryFallbackSettingsPerLanguage setting and using the Enable versioned field level fallback field will degrade performance of data API considerably.