From aa554907d443c70e9773272572d4d257e33d37ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa?= Date: Wed, 30 Jul 2025 08:04:58 +0200 Subject: [PATCH] =?UTF-8?q?integraci=C3=B3n=20dinamica=20componentes=20y?= =?UTF-8?q?=20json=20con=20idioma?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/HeroHome.vue | 21 +++++++++++++ data/cat/index.json | 13 +++++--- data/es/index.json | 13 +++++--- pages/[langcode]/index.vue | 61 +++++++++++++++++++++----------------- 4 files changed, 72 insertions(+), 36 deletions(-) create mode 100644 components/HeroHome.vue diff --git a/components/HeroHome.vue b/components/HeroHome.vue new file mode 100644 index 0000000..12cd1e4 --- /dev/null +++ b/components/HeroHome.vue @@ -0,0 +1,21 @@ + + + \ No newline at end of file diff --git a/data/cat/index.json b/data/cat/index.json index a9e6bf2..ad7efd4 100644 --- a/data/cat/index.json +++ b/data/cat/index.json @@ -1,4 +1,9 @@ -{ - "title": "Benvingut", - "body": "Aquest és el contingut en català." -} \ No newline at end of file +[ + { + "component": "HeroHome", + "props": { + "title": "Benvingut al Kit", + "subtitle": "Tot per a l'economia social" + } + } +] \ No newline at end of file diff --git a/data/es/index.json b/data/es/index.json index f4a5c28..a452f79 100644 --- a/data/es/index.json +++ b/data/es/index.json @@ -1,4 +1,9 @@ -{ - "title": "Bienvenido", - "body": "Este es el contenido en español." -} +[ + { + "component": "HeroHome", + "props": { + "title": "Bienvenido al Kit", + "subtitle": "Todo para la economía social" + } + } +] diff --git a/pages/[langcode]/index.vue b/pages/[langcode]/index.vue index 38fcc92..f215b4c 100644 --- a/pages/[langcode]/index.vue +++ b/pages/[langcode]/index.vue @@ -1,24 +1,29 @@ - - \ No newline at end of file + \ No newline at end of file