Skip to content

Commit 3c883ad

Browse files
committed
Fixed #33 Issue related to CurrentUICulture on _Layout.cshtml from template.
1 parent 8b35bad commit 3c883ad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/AbpCompanyName.AbpProjectName.Web/Views/Shared/_Layout.cshtml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
@using System.Threading
1+
@using System.Globalization
2+
@using System.Threading
23
@using System.Threading.Tasks
34
@using Abp.Timing
45
@using AbpCompanyName.AbpProjectName.Web.Views.Shared.Components.LanguageSelection
@@ -110,7 +111,7 @@
110111
<script>
111112
abp.localization.defaultSourceName = '@LocalizationSourceName';
112113
if (moment) { //Localizing momentjs
113-
moment.locale('@Thread.CurrentThread.CurrentUICulture.Name');
114+
moment.locale('@CultureInfo.CurrentUICulture.Name');
114115
}
115116
</script>
116117

0 commit comments

Comments
 (0)