示例#1
0
文件: _Locale.cs 项目: bruce66tw/Base
 /// <summary>
 /// get locale code, ex: zh-TW
 /// also called by _Layout.cshtml
 /// </summary>
 /// <returns></returns>
 public static string GetLocale()
 {
     //return Thread.CurrentThread.CurrentCulture.Name;
     return((_localeService == null) ? _Fun.GetBaseUser().Locale : _localeService.GetLocale());
 }