@flusys/ng-shared 5.1.0 → 5.1.2
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.
|
@@ -723,7 +723,7 @@ class TranslateService {
|
|
|
723
723
|
});
|
|
724
724
|
translate(key, params) {
|
|
725
725
|
if (this.localizationState === null) {
|
|
726
|
-
const value = this.registry[key];
|
|
726
|
+
const value = this.registry[key] ?? key;
|
|
727
727
|
return this.interpolate(value, params);
|
|
728
728
|
}
|
|
729
729
|
const translations = this.localizationState.translations();
|
|
@@ -1210,11 +1210,7 @@ function resolveTranslationModule(config) {
|
|
|
1210
1210
|
// Register fallback messages
|
|
1211
1211
|
if (fallbackMessages) {
|
|
1212
1212
|
if (locServices) {
|
|
1213
|
-
|
|
1214
|
-
if (!locServices.stateService.hasModuleFallbacks(module)) {
|
|
1215
|
-
locServices.stateService.registerModuleFallbacks(module, fallbackMessages);
|
|
1216
|
-
}
|
|
1217
|
-
});
|
|
1213
|
+
locServices.stateService.updateFallbackMessages(fallbackMessages);
|
|
1218
1214
|
}
|
|
1219
1215
|
else {
|
|
1220
1216
|
const registry = injector.get(FALLBACK_MESSAGES_REGISTRY, null);
|