From 8ead17685a285231b5e2a5b3b93e1f6c9821d106 Mon Sep 17 00:00:00 2001 From: Vito Date: Mon, 19 Mar 2018 15:57:37 +0000 Subject: [PATCH] [ADF-2484] moved translation into the context menu action (#3092) --- .../app/components/files/files.component.html | 16 ++++++++-------- .../content-services/content-action.component.md | 2 +- .../context-menu-holder.component.ts | 6 ++++-- lib/core/context-menu/context-menu.module.ts | 4 +++- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/demo-shell/src/app/components/files/files.component.html b/demo-shell/src/app/components/files/files.component.html index fcf85d1c75..f3f7301218 100644 --- a/demo-shell/src/app/components/files/files.component.html +++ b/demo-shell/src/app/components/files/files.component.html @@ -247,12 +247,12 @@ @@ -344,7 +344,7 @@ - +
{{ link.model?.icon }} - {{link.title || link.model?.title}} + {{ (link.title || link.model?.title) | translate}} ` diff --git a/lib/core/context-menu/context-menu.module.ts b/lib/core/context-menu/context-menu.module.ts index 01118f4148..06bbbc88d0 100644 --- a/lib/core/context-menu/context-menu.module.ts +++ b/lib/core/context-menu/context-menu.module.ts @@ -18,6 +18,7 @@ import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { MaterialModule } from '../material.module'; +import { TranslateModule } from '@ngx-translate/core'; import { ContextMenuHolderComponent } from './context-menu-holder.component'; import { ContextMenuDirective } from './context-menu.directive'; @@ -26,7 +27,8 @@ import { ContextMenuService } from './context-menu.service'; @NgModule({ imports: [ CommonModule, - MaterialModule + MaterialModule, + TranslateModule ], declarations: [ ContextMenuHolderComponent,