Browse Source
Fix resource lookup error in createLocalizer
pull/25750/head
chandralk
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
npm/ng-packs/packages/core/src/lib/utils/localization-utils.ts
|
|
|
@ -13,7 +13,7 @@ export function createLocalizer(localization: ApplicationLocalizationConfigurati |
|
|
|
return (resourceName: string, key: string, defaultValue: string | null) => { |
|
|
|
if (resourceName === '_') return key; |
|
|
|
|
|
|
|
const resource = localization?.values?.[resourceName]; |
|
|
|
const resource = localization?.resources?.[resourceName]; |
|
|
|
|
|
|
|
if (!resource) return defaultValue; |
|
|
|
|
|
|
|
|