add support for toolbar title i18n (#6200)

This commit is contained in:
Denys Vuika 2020-10-01 13:42:51 +01:00 committed by GitHub
parent 877a9f00e9
commit c68b84513b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -1,5 +1,5 @@
<mat-toolbar [color]="color">
<span *ngIf="title">{{ title }}</span>
<span *ngIf="title">{{ title | translate }}</span>
<ng-content select="adf-toolbar-title"></ng-content>
<ng-content></ng-content>
</mat-toolbar>

View File

@ -17,6 +17,7 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { TranslateModule } from '@ngx-translate/core';
import { MaterialModule } from '../material.module';
import { ToolbarDividerComponent } from './toolbar-divider.component';
@ -26,7 +27,8 @@ import { ToolbarComponent } from './toolbar.component';
@NgModule({
imports: [
CommonModule,
MaterialModule
MaterialModule,
TranslateModule
],
declarations: [
ToolbarComponent,