예제 #1
0
        public CultureInfo GetCurrentCultureInfo()
        {
            Locale androidLocale = Locale.Default;
            String netLanguage   = LocalizationService.AndroidToDotNetLanguage(androidLocale.ToString().Replace("_", "-"));

            return(LocalizationServiceHelper.GetValidCultureInfo(netLanguage));
        }
예제 #2
0
        public CultureInfo GetCurrentCultureInfo()
        {
            String netLanguage = "en";

            if (NSLocale.PreferredLanguages.Length > 0)
            {
                String preferredLanguage = NSLocale.PreferredLanguages[0];

                netLanguage = LocalizationService.iOSToDotNetLanguage(preferredLanguage);
            }

            return(LocalizationServiceHelper.GetValidCultureInfo(netLanguage));
        }