diff --git a/app/components/inbox/InboxList.vue b/app/components/inbox/InboxList.vue index 031c819..3d2671e 100755 --- a/app/components/inbox/InboxList.vue +++ b/app/components/inbox/InboxList.vue @@ -3,6 +3,9 @@ import { useIntersectionObserver } from '@vueuse/core' import type { SearchHit } from '~/types' import { useFavoritesStore } from '~/stores/favorites' +const { $i18n } = useNuxtApp(); +const t = $i18n.t; + const props = defineProps<{ activities: SearchHit[] query?: string @@ -659,7 +662,7 @@ useIntersectionObserver( class="flex items-center justify-center gap-2 py-16 text-sm text-muted" > - Buscando... + {{ t('search.searching') }}
-

{{ query ? `Sin coincidencias para "${query}"` : 'No hay actividades' }}

+

{{ query ? `${t('search.no_results_for')} "${query}"` : t('search.no_results') }}

{ open.value = false } -}, { - label: t("nav.conferences"), - icon: 'ph:books', - to: '/conferencias', - onSelect: () => { open.value = false } -}, { - label: 'Sermones', - icon: 'ph:books', - to: '/sermones', - onSelect: () => { open.value = false } -}, { - label: 'Entrelineas', - icon: 'ph:list-magnifying-glass', - to: '/entrelineas', - onSelect: () => { open.value = false } -}, { - label: 'Imprenta', - icon: 'ph:printer', - to: '/imprenta', - onSelect: () => { open.value = false } -}, { - label: 'EBN', - icon: 'ph:chalkboard-teacher', - to: '/ebn', - onSelect: () => { open.value = false } -}, { - label: 'Mi lista', - icon: 'i-lucide-bookmark', - to: '/favoritos', - badge: favTotal.value > 0 ? String(favTotal.value) : undefined, - onSelect: () => { open.value = false } -}, { - label: 'Historial', - icon: 'i-lucide-history', - to: '/historial', - badge: histTotal.value > 0 ? String(histTotal.value) : undefined, - onSelect: () => { open.value = false } -}]] satisfies NavigationMenuItem[][] + +const links = computed(() => { + return [ + { + label: $i18n.t('nav.bible_studies'), + icon: 'ph:books', + to: '/actividades', + locale: locale.value, + onSelect: () => { open.value = false } + }, + { + label: t("nav.conferences"), + icon: 'ph:books', + to: '/conferencias', + onSelect: () => { open.value = false } + }, + { + label: t("nav.between_the_lines"), + icon: 'ph:list-magnifying-glass', + to: '/entrelineas', + onSelect: () => { open.value = false } + }, + { + label: t("nav.my_list"), + icon: 'i-lucide-bookmark', + to: '/favoritos', + badge: favTotal.value > 0 ? String(favTotal.value) : undefined, + onSelect: () => { open.value = false } + }, + { + label: t("nav.history"), + icon: 'i-lucide-history', + to: '/historial', + badge: histTotal.value > 0 ? String(histTotal.value) : undefined, + onSelect: () => { open.value = false } + } + ] satisfies NavigationMenuItem[] +}) +