@sumaris-net/ngx-components 2.5.16-rc1 → 2.5.16-rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/src/app/core/services/platform.service.mjs +2 -1
- package/fesm2015/sumaris-net.ngx-components.mjs +1 -0
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +1 -0
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -18757,6 +18757,7 @@ class PlatformService extends StartableService {
|
|
|
18757
18757
|
console.info('[platform] Configuring i18n ...');
|
|
18758
18758
|
// this language will be used as a fallback when a translation isn't found in the current language
|
|
18759
18759
|
this.translate.setDefaultLang(this.environment.defaultLocale);
|
|
18760
|
+
this.dateAdapter.setLocale(this.environment.defaultLocale);
|
|
18760
18761
|
// When locale changes, apply to date adapter
|
|
18761
18762
|
this.registerSubscription(this.translate.onLangChange.subscribe(event => {
|
|
18762
18763
|
if (event && event.lang) {
|