Skip to content

Commit

Permalink
Fix plural in translation of 'Showing XY results' message
Browse files Browse the repository at this point in the history
  • Loading branch information
Ty-ci committed Jan 5, 2024
1 parent 3d8b2b1 commit 5e5193f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions next/components/pages/searchPageContentNew.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,12 @@ const SearchPageContentNew = () => {
</TagList>
</TagGroup>
</div>
{/* TODO: also show summed number of all results */}
{resultsCount.get(selectedKey) > 0 ? (
<p>Zobrazujeme {resultsCount.get(selectedKey)} výsledkov</p>
<p>{t('SearchPage.showingResults', { count: resultsCount.get(selectedKey) })}</p>
) : null}
{/* FIXME: DEBUG ↓ */}
{false && (
{true && (
<div className="rounded-full bg-social-500 px-5 py-2">
<Typography fontWeight="semibold" type="p">
RESULTS {[...resultsCount]}
Expand Down
2 changes: 1 addition & 1 deletion next/messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@
"SearchPage": {
"whatAreYouLookingFor": "What are you looking for?",
"searchOptions": "Search options",
"showingResults": "Showing {resultsCount} results",
"showingResults": "Showing {count} {count, plural, zero {results} one {result} other {results}}",
"allResults": "All results",
"moreResults": "More results",
"noResults": "No results found",
Expand Down
2 changes: 1 addition & 1 deletion next/messages/sk.json
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@
"SearchPage": {
"whatAreYouLookingFor": "Čo hľadáte?",
"searchOptions": "Možnosti vyhľadávania",
"showingResults": "Zobrazujeme {resultsCount} výsledkov",
"showingResults": "Zobrazujeme {count} {count, plural, zero {vysledkov} one {výsledok} few {výsledky} other {výsledkov}}",
"allResults": "Všetky výsledky",
"moreResults": "Viac výsledkov",
"noResults": "Žiadne výsledky",
Expand Down

0 comments on commit 5e5193f

Please sign in to comment.