Browse Source

Task/improve localization in lib components (#5907)

* Improve localization
pull/5913/head
Thomas Kaul 4 weeks ago
committed by GitHub
parent
commit
a892f51799
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      libs/ui/src/lib/accounts-table/accounts-table.component.html
  2. 22
      libs/ui/src/lib/assistant/assistant.html
  3. 4
      libs/ui/src/lib/benchmark/benchmark.component.html

2
libs/ui/src/lib/accounts-table/accounts-table.component.html

@ -290,7 +290,7 @@
</ng-container> </ng-container>
<ng-container matColumnDef="actions" stickyEnd> <ng-container matColumnDef="actions" stickyEnd>
<th *matHeaderCellDef class="px-1 text-center" i18n mat-header-cell></th> <th *matHeaderCellDef class="px-1 text-center" mat-header-cell></th>
<td *matCellDef="let element" class="px-1 text-center" mat-cell> <td *matCellDef="let element" class="px-1 text-center" mat-cell>
<button <button
class="mx-1 no-min-width px-2" class="mx-1 no-min-width px-2"

22
libs/ui/src/lib/assistant/assistant.html

@ -54,8 +54,8 @@
isLoading.quickLinks || searchResults?.quickLinks?.length !== 0 isLoading.quickLinks || searchResults?.quickLinks?.length !== 0
) { ) {
<div class="mb-2"> <div class="mb-2">
<div class="font-weight-bold px-3 text-muted title" i18n> <div class="font-weight-bold px-3 text-muted title">
Quick Links <ng-container i18n>Quick Links</ng-container>
</div> </div>
@for ( @for (
searchResultItem of searchResults.quickLinks; searchResultItem of searchResults.quickLinks;
@ -80,8 +80,8 @@
} }
@if (isLoading.accounts || searchResults?.accounts?.length !== 0) { @if (isLoading.accounts || searchResults?.accounts?.length !== 0) {
<div> <div>
<div class="font-weight-bold px-3 text-muted title" i18n> <div class="font-weight-bold px-3 text-muted title">
Accounts <ng-container i18n>Accounts</ng-container>
</div> </div>
@for ( @for (
searchResultItem of searchResults.accounts; searchResultItem of searchResults.accounts;
@ -106,8 +106,8 @@
} }
@if (isLoading.holdings || searchResults?.holdings?.length !== 0) { @if (isLoading.holdings || searchResults?.holdings?.length !== 0) {
<div> <div>
<div class="font-weight-bold px-3 text-muted title" i18n> <div class="font-weight-bold px-3 text-muted title">
Holdings <ng-container i18n>Holdings</ng-container>
</div> </div>
@for ( @for (
searchResultItem of searchResults.holdings; searchResultItem of searchResults.holdings;
@ -136,8 +136,8 @@
searchResults?.assetProfiles?.length !== 0) searchResults?.assetProfiles?.length !== 0)
) { ) {
<div class="mt-2"> <div class="mt-2">
<div class="font-weight-bold px-3 text-muted title" i18n> <div class="font-weight-bold px-3 text-muted title">
Asset Profiles <ng-container i18n>Asset Profiles</ng-container>
</div> </div>
@for ( @for (
searchResultItem of searchResults.assetProfiles; searchResultItem of searchResults.assetProfiles;
@ -194,7 +194,6 @@
/> />
<div class="d-flex w-100"> <div class="d-flex w-100">
<button <button
i18n
mat-button mat-button
type="button" type="button"
[disabled]=" [disabled]="
@ -202,12 +201,11 @@
" "
(click)="onResetFilters()" (click)="onResetFilters()"
> >
Reset Filters <ng-container i18n>Reset Filters</ng-container>
</button> </button>
<span class="gf-spacer"></span> <span class="gf-spacer"></span>
<button <button
color="primary" color="primary"
i18n
mat-flat-button mat-flat-button
type="button" type="button"
[disabled]=" [disabled]="
@ -216,7 +214,7 @@
" "
(click)="onApplyFilters()" (click)="onApplyFilters()"
> >
Apply Filters <ng-container i18n>Apply Filters</ng-container>
</button> </button>
</div> </div>
</div> </div>

4
libs/ui/src/lib/benchmark/benchmark.component.html

@ -8,8 +8,8 @@
[dataSource]="dataSource" [dataSource]="dataSource"
> >
<ng-container matColumnDef="name" sticky> <ng-container matColumnDef="name" sticky>
<th *matHeaderCellDef class="px-2" i18n mat-header-cell mat-sort-header> <th *matHeaderCellDef class="px-2" mat-header-cell mat-sort-header>
Name <ng-container i18n>Name</ng-container>
</th> </th>
<td *matCellDef="let element" class="px-2 text-nowrap" mat-cell> <td *matCellDef="let element" class="px-2 text-nowrap" mat-cell>
<div class="text-truncate"> <div class="text-truncate">

Loading…
Cancel
Save