Skip to content

Commit dec62a5

Browse files
committed
Added abp.localization.defaultSourceName.
1 parent 43e7dce commit dec62a5

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
@Scripts.Render("~/Bundles/js")
4545

4646
<script>
47-
//Localizing momentjs
48-
moment.locale('@Thread.CurrentThread.CurrentUICulture.Name');
47+
abp.localization.defaultSourceName = '@LocalizationSourceName';
48+
moment.locale('@Thread.CurrentThread.CurrentUICulture.Name'); //Localizing momentjs
4949
</script>
5050

5151
<!-- Dynamic scripts of ABP system (They are created on runtime and can not be bundled) -->

src/AbpCompanyName.AbpProjectName.WebSpaAngular/App/Main/views/layout/layout.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
@Scripts.Render("~/Bundles/App/vendor/js")
3030

3131
<script>
32-
//Localizing momentjs
33-
moment.locale('@Thread.CurrentThread.CurrentUICulture.Name');
32+
abp.localization.defaultSourceName = '@LocalizationSourceName';
33+
moment.locale('@Thread.CurrentThread.CurrentUICulture.Name'); //Localizing momentjs
3434
</script>
3535

3636
<!-- Dynamic scripts of ABP system (They are created on runtime and can not be bundled) -->

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@
5959
<script src="~/Abp/Framework/scripts/libs/abp.spin.js"></script>
6060
<script src="~/Abp/Framework/scripts/libs/abp.sweet-alert.js"></script>
6161

62+
<script>
63+
abp.localization.defaultSourceName = '@LocalizationSourceName';
64+
</script>
65+
6266
<!-- Dynamic scripts of ABP system (They are created on runtime and can not be bundled) -->
6367
<script src="~/api/AbpServiceProxies/GetAll"></script>
6468
<script src="~/AbpScripts/GetScripts" type="text/javascript"></script>

src/AbpCompanyName.AbpProjectName.WebSpaDurandal/App/Main/shell.cshtml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
@Scripts.Render("~/Bundles/vendor/js/bottom")
3939

4040
<script>
41-
//Localizing momentjs
42-
moment.locale('@Thread.CurrentThread.CurrentUICulture.Name');
41+
abp.localization.defaultSourceName = '@LocalizationSourceName';
42+
moment.locale('@Thread.CurrentThread.CurrentUICulture.Name'); //Localizing momentjs
4343
</script>
4444

4545
<!-- Dynamic script for client side localization (It's created on runtime) -->

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@
5959
<script src="~/Abp/Framework/scripts/libs/abp.spin.js"></script>
6060
<script src="~/Abp/Framework/scripts/libs/abp.sweet-alert.js"></script>
6161

62+
<script>
63+
abp.localization.defaultSourceName = '@LocalizationSourceName';
64+
</script>
65+
6266
<!-- Dynamic scripts of ABP system (They are created on runtime and can not be bundled) -->
6367
<script src="~/api/AbpServiceProxies/GetAll"></script>
6468
<script src="~/AbpScripts/GetScripts" type="text/javascript"></script>

0 commit comments

Comments
 (0)