Browse Source
Merge pull request #19092 from abpframework/issue-19086
Update title strategy service to set localized title
pull/19103/head
Masum ULU
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
2 deletions
-
npm/ng-packs/packages/core/src/lib/services/title-strategy.service.ts
|
|
|
@ -29,6 +29,7 @@ export class AbpTitleStrategy extends TitleStrategy { |
|
|
|
} |
|
|
|
|
|
|
|
override updateTitle(routerState: RouterStateSnapshot) { |
|
|
|
this.routerState = routerState; |
|
|
|
let title = this.buildTitle(routerState); |
|
|
|
|
|
|
|
if (!title) { |
|
|
|
@ -36,8 +37,6 @@ export class AbpTitleStrategy extends TitleStrategy { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
this.routerState = routerState; |
|
|
|
|
|
|
|
const localizedTitle = this.localizationService.instant({ key: title, defaultValue: title }); |
|
|
|
this.title.setTitle(`${localizedTitle} | ${this.projectName()}`); |
|
|
|
} |
|
|
|
|