@ -9,12 +9,13 @@ There are three ways to use localization in your project:
Before you read about _the Localization Pipe_ and _the Localization Service_, you should know about localization keys.
The Localization key format consists of 2 sections which are **Resource Name** and **Key**.
`{{ ResourceName::Key }}`
`ResourceName::Key`
> If you do not specify the resource name, it will be `defaultResourceName` which declared in _environment.ts_
> If you do not specify the resource name, it will be `defaultResourceName` which is declared in _environment.ts_
```ts
const environment = {
//...
localization: {
defaultResourceName: 'MyProjectName',
},
@ -39,16 +40,32 @@ You can use the `abpLocalization` pipe to get localized text as in this example:
The pipe will replace the key with the localized text.
You can also specify a default value using [`LocalizationWithDefault`](https://github.com/abpframework/abp/blob/dev/npm/ng-packs/packages/core/src/lib/models/config.ts#L34) interface as followed:
You can also specify a default value as shown below: