From 7ab6a64e0638ec2d5aaf793f1ce159ac0d347380 Mon Sep 17 00:00:00 2001
From: zealves99 <126712236+zealves99@users.noreply.github.com>
Date: Fri, 30 May 2025 15:23:08 +0100
Subject: [PATCH] feat: landing page translations
Added translations to the app's landing page
---
frontend/vizzy/app/landing/page.tsx | 61 +++++++++++++----------------
frontend/vizzy/messages/en.json | 37 +++++++++++++++++
frontend/vizzy/messages/pt.json | 37 +++++++++++++++++
3 files changed, 101 insertions(+), 34 deletions(-)
diff --git a/frontend/vizzy/app/landing/page.tsx b/frontend/vizzy/app/landing/page.tsx
index 2f56ad01..fba97f55 100644
--- a/frontend/vizzy/app/landing/page.tsx
+++ b/frontend/vizzy/app/landing/page.tsx
@@ -14,8 +14,10 @@ import {
Leaf,
} from 'lucide-react';
import Link from 'next/link';
+import { useTranslations } from 'next-intl';
export default function Home() {
+ const t = useTranslations('landingPage');
return (
@@ -28,8 +30,7 @@ export default function Home() {
Vizzy.
- Partilha inteligente entre vizinhos — compra, vende, troca ou
- aluga com facilidade.
+ {t('description')}
@@ -38,7 +39,7 @@ export default function Home() {
className="px-8 py-6 text-lg bg-black hover:bg-black/90 text-white cursor-pointer"
>
- Explora a Plataforma
+ {t('exploreButton')}
@@ -56,10 +57,10 @@ export default function Home() {
- Funcionalidades
+ {t('functionalities.title')}
- Descobre como a Vizzy pode transformar a tua comunidade
+ {t('functionalities.description')}
@@ -67,61 +68,53 @@ export default function Home() {
- Compra e Venda
+ {t('functionalities.buyAndSale.title')}
- Transações seguras entre vizinhos
+ {t('functionalities.buyAndSale.description')}
-
- Compra e vende artigos localmente com segurança e
- facilidade, fortalecendo a economia da tua comunidade.
-
+
{t('functionalities.buyAndSale.text')}
- Troca de Itens
+ {t('functionalities.itemSwap.title')}
- Dá nova vida ao que já não usas
+ {t('functionalities.itemSwap.description')}
-
- Troca objetos que já não utilizas por outros que precisas,
- reduzindo o desperdício e poupando dinheiro.
-
+
{t('functionalities.itemSwap.text')}
- Aluguer Local
+
+ {t('functionalities.localRenting.title')}
+
- Poupança e praticidade para ferramentas e mais
+ {t('functionalities.localRenting.description')}
-
- Aluga ferramentas, equipamentos e outros itens dos teus
- vizinhos, economizando espaço e recursos.
-
- Contribui para um futuro mais sustentável através da
- partilha de recursos e redução do consumo excessivo.
-
+
{t('functionalities.sustainability.text')}
@@ -134,10 +127,10 @@ export default function Home() {
- Vê a Vizzy em Ação
+ {t('functionalities.demo.title')}
- Descobre como é fácil utilizar a nossa plataforma
+ {t('functionalities.demo.description')}
@@ -162,10 +155,10 @@ export default function Home() {
- Pronto para te juntares à comunidade?
+ {t('bottomBanner.title')}
- Começa hoje a partilhar recursos com os teus vizinhos.
+ {t('bottomBanner.description')}
@@ -174,7 +167,7 @@ export default function Home() {
className="w-full bg-black text-white hover:bg-grey/90 cursor-pointer"
size="lg"
>
- Explora a Plataforma
+ {t('bottomBanner.buttonText')}
diff --git a/frontend/vizzy/messages/en.json b/frontend/vizzy/messages/en.json
index 62236fbf..0d5ccd94 100644
--- a/frontend/vizzy/messages/en.json
+++ b/frontend/vizzy/messages/en.json
@@ -738,5 +738,42 @@
"swapInterestPlaceholder": "Insert the item you want to swap",
"swapDescriptionDescription": "Describe what you are looking to receive in return."
}
+ },
+ "landingPage": {
+ "description": "Smart Sharing between neighbours - buy, sell, swap and rent items easily.",
+ "exploreButton": "Explore the Platform",
+ "functionalities": {
+ "title": "Functionalities",
+ "description": "Find out how Vizzy may transform your community",
+ "buyAndSale": {
+ "title": "Buying and Selling",
+ "description": "Transactions between neighbours.",
+ "text": "Buy and Sell items locally, safely and easily! Create bonds and strengthen your community's economy."
+ },
+ "itemSwap": {
+ "title": "Swapping Items",
+ "description": "Give your unused products a new life!",
+ "text": "Swap objects that you don't use anymore for others that you need, reducing waste and saving money."
+ },
+ "localRenting": {
+ "title": "Local Renting",
+ "description": "Saving and Praticality for tools and much more.",
+ "text": "Rent Tools, Equipments and much more to/from neighbours, saving money and resources."
+ },
+ "sustainability": {
+ "title": "Sustainability",
+ "description": "Promote conscient spending.",
+ "text": "Contribute to a more sustainable future by sharing resources and reducing excessive consumption."
+ },
+ "demo": {
+ "title": "Watch Vizzy in Action",
+ "description": "Find out how easy it is to use our platform."
+ }
+ },
+ "bottomBanner": {
+ "title": "Are you ready to join the community?",
+ "description": "Start today sharing resources with your neighbours!",
+ "buttonText": "Explore the platform"
+ }
}
}
diff --git a/frontend/vizzy/messages/pt.json b/frontend/vizzy/messages/pt.json
index 69e9bcd4..367cac31 100644
--- a/frontend/vizzy/messages/pt.json
+++ b/frontend/vizzy/messages/pt.json
@@ -740,5 +740,42 @@
"swapInterestPlaceholder": "Insere o item que queres em troca.",
"swapDescriptionDescription": "Descreve o que estás a procurar receber em troca."
}
+ },
+ "landingPage": {
+ "description": "Partilha inteligente entre vizinhos — compra, vende, troca ou aluga com facilidade.",
+ "exploreButton": "Explora a Plataforma",
+ "functionalities": {
+ "title": "Funcionalidades",
+ "description": "Descobre como a Vizzy pode transformar a tua comunidade.",
+ "buyAndSale": {
+ "title": "Compra e Venda",
+ "description": "Transações seguras entre vizinhos.",
+ "text": "Compra e vende artigos localmente com segurança e facilidade, fortalecendo a economia da tua comunidade."
+ },
+ "itemSwap": {
+ "title": "Troca de Itens",
+ "description": "Dá nova vida ao que já não usas.",
+ "text": "Troca objetos que já não utilizas por outros que precisas, reduzindo o desperdício e poupando dinheiro."
+ },
+ "localRenting": {
+ "title": "Aluguer Local",
+ "description": "Poupança e praticidade para ferramentas e muito mais.",
+ "text": "Aluga ferramentas, equipamentos e muito mais de vizinhos, poupando dinheiro e recursos."
+ },
+ "sustainability": {
+ "title": "Sustentabilidade",
+ "description": "Promove o consumo consciente.",
+ "text": "Contribui para um futuro mais sustentável através da partilha de recursos e redução do consumo excessivo."
+ },
+ "demo": {
+ "title": "Vê a Vizzy em Ação",
+ "description": "Descobre como é fácil utilizar a nossa plataforma."
+ }
+ },
+ "bottomBanner": {
+ "title": "Pronto para te juntares à comunidade?",
+ "description": "Começa hoje a partilhar recursos com os teus vizinhos!",
+ "buttonText": "Explora a Plataforma"
+ }
}
}