Product fallback language

How does fallback language work with products?

In Globalization->Languages, sv-SE is set to fallback to en-GB

baseProduct.Fields.GetValue<string>("Description", "sv-SE");

Will above fallback to en-GB if sv-SE translation is missing?

Litium version: 7.3.3

Fallback language is only implemented for entity names in back office, so instead of seeing Translation missing for a page when there’s a value in a fallback language you’d see Exempel [sv-SE].

You could create an extension method that would first try to fetchthe value for the CurrentCulture language and if it came back empty retrieve the fallback languages and try again.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.