i18n: Adding new languages: Part 1 (#1882)

Co-authored-by: Jose Alberto Hernandez <alberto@blue-daemon.local>
This commit is contained in:
José Alberto Hernández
2023-10-22 20:18:05 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent c7fe21e74a
commit 408f004450
432 changed files with 38051 additions and 44613 deletions
@@ -2,48 +2,48 @@
<mat-card fxLayout="column" fxLayoutGap="2%" *ngIf="hasResults">
<mat-error *ngIf="overload">{{ 'error.Searched query resulted more than 200 records' | translate }}</mat-error>
<mat-error *ngIf="overload">{{ 'error.Searched query resulted more than 200 records' | translate}}</mat-error>
<table mat-table [dataSource]="dataSource">
<ng-container matColumnDef="entityType">
<th mat-header-cell *matHeaderCellDef> {{ 'labels.inputs.Entity Type' | translate }} </th>
<th mat-header-cell *matHeaderCellDef> {{'labels.inputs.Entity Type' | translate}} </th>
<td mat-cell *matCellDef="let entity" class="view-details"> {{entity.entityType}} </td>
</ng-container>
<ng-container matColumnDef="entityName">
<th mat-header-cell *matHeaderCellDef> {{ 'labels.inputs.Entity Name' | translate }} </th>
<th mat-header-cell *matHeaderCellDef> {{'labels.inputs.Entity Name' | translate}} </th>
<td mat-cell *matCellDef="let entity" class="view-details"> {{entity.entityName}} </td>
</ng-container>
<ng-container matColumnDef="entityAccount">
<th mat-header-cell *matHeaderCellDef> {{ 'labels.inputs.Account No' | translate }} </th>
<th mat-header-cell *matHeaderCellDef> {{'labels.inputs.Account No' | translate}} </th>
<td mat-cell *matCellDef="let entity" class="view-details">
<mifosx-account-number display="left" accountNo="{{entity.entityAccountNo}}"></mifosx-account-number>
</td>
</ng-container>
<ng-container matColumnDef="externalId">
<th mat-header-cell *matHeaderCellDef> {{ 'labels.inputs.External Id' | translate }} </th>
<th mat-header-cell *matHeaderCellDef> {{'labels.inputs.External Id' | translate}} </th>
<td mat-cell *matCellDef="let entity" class="view-details">
<mifosx-external-identifier externalId="{{entity.entityExternalId}}"></mifosx-external-identifier>
</td>
</ng-container>
<ng-container matColumnDef="parentType">
<th mat-header-cell *matHeaderCellDef> {{ 'labels.inputs.Parent Type' | translate }} </th>
<th mat-header-cell *matHeaderCellDef> {{'labels.inputs.Parent Type' | translate}} </th>
<td mat-cell *matCellDef="let entity" class="view-details"> {{ ['CLIENT','GROUP', 'CENTER'].includes(entity.entityType) ? 'Office' : 'Client' }} </td>
</ng-container>
<ng-container matColumnDef="parentName">
<th mat-header-cell *matHeaderCellDef> {{ 'labels.inputs.Parent Name' | translate }} </th>
<th mat-header-cell *matHeaderCellDef> {{'labels.inputs.Parent Name' | translate}} </th>
<td mat-cell *matCellDef="let entity" class="view-details"> {{entity.parentName}} </td>
</ng-container>
<ng-container matColumnDef="details">
<th mat-header-cell *matHeaderCellDef> {{ 'labels.inputs.Details' | translate }} </th>
<th mat-header-cell *matHeaderCellDef> {{'labels.inputs.Details' | translate}} </th>
<td mat-cell *matCellDef="let entity" class="view-details">
<button mat-icon-button matTooltip="{{ 'tooltips.View Entity' | translate }}" (click)="navigate(entity)" matTooltipPosition="right">
<button mat-icon-button matTooltip="{{ 'tooltips.View Entity' | translate}}" (click)="navigate(entity)" matTooltipPosition="right">
<fa-icon icon="eye" size="lg"></fa-icon>
</button>
</td>
@@ -63,7 +63,7 @@
<div class="message">
<i class="fa fa-exclamation-circle alert-check"></i>
{{ 'labels.text.No data found' | translate }}
{{'labels.text.No data found' | translate}}
</div>
</div>
+1 -4
View File
@@ -5,9 +5,6 @@ import { Routes, RouterModule } from '@angular/router';
/** Routing Imports */
import { Route } from '../core/route/route.service';
/** Translation Imports */
import { extract } from '../core/i18n/i18n.service';
/** Custom Components */
import { SearchPageComponent } from './search-page/search-page.component';
@@ -20,7 +17,7 @@ const routes: Routes = [
{
path: 'search',
component: SearchPageComponent,
data: { title: extract('Search'), breadcrumb: 'Search' },
data: { title: 'Search', breadcrumb: 'Search' },
runGuardsAndResolvers: 'paramsOrQueryParamsChange',
resolve: {
searchResults: SearchResolver