Skip to content

Commit

Permalink
Add translations
Browse files Browse the repository at this point in the history
  • Loading branch information
RunarVestmann committed Jun 18, 2024
1 parent 104bae9 commit a85baf9
Showing 1 changed file with 31 additions and 7 deletions.
38 changes: 31 additions & 7 deletions apps/web/components/GenericList/GenericList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,20 +293,44 @@ export const GenericList = ({
{isMobile && filterInputComponent}
<Filter
resultCount={totalItems}
labelClear={'Hreinsa síu'}
labelClearAll={'Hreinsa allar síur'}
labelOpen={'Opna síu'}
labelClose={'Loka síu'}
labelResult={'Skoða niðurstöður'}
labelTitle={'Sía niðurstöður'}
labelClear={
activeLocale === 'is' ? 'Hreinsa síu' : 'Clear filter'
}
labelClearAll={
activeLocale === 'is'
? 'Hreinsa allar síur'
: 'Clear all filters'
}
labelOpen={
activeLocale === 'is'
? 'Sía niðurstöður'
: 'Filter results'
}
labelClose={
activeLocale === 'is' ? 'Loka síu' : 'Close filter menu'
}
labelResult={
activeLocale === 'is'
? 'Skoða niðurstöður'
: 'See results'
}
labelTitle={
activeLocale === 'is'
? 'Sía niðurstöður'
: 'Filter results'
}
variant={isMobile ? 'dialog' : 'popover'}
onFilterClear={() => {
setParameters(null)
}}
filterInput={filterInputComponent}
>
<FilterMultiChoice
labelClear={'Hreinsa val'}
labelClear={
activeLocale === 'is'
? 'Hreinsa val'
: 'Clear selection'
}
onChange={({ categoryId, selected }) => {
setParameters((prevParameters) => {
// Make sure we clear out the query params from the url when there is nothing selected
Expand Down

0 comments on commit a85baf9

Please sign in to comment.