Skip to content

Commit

Permalink
add transaltekey pipe for accountnumberperferences in system modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Omar-Nabil authored and alberto-art3ch committed Jun 7, 2024
1 parent 1fdaf44 commit 02bf124
Show file tree
Hide file tree
Showing 17 changed files with 83 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

<ng-container matColumnDef="accountType">
<th mat-header-cell *matHeaderCellDef mat-sort-header> {{'labels.inputs.Account Number Preferences' | translate}} </th>
<td mat-cell *matCellDef="let accountNumberPreference"> {{ accountNumberPreference.accountType.value }} </td>
<td mat-cell *matCellDef="let accountNumberPreference"> {{ accountNumberPreference.accountType.value | translateKey:'catalogs' }} </td>
</ng-container>

<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<mat-label>{{'labels.inputs.Account Type' | translate}}</mat-label>
<mat-select required formControlName="accountType">
<mat-option *ngFor="let accountType of accountNumberPreferencesTemplateData.accountTypeOptions" [value]="accountType.id">
{{ accountType.value }}
{{ accountType.value | translateKey:'catalogs' }}
</mat-option>
</mat-select>
<mat-error *ngIf="accountNumberPreferenceForm.controls.accountType.hasError('required')">
Expand All @@ -24,7 +24,7 @@
<mat-label>{{'labels.inputs.Prefix Field' | translate}}</mat-label>
<mat-select formControlName="prefixType">
<mat-option *ngFor="let prefixType of prefixTypeData" [value]="prefixType.id">
{{ prefixType.value }}
{{ prefixType.value}}
</mat-option>
</mat-select>
</mat-form-field>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<mat-label>{{'labels.inputs.Account Type' | translate}}</mat-label>
<mat-select required formControlName="accountType">
<mat-option *ngFor="let accountType of accountNumberPreferencesTemplateData.accountTypeOptions" [value]="accountType.id">
{{ accountType.value }}
{{ accountType.value | translateKey:'catalogs' }}
</mat-option>
</mat-select>
<mat-error *ngIf="accountNumberPreferenceForm.controls.accountType.hasError('required')">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</div>

<div fxFlex="50%">
{{ accountNumberPreferenceData.accountType.value }}
{{ accountNumberPreferenceData.accountType.value | translateKey:'catalogs' }}
</div>

<div fxFlex="50%" class="mat-body-strong" *ngIf="accountNumberPreferenceData.prefixType">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
/** Angular Imports */
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { MatDialog } from '@angular/material/dialog';
import { ActivatedRoute, Router } from '@angular/router';

/** Custom Services */
import { SystemService } from '../../system.service';

/** Custom Components */
import { TranslateService } from '@ngx-translate/core';
import { DeleteDialogComponent } from 'app/shared/delete-dialog/delete-dialog.component';

