(FuseNavigation) Fixed: Translations are not being applied

This commit is contained in:
sercan 2019-12-16 08:21:37 +03:00
parent 116721dd33
commit 007739c356
6 changed files with 15 additions and 15 deletions

View File

@ -42,10 +42,10 @@
<ng-template #itemContent>
<mat-icon class="nav-link-icon" *ngIf="item.icon">{{item.icon}}</mat-icon>
<span class="nav-link-title" [translate]="item.translate">{{item.title}}</span>
<span class="nav-link-title" [translate]="item.translate">{{(item.translate | translate) || item.title}}</span>
<span class="nav-link-badge" *ngIf="item.badge" [translate]="item.badge.translate"
[ngStyle]="{'background-color': item.badge.bg,'color': item.badge.fg}">
{{item.badge.title}}
{{(item.badge.translate | translate) || item.badge.title}}
</span>
<mat-icon class="collapsable-arrow">keyboard_arrow_right</mat-icon>
</ng-template>
@ -66,4 +66,4 @@
</div>
</ng-container>
</ng-container>

View File

@ -38,11 +38,11 @@
<ng-template #itemContent>
<mat-icon class="nav-link-icon" *ngIf="item.icon">{{item.icon}}</mat-icon>
<span class="nav-link-title" [translate]="item.translate">{{item.title}}</span>
<span class="nav-link-title" [translate]="item.translate">{{(item.translate | translate) || item.title}}</span>
<span class="nav-link-badge" *ngIf="item.badge" [translate]="item.badge.translate"
[ngStyle]="{'background-color': item.badge.bg,'color': item.badge.fg}">
{{item.badge.title}}
{{(item.badge.translate | translate) || item.badge.title}}
</span>
</ng-template>
</ng-container>
</ng-container>

View File

@ -45,10 +45,10 @@
<ng-template #itemContent>
<mat-icon class="nav-link-icon" *ngIf="item.icon">{{item.icon}}</mat-icon>
<span class="nav-link-title" [translate]="item.translate">{{item.title}}</span>
<span class="nav-link-title" [translate]="item.translate">{{(item.translate | translate) || item.title}}</span>
<span class="nav-link-badge" *ngIf="item.badge" [translate]="item.badge.translate"
[ngStyle]="{'background-color': item.badge.bg,'color': item.badge.fg}">
{{item.badge.title}}
{{(item.badge.translate | translate) || item.badge.title}}
</span>
<mat-icon class="collapsable-arrow">keyboard_arrow_right</mat-icon>
</ng-template>

View File

@ -1,7 +1,7 @@
<ng-container *ngIf="!item.hidden">
<div class="group-title" [ngClass]="item.classes">
<span class="hint-text" [translate]="item.translate">{{ item.title }}</span>
<span class="hint-text" [translate]="item.translate">{{(item.translate | translate) || item.title}}</span>
</div>
<div class="group-items">
@ -13,4 +13,4 @@
</ng-container>
</div>
</ng-container>
</ng-container>

View File

@ -38,11 +38,11 @@
<ng-template #itemContent>
<mat-icon class="nav-link-icon" *ngIf="item.icon">{{item.icon}}</mat-icon>
<span class="nav-link-title" [translate]="item.translate">{{item.title}}</span>
<span class="nav-link-title" [translate]="item.translate">{{(item.translate | translate) || item.title}}</span>
<span class="nav-link-badge" *ngIf="item.badge" [translate]="item.badge.translate"
[ngStyle]="{'background-color': item.badge.bg,'color': item.badge.fg}">
{{item.badge.title}}
{{(item.badge.translate | translate) || item.badge.title}}
</span>
</ng-template>
</ng-container>
</ng-container>

View File

@ -49,14 +49,14 @@ export const navigation: FuseNavigation[] = [
title : 'Products',
type : 'item',
url : '/apps/e-commerce/products',
exactMatch: true
// exactMatch: true
},
{
id : 'productDetail',
title : 'Product Detail',
type : 'item',
url : '/apps/e-commerce/products/1/printed-dress',
exactMatch: true
// exactMatch: true
},
{
id : 'orders',