public static string GetLocalizedTextByEnum(LocaleString localizedString) { var field = locale.GetType().GetField(localizedString.ToString()); return(field != null?field.GetValue(locale).ToString() : "????????"); }