Monday, 3 April 2017

Get fallback language in code

With the latest Sitecore version, Language Fallback is a key feature for multilingual website. 

Sitecore does the job to get the fallback version and languages for us. 

If you want to get the Fallback Language object, one of the way is below.

            var fallbackLanguage = Sitecore.Data.Managers.LanguageFallbackManager.GetFallbackLanguage(Sitecore.Context.Language, Sitecore.Context.Database);

No comments:

Post a comment


Sitecore 9.3 released!

Sitecore 9.3 has the Solr 8.1.1 support (Sitecore compatibility table is yet to be updated). SIF 2.2.0 Got a new editor - The Horizon edi...