File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
aspnet-core/src/AbpCompanyName.AbpProjectName.Web.Mvc/Views/Shared/Layout Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 101
101
102
102
@if (CultureInfo .CurrentUICulture .Name != " en" )
103
103
{
104
- <
script src =
" ~/libs/jquery-validate/localization/[email protected] (CultureInfo.CurrentUICulture.Name.Replace(" - " , " _ " ) + " .js " )" asp-append-version =
" true" ></
script >
104
+ var normalizedCurrentUICultureName = CultureInfo .CurrentUICulture .Name .Replace (" -" , " _" );
105
+ var localizationFileNameWithExtension = " messages_" ;
106
+ switch (normalizedCurrentUICultureName )
107
+ {
108
+ case " zh_Hans" :
109
+ localizationFileNameWithExtension += " zh" ;
110
+ break ;
111
+ case " es_MX" :
112
+ localizationFileNameWithExtension += " es" ;
113
+ break ;
114
+ default :
115
+ localizationFileNameWithExtension += normalizedCurrentUICultureName ;
116
+ break ;
117
+ }
118
+ localizationFileNameWithExtension += " .min.js" ;
119
+ <script src =" ~/libs/jquery-validate/localization/@localizationFileNameWithExtension" asp-append-version =" true" ></script >
105
120
}
106
121
107
122
<script type =" text/javascript" >
You can’t perform that action at this time.
0 commit comments