feat: localize hero section
This commit is contained in:
parent
9b454e0b34
commit
2490529f59
3 changed files with 20 additions and 0 deletions
5
src/lib/translations/en-US/hero.json
Normal file
5
src/lib/translations/en-US/hero.json
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"title": "Preview your embroidery designs instantly — no software needed",
|
||||||
|
"description": "Fast, private & no signup required",
|
||||||
|
"cta": "Try Your Design"
|
||||||
|
}
|
||||||
|
|
@ -127,6 +127,16 @@ const config = {
|
||||||
routes: ['/viewer'],
|
routes: ['/viewer'],
|
||||||
loader: async () => (await import('./pt-BR/viewer.json')).default,
|
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,
|
||||||
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
5
src/lib/translations/pt-BR/hero.json
Normal file
5
src/lib/translations/pt-BR/hero.json
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"title": "Visualize bordados instantaneamente — sem software",
|
||||||
|
"description": "Rápido, privado & sem necessidade de cadastro.",
|
||||||
|
"cta": "Teste Agora"
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue