[ADF-5178] - add translation for filters (#5843)

This commit is contained in:
Vito
2020-07-08 09:10:00 +01:00
committed by GitHub
parent 1e4e58abe0
commit 529aea77b1
4 changed files with 35 additions and 26 deletions

View File

@@ -290,7 +290,28 @@
"TYPE": "Type",
"FILTER_BY": "Filter by {{ category }}",
"CLEAR": "Clear",
"APPLY": "Apply"
"APPLY": "Apply",
"FILTERS" : {
"NAME" : {
"TITLE": "Name",
"PLACEHOLDER": "Enter the name"
},
"TYPE": {
"TITLE": "Check type",
"FOLDER": "Folder",
"DOCUMENT": "Document"
},
"SIZE": {
"TITLE" : "Content Size (range)",
"SMALL": "Small",
"MEDIUM": "Medium",
"LARGE": "Large",
"HUGE": "Huge"
},
"DATE" :{
"TITLE" : "Created Date (range)"
}
}
}
},
"PERMISSION": {

View File

@@ -15,7 +15,7 @@
<mat-menu #filter="matMenu" class="adf-filter-menu">
<div (click)="onMenuClick($event)" class="adf-filter-container">
<div class="adf-filter-title">{{ 'SEARCH.SEARCH_HEADER.TITLE' | translate }}</div>
<div class="adf-filter-title">{{ category?.name | translate }}</div>
<adf-search-widget-container
(keydown.enter)="onApply()"
[id]="category?.id"

View File

@@ -1,7 +1,7 @@
<mat-form-field>
<input
matInput
[placeholder]="settings?.placeholder"
placeholder="{{ settings?.placeholder | translate }}"
[(ngModel)]="value"
(change)="onChangedHandler($event)">
<button mat-button *ngIf="value" matSuffix mat-icon-button (click)="reset()">