public CultureInfo GetCurrentCultureInfo() { Locale androidLocale = Locale.Default; String netLanguage = LocalizationService.AndroidToDotNetLanguage(androidLocale.ToString().Replace("_", "-")); return(LocalizationServiceHelper.GetValidCultureInfo(netLanguage)); }
public CultureInfo GetCurrentCultureInfo() { String netLanguage = "en"; if (NSLocale.PreferredLanguages.Length > 0) { String preferredLanguage = NSLocale.PreferredLanguages[0]; netLanguage = LocalizationService.iOSToDotNetLanguage(preferredLanguage); } return(LocalizationServiceHelper.GetValidCultureInfo(netLanguage)); }