diff --git a/messages/en.json b/messages/en.json index 33888d7..431da0e 100644 --- a/messages/en.json +++ b/messages/en.json @@ -76,6 +76,16 @@ "peripherals": "PC peripherals", "miniPC": "Mini PC" }, + "searchParams": { + "popularity": "popularity", + "descending": "descending", + "ascending": "ascending", + "name": "name", + "cables": "cables", + "sensors": "sensors", + "peripherals": "peripherals", + "miniPC": "minipc" + }, "tooltips": { "viewShoppingCart": "View shopping cart" }, diff --git a/messages/no.json b/messages/no.json index 7e18ade..f292ea6 100644 --- a/messages/no.json +++ b/messages/no.json @@ -76,6 +76,16 @@ "peripherals": "PC-tilbehør", "miniPC": "Mini-PC" }, + "searchParams": { + "popularity": "popularitet", + "descending": "synkende", + "ascending": "stigende", + "name": "navn", + "cables": "kabler", + "sensors": "sensorer", + "peripherals": "tilbehoer", + "miniPC": "minipc" + }, "tooltips": { "viewShoppingCart": "Vis handlekurv" }, diff --git a/src/app/[locale]/(default)/storage/page.tsx b/src/app/[locale]/(default)/storage/page.tsx index 13ffad6..cea4230 100644 --- a/src/app/[locale]/(default)/storage/page.tsx +++ b/src/app/[locale]/(default)/storage/page.tsx @@ -54,28 +54,28 @@ export default function StoragePage({ // TODO: Implement filters and category selection const categories = [ { - value: 'cables', label: t('combobox.cables'), + value: t('searchParams.cables'), }, { - value: 'sensors', label: t('combobox.sensors'), + value: t('searchParams.sensors'), }, { - value: 'peripherals', label: t('combobox.peripherals'), + value: t('searchParams.peripherals'), }, { - value: 'miniPC', label: t('combobox.miniPC'), + value: t('searchParams.miniPC'), }, ]; const filters = [ - { name: t('select.popularity'), urlName: 'popularity' }, - { name: t('select.sortDescending'), urlName: 'descending' }, - { name: t('select.sortAscending'), urlName: 'ascending' }, - { name: t('select.name'), urlName: 'name' }, + { name: t('select.popularity'), urlName: t('searchParams.popularity') }, + { name: t('select.sortDescending'), urlName: t('searchParams.descending') }, + { name: t('select.sortAscending'), urlName: t('searchParams.ascending') }, + { name: t('select.name'), urlName: t('searchParams.name') }, ]; return (