Browse Source
Merge pull request #12439 from maxunbearable/fix/1534-custom-translation
Added custom translation support
pull/12512/head
Igor Kulikov
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with
5 additions and
5 deletions
-
ui-ngx/src/app/modules/home/components/entity/entity-chips.component.html
-
ui-ngx/src/app/modules/home/components/relation/relation-table.component.html
-
ui-ngx/src/app/modules/home/components/widget/lib/home-page/doc-link.component.html
-
ui-ngx/src/app/modules/home/components/widget/lib/home-page/doc-links-widget.component.html
|
|
@ -18,5 +18,5 @@ |
|
|
|
|
|
|
|
|
<a *ngFor="let subEntity of subEntities" class="tb-entity-chip" |
|
|
<a *ngFor="let subEntity of subEntities" class="tb-entity-chip" |
|
|
routerLink="{{entityDetailsPrefixUrl}}/{{subEntity.id.id}}" (click)="$event.stopPropagation();"> |
|
|
routerLink="{{entityDetailsPrefixUrl}}/{{subEntity.id.id}}" (click)="$event.stopPropagation();"> |
|
|
{{ subEntity.name }} |
|
|
{{ subEntity.name | customTranslate }} |
|
|
</a> |
|
|
</a> |
|
|
|
|
|
@ -118,7 +118,7 @@ |
|
|
<mat-header-cell *matHeaderCellDef mat-sort-header style="width: 33%"> {{ 'relation.to-entity-name' | translate }} </mat-header-cell> |
|
|
<mat-header-cell *matHeaderCellDef mat-sort-header style="width: 33%"> {{ 'relation.to-entity-name' | translate }} </mat-header-cell> |
|
|
<mat-cell *matCellDef="let relation"> |
|
|
<mat-cell *matCellDef="let relation"> |
|
|
<a class="link" [routerLink]="relation.entityURL"> |
|
|
<a class="link" [routerLink]="relation.entityURL"> |
|
|
{{ relation.toName }} |
|
|
{{ relation.toName | customTranslate }} |
|
|
</a> |
|
|
</a> |
|
|
</mat-cell> |
|
|
</mat-cell> |
|
|
</ng-container> |
|
|
</ng-container> |
|
|
@ -132,7 +132,7 @@ |
|
|
<mat-header-cell *matHeaderCellDef mat-sort-header style="width: 33%"> {{ 'relation.from-entity-name' | translate }} </mat-header-cell> |
|
|
<mat-header-cell *matHeaderCellDef mat-sort-header style="width: 33%"> {{ 'relation.from-entity-name' | translate }} </mat-header-cell> |
|
|
<mat-cell *matCellDef="let relation"> |
|
|
<mat-cell *matCellDef="let relation"> |
|
|
<a class="link" [routerLink]="relation.entityURL"> |
|
|
<a class="link" [routerLink]="relation.entityURL"> |
|
|
{{ relation.fromName }} |
|
|
{{ relation.fromName | customTranslate }} |
|
|
</a> |
|
|
</a> |
|
|
</mat-cell> |
|
|
</mat-cell> |
|
|
</ng-container> |
|
|
</ng-container> |
|
|
|
|
|
@ -49,7 +49,7 @@ |
|
|
<div class="tb-link-icon-container"> |
|
|
<div class="tb-link-icon-container"> |
|
|
<tb-icon color="primary">{{ docLink.icon }}</tb-icon> |
|
|
<tb-icon color="primary">{{ docLink.icon }}</tb-icon> |
|
|
</div> |
|
|
</div> |
|
|
<div class="tb-link-text">{{ docLink.name }}</div> |
|
|
<div class="tb-link-text">{{ docLink.name | customTranslate }}</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="tb-edit-buttons flex flex-row items-center justify-start"> |
|
|
<div class="tb-edit-buttons flex flex-row items-center justify-start"> |
|
|
|
|
|
@ -34,7 +34,7 @@ |
|
|
<div class="tb-link-icon-container"> |
|
|
<div class="tb-link-icon-container"> |
|
|
<tb-icon color="primary">{{ docLink.icon }}</tb-icon> |
|
|
<tb-icon color="primary">{{ docLink.icon }}</tb-icon> |
|
|
</div> |
|
|
</div> |
|
|
<div class="tb-link-text">{{ docLink.name }}</div> |
|
|
<div class="tb-link-text">{{ docLink.name | customTranslate }}</div> |
|
|
</div> |
|
|
</div> |
|
|
</a> |
|
|
</a> |
|
|
</mat-grid-tile> |
|
|
</mat-grid-tile> |
|
|
|