We have moved to GitHub Issues
Created by Nicholas Westby 22 Oct 2013, 17:11:32 Updated by Shannon Deminick 21 Jun 2017, 07:58:15
I have three languages ("English (United States)", "French (France)", "Spanish (Mexico)") created under the settings / languages area in Umbraco. I get null from the following code: var language = ApplicationContext.Current.Services.LocalizationService.GetLanguageByCultureCode("en-US"); The problem appears to be that Language.CultureName is always null. At least, that's what appears to be the case when I call LocationService.GetAllLanguages. The workaround I am currently using is to instead create my own version of GetLanguageByCultureCode that compares the specified culture to the IsoCode.
Closing issue due to inactivity - see blog post for details https://umbraco.com/blog/issue-tracker-cleanup/
Backwards Compatible: True
Affected versions: 6.1.6
Due in version: