🔧 Maintenance Alert: World will be on Read-Only Mode on February 18th, 10:00 PM – 11:00 PM EST / 7:00 PM – 8:00 PM PST / 4:00 AM – 5:00 AM CET (Feb 19). Browsing available, but log-ins and submissions will be disabled.

Get StartPage in different language

Vote:
 

Hi,

I have my site in two languages (english and chinese) and i set english as default language.

Whenever i fetch startpage, it gives me an english startpage. I want to access the startpage in Chinese language. 

How can i access the chinese startpage?

Any solutions? 

Thanks in Advance.

#113896
Dec 01, 2014 12:57
Vote:
 
var contentLoader = ServiceLocator.Current.GetInstance<IContentLoader>();
var startPage = contentLoader.Get<StartPage>(ContentReference.StartPage, new LanguageSelector("zh-CN"));



#113920
Dec 01, 2014 16:02
* 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.