public static string GetNameDependonLanguage <T>(string code) where T : BaseDict { string languageName = Thread.CurrentThread.CurrentUICulture.Name.ToLower(); if (languageName == "en") { return(StringItem.GetNameEngByCode(typeof(T), code)); } else { return(StringItem.GetNameByCode(typeof(T), code)); } }
public static string GetNameEngByCode <T>(string code) where T : BaseDict { return(StringItem.GetNameEngByCode(typeof(T), code)); }