Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Finding all the languages for which a language is a fallback for

Vote:
 

I can get a fallback language for a language using this –

var fallbackLang = ContentLanguageSettingsHandler.Instance.GetFallbackLanguages(Contentlink, "en-NZ");

but how do I do the opposite of this? Like I know the fallback language, but I want to identify for what all languages it serves as a fallback.

#176603
Mar 22, 2017 19:37
Vote:
 

try this line:

ContentLanguageSettingsHandler.Instance.Get(Contentlink).Where(c => c.LanguageBranchFallback.Contains("en-NZ")).Select(c => c.LanguageBranch).ToList()

#177636
Apr 14, 2017 19:32
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.