From 705372b7c6229b2da5ec68e6718a5de11f79bf04 Mon Sep 17 00:00:00 2001 From: Julio Ruiz Date: Tue, 12 May 2026 14:36:12 -0500 Subject: [PATCH] Fixed some translations Fixed main menu reactivity for translations --- app/components/inbox/InboxList.vue | 7 +- app/layouts/default.vue | 91 +++++----- app/pages/actividades.vue | 6 +- lang/en.json | 233 +----------------------- lang/es.json | 276 +---------------------------- lang/fr.json | 235 +----------------------- lang/pt.json | 224 +---------------------- 7 files changed, 75 insertions(+), 997 deletions(-) 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[] +}) +