From 2490529f59a531eeffe0d5b66986afca4416a5e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Mur=C3=A7a?= Date: Fri, 17 Apr 2026 11:05:36 -0300 Subject: [PATCH] feat: localize hero section --- src/lib/translations/en-US/hero.json | 5 +++++ src/lib/translations/index.js | 10 ++++++++++ src/lib/translations/pt-BR/hero.json | 5 +++++ 3 files changed, 20 insertions(+) create mode 100644 src/lib/translations/en-US/hero.json create mode 100644 src/lib/translations/pt-BR/hero.json diff --git a/src/lib/translations/en-US/hero.json b/src/lib/translations/en-US/hero.json new file mode 100644 index 0000000..71ed724 --- /dev/null +++ b/src/lib/translations/en-US/hero.json @@ -0,0 +1,5 @@ +{ + "title": "Preview your embroidery designs instantly — no software needed", + "description": "Fast, private & no signup required", + "cta": "Try Your Design" +} diff --git a/src/lib/translations/index.js b/src/lib/translations/index.js index c003c62..6f32815 100644 --- a/src/lib/translations/index.js +++ b/src/lib/translations/index.js @@ -127,6 +127,16 @@ const config = { routes: ['/viewer'], loader: async () => (await import('./pt-BR/viewer.json')).default, }, + { + locale: SUPPORTED_LOCALES.PT_BR, + key: 'hero', + loader: async () => (await import('./pt-BR/hero.json')).default, + }, + { + locale: SUPPORTED_LOCALES.EN_US, + key: 'hero', + loader: async () => (await import('./en-US/hero.json')).default, + }, ], }; diff --git a/src/lib/translations/pt-BR/hero.json b/src/lib/translations/pt-BR/hero.json new file mode 100644 index 0000000..28a1bbb --- /dev/null +++ b/src/lib/translations/pt-BR/hero.json @@ -0,0 +1,5 @@ +{ + "title": "Visualize bordados instantaneamente — sem software", + "description": "Rápido, privado & sem necessidade de cadastro.", + "cta": "Teste Agora" +}