add transaltekey pipe for accountnumberperferences in system modules

This commit is contained in:
Omar-Nabil
2024-06-07 12:23:59 -06:00
committed by Jose Alberto Hernandez
parent 1fdaf44645
commit 02bf1249b1
17 changed files with 83 additions and 8 deletions
@@ -20,7 +20,7 @@
<ng-container matColumnDef="accountType"> <ng-container matColumnDef="accountType">
<th mat-header-cell *matHeaderCellDef mat-sort-header> {{'labels.inputs.Account Number Preferences' | translate}} </th> <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> </ng-container>
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr> <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
@@ -12,7 +12,7 @@
<mat-label>{{'labels.inputs.Account Type' | translate}}</mat-label> <mat-label>{{'labels.inputs.Account Type' | translate}}</mat-label>
<mat-select required formControlName="accountType"> <mat-select required formControlName="accountType">
<mat-option *ngFor="let accountType of accountNumberPreferencesTemplateData.accountTypeOptions" [value]="accountType.id"> <mat-option *ngFor="let accountType of accountNumberPreferencesTemplateData.accountTypeOptions" [value]="accountType.id">
{{ accountType.value }} {{ accountType.value | translateKey:'catalogs' }}
</mat-option> </mat-option>
</mat-select> </mat-select>
<mat-error *ngIf="accountNumberPreferenceForm.controls.accountType.hasError('required')"> <mat-error *ngIf="accountNumberPreferenceForm.controls.accountType.hasError('required')">
@@ -24,7 +24,7 @@
<mat-label>{{'labels.inputs.Prefix Field' | translate}}</mat-label> <mat-label>{{'labels.inputs.Prefix Field' | translate}}</mat-label>
<mat-select formControlName="prefixType"> <mat-select formControlName="prefixType">
<mat-option *ngFor="let prefixType of prefixTypeData" [value]="prefixType.id"> <mat-option *ngFor="let prefixType of prefixTypeData" [value]="prefixType.id">
{{ prefixType.value }} {{ prefixType.value}}
</mat-option> </mat-option>
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
@@ -12,7 +12,7 @@
<mat-label>{{'labels.inputs.Account Type' | translate}}</mat-label> <mat-label>{{'labels.inputs.Account Type' | translate}}</mat-label>
<mat-select required formControlName="accountType"> <mat-select required formControlName="accountType">
<mat-option *ngFor="let accountType of accountNumberPreferencesTemplateData.accountTypeOptions" [value]="accountType.id"> <mat-option *ngFor="let accountType of accountNumberPreferencesTemplateData.accountTypeOptions" [value]="accountType.id">
{{ accountType.value }} {{ accountType.value | translateKey:'catalogs' }}
</mat-option> </mat-option>
</mat-select> </mat-select>
<mat-error *ngIf="accountNumberPreferenceForm.controls.accountType.hasError('required')"> <mat-error *ngIf="accountNumberPreferenceForm.controls.accountType.hasError('required')">
@@ -25,7 +25,7 @@
</div> </div>
<div fxFlex="50%"> <div fxFlex="50%">
{{ accountNumberPreferenceData.accountType.value }} {{ accountNumberPreferenceData.accountType.value | translateKey:'catalogs' }}
</div> </div>
<div fxFlex="50%" class="mat-body-strong" *ngIf="accountNumberPreferenceData.prefixType"> <div fxFlex="50%" class="mat-body-strong" *ngIf="accountNumberPreferenceData.prefixType">
@@ -1,12 +1,13 @@
/** Angular Imports */ /** Angular Imports */
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { MatDialog } from '@angular/material/dialog'; import { MatDialog } from '@angular/material/dialog';
import { ActivatedRoute, Router } from '@angular/router';
/** Custom Services */ /** Custom Services */
import { SystemService } from '../../system.service'; import { SystemService } from '../../system.service';
/** Custom Components */ /** Custom Components */
import { TranslateService } from '@ngx-translate/core';
import { DeleteDialogComponent } from 'app/shared/delete-dialog/delete-dialog.component'; import { DeleteDialogComponent } from 'app/shared/delete-dialog/delete-dialog.component';
/** /**
@@ -28,11 +29,13 @@ export class ViewAccountNumberPreferenceComponent implements OnInit {
* @param {ActivatedRoute} route Activated Route. * @param {ActivatedRoute} route Activated Route.
* @param {Router} router Router for navigation. * @param {Router} router Router for navigation.
* @param {MatDialog} dialog Dialog reference. * @param {MatDialog} dialog Dialog reference.
* @param {TranslateService} translateService Translate Service.
*/ */
constructor(private route: ActivatedRoute, constructor(private route: ActivatedRoute,
private systemService: SystemService, private systemService: SystemService,
private router: Router, private router: Router,
private dialog: MatDialog) { private dialog: MatDialog,
private translateService: TranslateService) {
this.route.data.subscribe((data: { accountNumberPreference: any }) => { this.route.data.subscribe((data: { accountNumberPreference: any }) => {
this.accountNumberPreferenceData = data.accountNumberPreference; this.accountNumberPreferenceData = data.accountNumberPreference;
}); });
@@ -46,7 +49,7 @@ export class ViewAccountNumberPreferenceComponent implements OnInit {
*/ */
delete() { delete() {
const deleteAccountNumberPreferenceDialogRef = this.dialog.open(DeleteDialogComponent, { 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) => { deleteAccountNumberPreferenceDialogRef.afterClosed().subscribe((response: any) => {
if (response.delete) { if (response.delete) {
+6
View File
@@ -522,13 +522,19 @@
"Active": "Aktivní", "Active": "Aktivní",
"Inactive": "Inactive", "Inactive": "Inactive",
"Loans": "Loans", "Loans": "Loans",
"CENTER": "CENTRUM",
"Client": "Client", "Client": "Client",
"CLIENT": "KLIENT",
"Loan": "Loan", "Loan": "Loan",
"Savings": "Savings", "Savings": "Savings",
"Shares": "Shares", "Shares": "Shares",
"Regular": "Regular", "Regular": "Regular",
"Account transfer": "Account transfer", "Account transfer": "Account transfer",
"Flat": "Flat", "Flat": "Flat",
"GROUP": "SKUPINA",
"LOAN": "PŮJČKA",
"SAVINGS": "ÚSPORY",
"SHARES": "PODÍLE",
"% Amount": "% Amount", "% Amount": "% Amount",
"% Interest": "% Interest", "% Interest": "% Interest",
"% Loan Amount + Interest": "% Loan Amount + Interest", "% Loan Amount + Interest": "% Loan Amount + Interest",
+6
View File
@@ -522,13 +522,19 @@
"Active": "Aktiv", "Active": "Aktiv",
"Inactive": "Inaktiv", "Inactive": "Inaktiv",
"Loans": "Kredite", "Loans": "Kredite",
"CENTER": "CENTER",
"Client": "Klient", "Client": "Klient",
"CLIENT": "KLIENT",
"Loan": "Darlehen", "Loan": "Darlehen",
"Savings": "Ersparnisse", "Savings": "Ersparnisse",
"Shares": "Anteile", "Shares": "Anteile",
"Regular": "Regulär", "Regular": "Regulär",
"Account transfer": "Kontoübertragung", "Account transfer": "Kontoübertragung",
"Flat": "Wohnung", "Flat": "Wohnung",
"GROUP": "GRUPPE",
"LOAN": "DARLEHEN",
"SAVINGS": "ERSPARNISSE",
"SHARES": "ANTEILE",
"% Amount": "Menge", "% Amount": "Menge",
"% Interest": "Interesse", "% Interest": "Interesse",
"% Loan Amount + Interest": "Kreditbetrag + Zinsen", "% Loan Amount + Interest": "Kreditbetrag + Zinsen",
+6
View File
@@ -522,6 +522,8 @@
"Active": "Active", "Active": "Active",
"Inactive": "Inactive", "Inactive": "Inactive",
"Loans": "Loans", "Loans": "Loans",
"CENTER": "CENTER",
"CLIENT": "CLIENT",
"Client": "Client", "Client": "Client",
"Loan": "Loan", "Loan": "Loan",
"Savings": "Savings", "Savings": "Savings",
@@ -529,6 +531,10 @@
"Regular": "Regular", "Regular": "Regular",
"Account transfer": "Account transfer", "Account transfer": "Account transfer",
"Flat": "Flat", "Flat": "Flat",
"GROUP": "GROUP",
"LOAN": "LOAN",
"SAVINGS": "SAVINGS",
"SHARES": "SHARES",
"% Amount": "% Amount", "% Amount": "% Amount",
"% Interest": "% Interest", "% Interest": "% Interest",
"% Loan Amount + Interest": "% Loan Amount + Interest", "% Loan Amount + Interest": "% Loan Amount + Interest",
+6
View File
@@ -522,13 +522,19 @@
"Active": "Activo", "Active": "Activo",
"Inactive": "Inactivo", "Inactive": "Inactivo",
"Loans": "Préstamos", "Loans": "Préstamos",
"CENTER": "CENTRO",
"Client": "Cliente", "Client": "Cliente",
"CLIENT": "CLIENTE",
"Loan": "Crédito", "Loan": "Crédito",
"Savings": "Ahorros", "Savings": "Ahorros",
"Shares": "Acciones", "Shares": "Acciones",
"Regular": "Regular", "Regular": "Regular",
"Account transfer": "Transferencia de cuenta", "Account transfer": "Transferencia de cuenta",
"Flat": "Monto fijo", "Flat": "Monto fijo",
"GROUP": "GRUPO",
"LOAN": "PRÉSTAMO",
"SAVINGS": "AHORROS",
"SHARES": "COMPARTE",
"% Amount": "% Monto", "% Amount": "% Monto",
"% Interest": "% Interés", "% Interest": "% Interés",
"% Loan Amount + Interest": "% Monto del Crédito + Interés", "% Loan Amount + Interest": "% Monto del Crédito + Interés",
+6
View File
@@ -522,13 +522,19 @@
"Active": "Actif", "Active": "Actif",
"Inactive": "Inactif", "Inactive": "Inactif",
"Loans": "Prêts", "Loans": "Prêts",
"CENTER": "CENTRE",
"Client": "Client", "Client": "Client",
"CLIENT": "CLIENT",
"Loan": "Prêt", "Loan": "Prêt",
"Savings": "Des économies", "Savings": "Des économies",
"Shares": "Actions", "Shares": "Actions",
"Regular": "Régulier", "Regular": "Régulier",
"Account transfer": "Transfert de compte", "Account transfer": "Transfert de compte",
"Flat": "Plat", "Flat": "Plat",
"GROUP": "GROUPE",
"LOAN": "PRÊT",
"SAVINGS": "DES ÉCONOMIES",
"SHARES": "ACTIONS",
"% Amount": "Montant", "% Amount": "Montant",
"% Interest": "Intérêt", "% Interest": "Intérêt",
"% Loan Amount + Interest": "Montant du prêt + intérêts", "% Loan Amount + Interest": "Montant du prêt + intérêts",
+6
View File
@@ -522,13 +522,19 @@
"Active": "Attivo", "Active": "Attivo",
"Inactive": "Inattivo", "Inactive": "Inattivo",
"Loans": "Prestiti", "Loans": "Prestiti",
"CENTER": "CENTRO",
"Client": "Cliente", "Client": "Cliente",
"CLIENT": "CLIENTE",
"Loan": "Prestito", "Loan": "Prestito",
"Savings": "Risparmio", "Savings": "Risparmio",
"Shares": "Azioni", "Shares": "Azioni",
"Regular": "Regolare", "Regular": "Regolare",
"Account transfer": "Trasferimento del conto", "Account transfer": "Trasferimento del conto",
"Flat": "Piatto", "Flat": "Piatto",
"GROUP": "GRUPPO",
"LOAN": "PRESTITO",
"SAVINGS": "RISPARMIO",
"SHARES": "CONDIVISIONI",
"% Amount": "Quantità", "% Amount": "Quantità",
"% Interest": "Interesse", "% Interest": "Interesse",
"% Loan Amount + Interest": "Importo del prestito + interessi", "% Loan Amount + Interest": "Importo del prestito + interessi",
+6
View File
@@ -522,13 +522,19 @@
"Active": "활동적인", "Active": "활동적인",
"Inactive": "비활성", "Inactive": "비활성",
"Loans": "대출", "Loans": "대출",
"CENTER": "센터",
"Client": "고객", "Client": "고객",
"CLIENT": "고객",
"Loan": "대출", "Loan": "대출",
"Savings": "저금", "Savings": "저금",
"Shares": "주식", "Shares": "주식",
"Regular": "정기적인", "Regular": "정기적인",
"Account transfer": "계좌이체", "Account transfer": "계좌이체",
"Flat": "평평한", "Flat": "평평한",
"GROUP": "그룹",
"LOAN": "대출",
"SAVINGS": "저금",
"SHARES": "주식",
"% Amount": "양", "% Amount": "양",
"% Interest": "관심", "% Interest": "관심",
"% Loan Amount + Interest": "대출금액 + 이자", "% Loan Amount + Interest": "대출금액 + 이자",
+6
View File
@@ -522,13 +522,19 @@
"Active": "Aktyvus", "Active": "Aktyvus",
"Inactive": "Neaktyvus", "Inactive": "Neaktyvus",
"Loans": "Paskolos", "Loans": "Paskolos",
"CENTER": "CENTRAS",
"Client": "Klientas", "Client": "Klientas",
"CLIENT": "KLIENTAS",
"Loan": "Paskola", "Loan": "Paskola",
"Savings": "Taupymas", "Savings": "Taupymas",
"Shares": "Akcijos", "Shares": "Akcijos",
"Regular": "Reguliarus", "Regular": "Reguliarus",
"Account transfer": "Sąskaitos perkėlimas", "Account transfer": "Sąskaitos perkėlimas",
"Flat": "Butas", "Flat": "Butas",
"GROUP": "GRUPĖ",
"LOAN": "PASKOLA",
"SAVINGS": "TAUPYMAS",
"SHARES": "AKCIJAS",
"% Amount": "Suma", "% Amount": "Suma",
"% Interest": "Palūkanos", "% Interest": "Palūkanos",
"% Loan Amount + Interest": "Paskolos suma + palūkanos", "% Loan Amount + Interest": "Paskolos suma + palūkanos",
+6
View File
@@ -522,13 +522,19 @@
"Active": "Aktīvs", "Active": "Aktīvs",
"Inactive": "Neaktīvs", "Inactive": "Neaktīvs",
"Loans": "Aizdevumi", "Loans": "Aizdevumi",
"CENTER": "CENTRS",
"Client": "Klients", "Client": "Klients",
"CLIENT": "KLIENTS",
"Loan": "Aizdevums", "Loan": "Aizdevums",
"Savings": "Ietaupījumi", "Savings": "Ietaupījumi",
"Shares": "Akcijas", "Shares": "Akcijas",
"Regular": "Regulāri", "Regular": "Regulāri",
"Account transfer": "Konta pārskaitījums", "Account transfer": "Konta pārskaitījums",
"Flat": "Plakans", "Flat": "Plakans",
"GROUP": "GRUPA",
"LOAN": "AIZDEVUMS",
"SAVINGS": "UZKRĀJUMI",
"SHARES": "AKCIJAS",
"% Amount": "Summa", "% Amount": "Summa",
"% Interest": "Interese", "% Interest": "Interese",
"% Loan Amount + Interest": "Aizdevuma summa + procenti", "% Loan Amount + Interest": "Aizdevuma summa + procenti",
+6
View File
@@ -522,13 +522,19 @@
"Active": "सक्रिय", "Active": "सक्रिय",
"Inactive": "निष्क्रिय", "Inactive": "निष्क्रिय",
"Loans": "ऋण", "Loans": "ऋण",
"CENTER": "केन्द्र",
"Client": "ग्राहक", "Client": "ग्राहक",
"CLIENT": "ग्राहक",
"Loan": "ऋण", "Loan": "ऋण",
"Savings": "बचत", "Savings": "बचत",
"Shares": "सेयरहरू", "Shares": "सेयरहरू",
"Regular": "नियमित", "Regular": "नियमित",
"Account transfer": "खाता स्थानान्तरण", "Account transfer": "खाता स्थानान्तरण",
"Flat": "फ्ल्याट", "Flat": "फ्ल्याट",
"GROUP": "समूह",
"LOAN": "ऋण",
"SAVINGS": "बचत",
"SHARES": "शेयरहरू",
"% Amount": "रकम", "% Amount": "रकम",
"% Interest": "ब्याज", "% Interest": "ब्याज",
"% Loan Amount + Interest": "ऋण रकम + ब्याज", "% Loan Amount + Interest": "ऋण रकम + ब्याज",
+6
View File
@@ -522,13 +522,19 @@
"Active": "Ativo", "Active": "Ativo",
"Inactive": "Inativo", "Inactive": "Inativo",
"Loans": "Empréstimos", "Loans": "Empréstimos",
"CENTER": "CENTRO",
"Client": "Cliente", "Client": "Cliente",
"CLIENT": "CLIENTE",
"Loan": "Empréstimo", "Loan": "Empréstimo",
"Savings": "Poupança", "Savings": "Poupança",
"Shares": "Ações", "Shares": "Ações",
"Regular": "Regular", "Regular": "Regular",
"Account transfer": "Transferência de conta", "Account transfer": "Transferência de conta",
"Flat": "Plano", "Flat": "Plano",
"GROUP": "GRUPO",
"LOAN": "EMPRÉSTIMO",
"SAVINGS": "POUPANÇA",
"SHARES": "AÇÕES",
"% Amount": "Quantia", "% Amount": "Quantia",
"% Interest": "Interesse", "% Interest": "Interesse",
"% Loan Amount + Interest": "Valor do empréstimo + juros", "% Loan Amount + Interest": "Valor do empréstimo + juros",
+6
View File
@@ -522,13 +522,19 @@
"Active": "Inayotumika", "Active": "Inayotumika",
"Inactive": "Isiyotumika", "Inactive": "Isiyotumika",
"Loans": "Mikopo", "Loans": "Mikopo",
"CENTER": "KITUO",
"Client": "Mteja", "Client": "Mteja",
"CLIENT": "MTEJA",
"Loan": "Mkopo", "Loan": "Mkopo",
"Savings": "Akiba", "Savings": "Akiba",
"Shares": "Hisa", "Shares": "Hisa",
"Regular": "Mara kwa mara", "Regular": "Mara kwa mara",
"Account transfer": "Uhamisho wa akaunti", "Account transfer": "Uhamisho wa akaunti",
"Flat": "Gorofa", "Flat": "Gorofa",
"GROUP": "KIKUNDI",
"LOAN": "MKOPO",
"SAVINGS": "AKIBA",
"SHARES": "HISA",
"% Amount": "Kiasi", "% Amount": "Kiasi",
"% Interest": "Hamu", "% Interest": "Hamu",
"% Loan Amount + Interest": "Kiasi cha Mkopo + Riba", "% Loan Amount + Interest": "Kiasi cha Mkopo + Riba",