Browse Source

Clarify defaultResourceName resolution in localization docs

Updated the explanation for how defaultResourceName is determined, specifying that it is first retrieved from the backend API response and falls back to the value in environment.ts if not provided.
pull/24589/head
Fahri Gedik 7 months ago
parent
commit
ae35023b5d
  1. 2
      docs/en/framework/ui/angular/localization.md

2
docs/en/framework/ui/angular/localization.md

@ -12,7 +12,7 @@ Before exploring _the localization pipe_ and _the localization service_, you sho
The localization key format consists of two sections which are **Resource Name** and **Key**.
`ResourceName::Key`
> If you do not specify the resource name, the `defaultResourceName` which is declared in `environment.ts` will be considered as default.
> If you do not specify the resource name, the `defaultResourceName` will be used. The value is first retrieved from the backend API response. If the backend does not provide a `defaultResourceName`, the value declared in `environment.ts` will be used as a fallback.
```ts
const environment = {

Loading…
Cancel
Save