Skip to content
This repository was archived by the owner on Mar 25, 2026. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ the detailed section referring to by linking pull requests or issues.

#### Patch

- Fix broken title after i18n
([#844](https://github.com/sovity/edc-ui/issues/844))

### Deployment Migration Notes

_No special deployment migration steps required_
Expand Down
8 changes: 4 additions & 4 deletions src/app/core/services/page-title-strategy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
RouterStateSnapshot,
TitleStrategy,
} from '@angular/router';
import {Subject, switchMap} from 'rxjs';
import {Subject} from 'rxjs';
import {TranslateService} from '@ngx-translate/core';

@Injectable()
Expand All @@ -17,9 +17,9 @@ export class CustomPageTitleStrategy extends TitleStrategy {
private title: Title,
) {
super();
this.rawTitle$
.pipe(switchMap((title) => this.translateService.get(title)))
.subscribe((title) => this.title.setTitle(title));
this.rawTitle$.subscribe((title) =>
this.title.setTitle(this.translateService.instant(title)),
);
}

override updateTitle(snapshot: RouterStateSnapshot): void {
Expand Down