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
parent
commit
a2b23acda9
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      npm/ng-packs/packages/core/src/lib/services/title-strategy.service.ts

3
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()}`);
}

Loading…
Cancel
Save