/**
Expand All @@ -28,11 +29,13 @@ export class ViewAccountNumberPreferenceComponent implements OnInit {
* @param {ActivatedRoute} route Activated Route.
* @param {Router} router Router for navigation.
* @param {MatDialog} dialog Dialog reference.
* @param {TranslateService} translateService Translate Service.
*/
constructor(private route: ActivatedRoute,
private systemService: SystemService,
private router: Router,
private dialog: MatDialog) {
private dialog: MatDialog,
private translateService: TranslateService) {
this.route.data.subscribe((data: { accountNumberPreference: any }) => {
this.accountNumberPreferenceData = data.accountNumberPreference;
});
Expand All @@ -46,7 +49,7 @@ export class ViewAccountNumberPreferenceComponent implements OnInit {
*/
delete() {
const deleteAccountNumberPreferenceDialogRef = this.dialog.open(DeleteDialogComponent, {
data: { deleteContext: `account number preference ${this.accountNumberPreferenceData.id}` }
data: { deleteContext: this.translateService.instant('labels.heading.Account Number Preferences') + ' ' + this.accountNumberPreferenceData.id}
});
deleteAccountNumberPreferenceDialogRef.afterClosed().subscribe((response: any) => {
if (response.delete) {
Expand Down
6 changes: 6 additions & 0 deletions src/assets/translations/cs-CS.json
Original file line number Diff line number Diff line change
Expand Up @@ -522,13 +522,19 @@
"Active": "Aktivní",
"Inactive": "Inactive",
"Loans": "Loans",
"CENTER": "CENTRUM",
"Client": "Client",
"CLIENT": "KLIENT",
"Loan": "Loan",
"Savings": "Savings",
"Shares": "Shares",
"Regular": "Regular",
"Account transfer": "Account transfer",
"Flat": "Flat",
"GROUP": "SKUPINA",
"LOAN": "PŮJČKA",
"SAVINGS": "ÚSPORY",
"SHARES": "PODÍLE",
"% Amount": "% Amount",
"% Interest": "% Interest",
"% Loan Amount + Interest": "% Loan Amount + Interest",
Expand Down
6 changes: 6 additions & 0 deletions src/assets/translations/de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -522,13 +522,19 @@
"Active": "Aktiv",
"Inactive": "Inaktiv",
"Loans": "Kredite",
"CENTER": "CENTER",
"Client": "Klient",
"CLIENT": "KLIENT",
"Loan": "Darlehen",
"Savings": "Ersparnisse",
"Shares": "Anteile",
"Regular": "Regulär",
"Account transfer": "Kontoübertragung",
"Flat": "Wohnung",
"GROUP": "GRUPPE",
"LOAN": "DARLEHEN",
"SAVINGS": "ERSPARNISSE",
"SHARES": "ANTEILE",
"% Amount": "Menge",
"% Interest": "Interesse",
"% Loan Amount + Interest": "Kreditbetrag + Zinsen",
Expand Down
6 changes: 6 additions & 0 deletions src/assets/translations/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -522,13 +522,19 @@
"Active": "Active",
"Inactive": "Inactive",
"Loans": "Loans",
"CENTER": "CENTER",
"CLIENT": "CLIENT",
"Client": "Client",
"Loan": "Loan",
"Savings": "Savings",
"Shares": "Shares",
"Regular": "Regular",
"Account transfer": "Account transfer",
"Flat": "Flat",
"GROUP": "GROUP",
"LOAN": "LOAN",
"SAVINGS": "SAVINGS",
"SHARES": "SHARES",
"% Amount": "% Amount",
"% Interest": "% Interest",
"% Loan Amount + Interest": "% Loan Amount + Interest",
Expand Down
6 changes: 6 additions & 0 deletions src/assets/translations/es-MX.json
Original file line number Diff line number Diff line change
Expand Up @@ -522,13 +522,19 @@
"Active": "Activo",
"Inactive": "Inactivo",
"Loans": "Préstamos",
"CENTER": "CENTRO",
"Client": "Cliente",
"CLIENT": "CLIENTE",
"Loan": "Crédito",
"Savings": "Ahorros",
"Shares": "Acciones",
"Regular": "Regular",
"Account transfer": "Transferencia de cuenta",
"Flat": "Monto fijo",
"GROUP": "GRUPO",
"LOAN": "PRÉSTAMO",
"SAVINGS": "AHORROS",
"SHARES": "COMPARTE",
"% Amount": "% Monto",
"% Interest": "% Interés",
"% Loan Amount + Interest": "% Monto del Crédito + Interés",
Expand Down
6 changes: 6 additions & 0 deletions src/assets/translations/fr-FR.json
Original file line number Diff line number Diff line change
Expand Up @@ -522,13 +522,19 @@
"Active": "Actif",
"Inactive": "Inactif",
"Loans": "Prêts",
"CENTER": "CENTRE",
"Client": "Client",
"CLIENT": "CLIENT",
"Loan": "Prêt",
"Savings": "Des économies",
"Shares": "Actions",
"Regular": "Régulier",
"Account transfer": "Transfert de compte",
"Flat": "Plat",
"GROUP": "GROUPE",
"LOAN": "PRÊT",
"SAVINGS": "DES ÉCONOMIES",
"SHARES": "ACTIONS",
"% Amount": "Montant",
"% Interest": "Intérêt",
"% Loan Amount + Interest": "Montant du prêt + intérêts",
Expand Down
6 changes: 6 additions & 0 deletions src/assets/translations/it-IT.json
Original file line number Diff line number Diff line change
Expand Up @@ -522,13 +522,19 @@
"Active": "Attivo",
"Inactive": "Inattivo",
"Loans": "Prestiti",
"CENTER": "CENTRO",
"Client": "Cliente",
"CLIENT": "CLIENTE",
"Loan": "Prestito",
"Savings": "Risparmio",
"Shares": "Azioni",
"Regular": "Regolare",
"Account transfer": "Trasferimento del conto",
"Flat": "Piatto",
"GROUP": "GRUPPO",
"LOAN": "PRESTITO",
"SAVINGS": "RISPARMIO",
"SHARES": "CONDIVISIONI",
"% Amount": "Quantità",
"% Interest": "Interesse",
"% Loan Amount + Interest": "Importo del prestito + interessi",
Expand Down
6 changes: 6 additions & 0 deletions src/assets/translations/ko-KO.json
Original file line number Diff line number Diff line change
Expand Up @@ -522,13 +522,19 @@
"Active": "활동적인",
"Inactive": "비활성",
"Loans": "대출",
"CENTER": "센터",
"Client": "고객",
"CLIENT": "고객",
"Loan": "대출",
"Savings": "저금",
"Shares": "주식",
"Regular": "정기적인",
"Account transfer": "계좌이체",
"Flat": "평평한",
"GROUP": "그룹",
"LOAN": "대출",
"SAVINGS": "저금",
"SHARES": "주식",
"% Amount": "",
"% Interest": "관심",
"% Loan Amount + Interest": "대출금액 + 이자",
Expand Down
6 changes: 6 additions & 0 deletions src/assets/translations/lt-LT.json
Original file line number Diff line number Diff line change
Expand Up @@ -522,13 +522,19 @@
"Active": "Aktyvus",
"Inactive": "Neaktyvus",
"Loans": "Paskolos",
"CENTER": "CENTRAS",
"Client": "Klientas",
"CLIENT": "KLIENTAS",
"Loan": "Paskola",
"Savings": "Taupymas",
"Shares": "Akcijos",
"Regular": "Reguliarus",
"Account transfer": "Sąskaitos perkėlimas",
"Flat": "Butas",
"GROUP": "GRUPĖ",
"LOAN": "PASKOLA",
"SAVINGS": "TAUPYMAS",
"SHARES": "AKCIJAS",
"% Amount": "Suma",
"% Interest": "Palūkanos",
"% Loan Amount + Interest": "Paskolos suma + palūkanos",
Expand Down
6 changes: 6 additions & 0 deletions src/assets/translations/lv-LV.json
Original file line number Diff line number Diff line change
Expand Up @@ -522,13 +522,19 @@
"Active": "Aktīvs",
"Inactive": "Neaktīvs",
"Loans": "Aizdevumi",
"CENTER": "CENTRS",
"Client": "Klients",
"CLIENT": "KLIENTS",
"Loan": "Aizdevums",
"Savings": "Ietaupījumi",
"Shares": "Akcijas",
"Regular": "Regulāri",
"Account transfer": "Konta pārskaitījums",
"Flat": "Plakans",
"GROUP": "GRUPA",
"LOAN": "AIZDEVUMS",
"SAVINGS": "UZKRĀJUMI",
"SHARES": "AKCIJAS",
"% Amount": "Summa",
"% Interest": "Interese",
"% Loan Amount + Interest": "Aizdevuma summa + procenti",
Expand Down
6 changes: 6 additions & 0 deletions src/assets/translations/ne-NE.json
Original file line number Diff line number Diff line change
Expand Up @@ -522,13 +522,19 @@
"Active": "सक्रिय",
"Inactive": "निष्क्रिय",
"Loans": "ऋण",
"CENTER": "केन्द्र",
"Client": "ग्राहक",
"CLIENT": "ग्राहक",
"Loan": "ऋण",
"Savings": "बचत",
"Shares": "सेयरहरू",
"Regular": "नियमित",
"Account transfer": "खाता स्थानान्तरण",
"Flat": "फ्ल्याट",
"GROUP": "समूह",
"LOAN": "ऋण",
"SAVINGS": "बचत",
"SHARES": "शेयरहरू",
"% Amount": "रकम",
"% Interest": "ब्याज",
"% Loan Amount + Interest": "ऋण रकम + ब्याज",
Expand Down
6 changes: 6 additions & 0 deletions src/assets/translations/pt-PT.json
Original file line number Diff line number Diff line change
Expand Up @@ -522,13 +522,19 @@
"Active": "Ativo",
"Inactive": "Inativo",
"Loans": "Empréstimos",
"CENTER": "CENTRO",
"Client": "Cliente",
"CLIENT": "CLIENTE",
"Loan": "Empréstimo",
"Savings": "Poupança",
"Shares": "Ações",
"Regular": "Regular",
"Account transfer": "Transferência de conta",
"Flat": "Plano",
"GROUP": "GRUPO",
"LOAN": "EMPRÉSTIMO",
"SAVINGS": "POUPANÇA",
"SHARES": "AÇÕES",
"% Amount": "Quantia",
"% Interest": "Interesse",
"% Loan Amount + Interest": "Valor do empréstimo + juros",
Expand Down
6 changes: 6 additions & 0 deletions src/assets/translations/sw-SW.json
Original file line number Diff line number Diff line change
Expand Up @@ -522,13 +522,19 @@
"Active": "Inayotumika",
"Inactive": "Isiyotumika",
"Loans": "Mikopo",
"CENTER": "KITUO",
"Client": "Mteja",
"CLIENT": "MTEJA",
"Loan": "Mkopo",
"Savings": "Akiba",
"Shares": "Hisa",
"Regular": "Mara kwa mara",
"Account transfer": "Uhamisho wa akaunti",
"Flat": "Gorofa",
"GROUP": "KIKUNDI",
"LOAN": "MKOPO",
"SAVINGS": "AKIBA",
"SHARES": "HISA",
"% Amount": "Kiasi",
"% Interest": "Hamu",
"% Loan Amount + Interest": "Kiasi cha Mkopo + Riba",
Expand Down

0 comments on commit 02bf124

Please sign in to comment.