@kms-ngx-ui/presentational 20.4.2 → 20.4.4
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.
|
@@ -5075,7 +5075,10 @@ class KmsUiPresentationalModule {
|
|
|
5075
5075
|
if (currentLang) {
|
|
5076
5076
|
mergeKmsLibMessages(translate, currentLang);
|
|
5077
5077
|
}
|
|
5078
|
-
|
|
5078
|
+
// Optional chain: ng-mocks mocks of TranslateService don't expose
|
|
5079
|
+
// `onLangChange`, and we don't want module instantiation in unit tests
|
|
5080
|
+
// to crash on `undefined.subscribe(...)`.
|
|
5081
|
+
translate.onLangChange?.subscribe((event) => {
|
|
5079
5082
|
mergeKmsLibMessages(translate, event.lang);
|
|
5080
5083
|
});
|
|
5081
5084
|
}
|