implement i18n with town filter

This commit is contained in:
padreug 2025-02-03 00:17:35 +01:00
parent 79fd370c8d
commit cf32f8ec8b
3 changed files with 9 additions and 3 deletions

View file

@ -30,15 +30,15 @@ const categories = computed(() => [
{ id: 'other', label: t('directory.categories.other') }
])
const towns = [
{ id: 'all', label: 'All' },
const towns = computed(() => [
{ id: 'all', label: t('directory.towns.all') },
{ id: 'San Marcos', label: 'San Marcos' },
{ id: 'Tzununa', label: 'Tzununa' },
{ id: 'San Pablo', label: 'San Pablo' },
{ id: 'San Pedro', label: 'San Pedro' },
{ id: 'Panajachel', label: 'Panajachel' },
{ id: 'Jaibalito', label: 'Jaibalito' }
]
])
</script>
<template>

View file

@ -25,6 +25,9 @@ export default {
lancha: 'Lanchas',
other: 'Other'
},
towns: {
all: 'All',
},
contact: 'Contact',
location: 'Location',
viewMap: 'View on Map',

View file

@ -25,6 +25,9 @@ export default {
lancha: 'Lanchas',
other: 'Otros'
},
towns: {
all: 'Todos',
},
contact: 'Contacto',
location: 'Ubicación',
viewMap: 'Ver en Mapa',