mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
tab title translation (#33)
This commit is contained in:
committed by
Denys Vuika
parent
4307793a94
commit
39c5796317
@@ -49,9 +49,10 @@ export class AppComponent implements OnInit {
|
||||
const data: any = snapshot.data || {};
|
||||
|
||||
if (data.i18nTitle) {
|
||||
translateService.get(data.i18nTitle).subscribe(title => {
|
||||
pageTitle.setTitle(title);
|
||||
});
|
||||
this.translateService.translate
|
||||
.stream(data.i18nTitle)
|
||||
.subscribe((title) => pageTitle.setTitle(title));
|
||||
|
||||
} else {
|
||||
pageTitle.setTitle(data.title || '');
|
||||
}
|
||||
|
Reference in New Issue
Block a user