Skip to content

Commit

Permalink
feat(ME): Add selected records count, add translations
Browse files Browse the repository at this point in the history
  • Loading branch information
Angi-Kinas committed Oct 26, 2023
1 parent bf6a937 commit 58a2727
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 9 deletions.
27 changes: 18 additions & 9 deletions libs/ui/search/src/lib/record-table/record-table.component.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
<div>
<div *ngIf="totalHits" class="">
<div
translate
class="my-8 ml-4 block text-gray-500"
[translateParams]="{
displayed: records.length,
hits: totalHits
}"
>
results.records.hits.displayedOn
<div class="flex">
<div
translate
class="my-8 ml-4 block text-gray-800"
[translateParams]="{
displayed: records.length,
hits: totalHits
}"
>
results.records.hits.displayedOn
</div>
<div
class="my-8 ml-6 block text-gray-400"
translate
[translateParams]="{ amount: selectedRecords.length }"
>
results.records.hits.selected
</div>
</div>

<div
Expand Down
1 change: 1 addition & 0 deletions translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@
"results.records.hits.displayedOn": "{displayed, plural, =0{Kein Datensatz.} one{1 Datensatz} other{{displayed} Datensätze }} {hits, plural, other{auf {hits} insgesamt angezeigt.}}",
"results.records.hits.empty.help.html": "Vorschläge: <ul class='list-disc list-inside'><li>Versuchen Sie andere Wörter</li><li>Geben Sie weniger Wörter ein</li></ul>",
"results.records.hits.found": "{hits, plural, =0{Keine Dokumente entsprechen der angegebenen Suche.} one{1 Datensatz gefunden.} other{{hits} Datensätze gefunden.}}",
"results.records.hits.selected": "",
"results.showMore": "Mehr Ergebnisse anzeigen...",
"results.sortBy.dateStamp": "Letzte Aktualisierungen",
"results.sortBy.popularity": "Beliebtheit",
Expand Down
1 change: 1 addition & 0 deletions translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@
"results.records.hits.displayedOn": "{displayed, plural, =0{No record.} one{1 record} other{{displayed} records }} {hits, plural, other{displayed on {hits} total.}}",
"results.records.hits.empty.help.html": "Suggestions: <ul class='list-disc list-inside'><li>Try other words</li><li>Specify fewer words</li></ul>",
"results.records.hits.found": "{hits, plural, =0{No documents match the specified search.} one{1 record found.} other{{hits} records found.}}",
"results.records.hits.selected": "{ amount } selected",
"results.showMore": "Show more results...",
"results.sortBy.dateStamp": "Most recent",
"results.sortBy.popularity": "Popularity",
Expand Down
1 change: 1 addition & 0 deletions translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@
"results.records.hits.displayedOn": "",
"results.records.hits.empty.help.html": "",
"results.records.hits.found": "",
"results.records.hits.selected": "",
"results.showMore": "",
"results.sortBy.dateStamp": "",
"results.sortBy.popularity": "",
Expand Down
1 change: 1 addition & 0 deletions translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@
"results.records.hits.displayedOn": "",
"results.records.hits.empty.help.html": "Suggestions : <ul class='list-disc list-inside'><li>Essayez d'autres mots clés</li><li>Cherchez moins de mots</li></ul>",
"results.records.hits.found": "{hits, plural, =0{Aucune correspondance.} one{1 enregistrement trouvé.} other{{hits} résultats.}}",
"results.records.hits.selected": "",
"results.showMore": "Plus de résultats...",
"results.sortBy.dateStamp": "Plus récent",
"results.sortBy.popularity": "Popularité",
Expand Down
1 change: 1 addition & 0 deletions translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@
"results.records.hits.displayedOn": "",
"results.records.hits.empty.help.html": "",
"results.records.hits.found": "",
"results.records.hits.selected": "",
"results.showMore": "",
"results.sortBy.dateStamp": "",
"results.sortBy.popularity": "",
Expand Down
1 change: 1 addition & 0 deletions translations/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@
"results.records.hits.displayedOn": "",
"results.records.hits.empty.help.html": "",
"results.records.hits.found": "",
"results.records.hits.selected": "",
"results.showMore": "",
"results.sortBy.dateStamp": "",
"results.sortBy.popularity": "",
Expand Down
1 change: 1 addition & 0 deletions translations/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@
"results.records.hits.displayedOn": "",
"results.records.hits.empty.help.html": "",
"results.records.hits.found": "",
"results.records.hits.selected": "",
"results.showMore": "",
"results.sortBy.dateStamp": "",
"results.sortBy.popularity": "",
Expand Down

0 comments on commit 58a2727

Please sign in to comment.