Exemple #1
0
        public static CaseType GetCase(int count)
        {
            string twoLetterISOLanguageName = LocaleUtils.GetCulture().TwoLetterISOLanguageName;

            if (twoLetterISOLanguageName != null)
            {
                if (twoLetterISOLanguageName == "ru")
                {
                    return(GetRUCase(count));
                }
                if (twoLetterISOLanguageName == "en")
                {
                    return(GetENCase(count));
                }
            }
            return(CaseType.DEFAULT);
        }
 public static string ToStringSeparatedByThousands(this double value) =>
 (Math.Abs((double)(value - ((int)value))) >= Mathf.Epsilon) ? value.ToString("N2", LocaleUtils.GetCulture()) : value.ToString("N0", LocaleUtils.GetCulture());
 public static string ToStringSeparatedByThousands(this long value) =>
 value.ToString("N0", LocaleUtils.GetCulture());