@abp/ng.core 5.1.2 → 5.1.3
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/lib/services/localization.service.mjs +7 -1
- package/fesm2015/abp-ng.core.mjs +6 -0
- package/fesm2015/abp-ng.core.mjs.map +1 -1
- package/fesm2020/abp-ng.core.mjs +6 -0
- package/fesm2020/abp-ng.core.mjs.map +1 -1
- package/lib/services/localization.service.d.ts +4 -0
- package/package.json +1 -1
package/fesm2020/abp-ng.core.mjs
CHANGED
|
@@ -600,10 +600,16 @@ class LocalizationService {
|
|
|
600
600
|
}
|
|
601
601
|
/**
|
|
602
602
|
* Returns currently selected language
|
|
603
|
+
* Even though this looks like it's redundant to return the same value as `getLanguage()`,
|
|
604
|
+
* it's actually not. This could be invoked any time, and the latestLang could be different from the
|
|
605
|
+
* sessionState.getLanguage() value.
|
|
603
606
|
*/
|
|
604
607
|
get currentLang() {
|
|
605
608
|
return this.latestLang || this.sessionState.getLanguage();
|
|
606
609
|
}
|
|
610
|
+
get currentLang$() {
|
|
611
|
+
return this.sessionState.getLanguage$();
|
|
612
|
+
}
|
|
607
613
|
get languageChange$() {
|
|
608
614
|
return this._languageChange$.asObservable();
|
|
609
615
|
}
|