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
@@ -1,7 +1,7 @@
<div class="container m-b-20" fxLayout="row" fxLayoutAlign="end" fxLayoutGap="20px">
<button mat-raised-button color="primary" [routerLink]="['edit']">
<fa-icon icon="edit" class="m-r-10"></fa-icon>
Edit
{{'labels.buttons.Edit' | translate}}
</button>
</div>
@@ -10,12 +10,12 @@
<table mat-table [dataSource]="dataSource" matSort>
<ng-container matColumnDef="name">
<th mat-header-cell *matHeaderCellDef mat-sort-header> Name </th>
<th mat-header-cell *matHeaderCellDef mat-sort-header> {{'labels.inputs.name' | translate}} </th>
<td mat-cell *matCellDef="let configuration"> {{ configuration.name }} </td>
</ng-container>
<ng-container matColumnDef="value">
<th mat-header-cell *matHeaderCellDef mat-sort-header> Value </th>
<th mat-header-cell *matHeaderCellDef mat-sort-header> {{'labels.inputs.Value' | translate}} </th>
<td mat-cell *matCellDef="let configuration"> {{ getConfigurationValue(configuration) }} </td>
</ng-container>
@@ -9,15 +9,15 @@
<div fxLayout="column">
<mat-form-field>
<mat-label>S3 Bucket Name</mat-label>
<mat-label>{{'labels.inputs.S3 Bucket Name' | translate}}</mat-label>
<input matInput required formControlName="s3_bucket_name">
<mat-error *ngIf="amazonS3ConfigurationForm.controls.s3_bucket_name.hasError('required')">
S3 Bucket Name is <strong>required</strong>
{{'labels.inputs.S3 Bucket Name' | translate}} {{ "labels.commons.is" | translate}} <strong>{{ "labels.commons.required" | translate}}</strong>
</mat-error>
</mat-form-field>
<mat-form-field>
<mat-label>S3 Access Key</mat-label>
<mat-label>{{'labels.inputs.S3 Access Key' | translate}}</mat-label>
<input matInput required type="{{ accessKeyInputType }}" formControlName="s3_access_key">
<button mat-button *ngIf="amazonS3ConfigurationForm.controls.s3_access_key.value" matSuffix mat-icon-button
(mousedown)="accessKeyInputType = 'text'" (mouseup)="accessKeyInputType = 'password'">
@@ -25,12 +25,12 @@
<fa-icon *ngIf="accessKeyInputType === 'text'" icon="eye-slash"></fa-icon>
</button>
<mat-error *ngIf="amazonS3ConfigurationForm.controls.s3_access_key.hasError('required')">
S3 Access Key is <strong>required</strong>
{{'labels.inputs.S3 Access Key' | translate}} {{ "labels.commons.is" | translate}} <strong>{{ "labels.commons.required" | translate}}</strong>
</mat-error>
</mat-form-field>
<mat-form-field>
<mat-label>S3 Secret Key</mat-label>
<mat-label>{{'labels.inputs.S3 Secret Key' | translate}}</mat-label>
<input matInput required type="{{ secretKeyInputType }}" formControlName="s3_secret_key">
<button mat-button *ngIf="amazonS3ConfigurationForm.controls.s3_secret_key.value" matSuffix mat-icon-button
(mousedown)="secretKeyInputType = 'text'" (mouseup)="secretKeyInputType = 'password'">
@@ -38,7 +38,7 @@
<fa-icon *ngIf="secretKeyInputType === 'text'" icon="eye-slash"></fa-icon>
</button>
<mat-error *ngIf="amazonS3ConfigurationForm.controls.s3_secret_key.hasError('required')">
S3 Secret Key is <strong>required</strong>
{{'labels.inputs.S3 Secret Key' | translate}} {{ "labels.commons.is" | translate}} <strong>{{ "labels.commons.required" | translate}}</strong>
</mat-error>
</mat-form-field>
@@ -47,8 +47,8 @@
</mat-card-content>
<mat-card-actions fxLayout="row" fxLayout.xs="column" fxLayoutAlign="center" fxLayoutGap="5px">
<button type="button" mat-raised-button [routerLink]="['../']">Cancel</button>
<button mat-raised-button color="primary" [disabled]="!amazonS3ConfigurationForm.valid || amazonS3ConfigurationForm.pristine">Submit</button>
<button type="button" mat-raised-button [routerLink]="['../']">{{'labels.buttons.Cancel' | translate}}</button>
<button mat-raised-button color="primary" [disabled]="!amazonS3ConfigurationForm.valid || amazonS3ConfigurationForm.pristine">{{'labels.buttons.Submit' | translate}}</button>
</mat-card-actions>
</form>