mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
add support for toolbar title i18n (#6200)
This commit is contained in:
parent
877a9f00e9
commit
c68b84513b
@ -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>
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user