Completa le traduzioni EN/TH e corregge sezioni home ancora solo in italiano.
Stats e prodotti non usavano il locale, quindi dopo lo switch lingua lo scroll mostrava ancora l'italiano. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@ -1,22 +1,37 @@
|
||||
---
|
||||
import SubpageLayout from '../layouts/SubpageLayout.astro';
|
||||
import type { SupportedLocale } from '../data/home/navigation';
|
||||
import { getDoveSiamo } from '../data/dove-siamo';
|
||||
|
||||
const path = Astro.url.pathname;
|
||||
const localeMatch = path.match(/^\/(en|th)(\/|$)/);
|
||||
const currentLocale = (localeMatch?.[1] ?? 'it') as SupportedLocale;
|
||||
const doveSiamo = getDoveSiamo(currentLocale);
|
||||
const { page, sections } = doveSiamo;
|
||||
---
|
||||
|
||||
<SubpageLayout
|
||||
title="Dove siamo — NexStudio"
|
||||
description="Sede operativa a Bangkok, Thailandia; fusi orari e lingue per lavorare con clienti in Europa e altre regioni."
|
||||
heading="Dove siamo"
|
||||
lead="NexStudio ha base a Bangkok, in Thailandia. Sotto, come organizziamo fusi orari e lingue rispetto a clienti in Europa e oltre."
|
||||
title={page.title}
|
||||
description={page.description}
|
||||
heading={page.heading}
|
||||
lead={page.lead}
|
||||
>
|
||||
<h2>Sede</h2>
|
||||
<p>
|
||||
<strong>Thailandia</strong> — <strong>Bangkok</strong>
|
||||
</p>
|
||||
|
||||
<h2>Fusi orari e lingue</h2>
|
||||
<p>
|
||||
Il sito e il supporto via web possono essere gestiti in italiano, inglese,
|
||||
tedesco, francese, spagnolo e tailandese, con orari da concordare in base
|
||||
al team e al fuso rispetto ai clienti in Europa e altre regioni.
|
||||
</p>
|
||||
{
|
||||
sections.map((s) => (
|
||||
<>
|
||||
<h2>{s.title}</h2>
|
||||
{s.paragraphs.map((p) =>
|
||||
s.locationLine ? (
|
||||
<p>
|
||||
<strong>{p.split(' — ')[0]}</strong>
|
||||
{' — '}
|
||||
<strong>{p.split(' — ')[1]}</strong>
|
||||
</p>
|
||||
) : (
|
||||
<p>{p}</p>
|
||||
),
|
||||
)}
|
||||
</>
|
||||
))
|
||||
}
|
||||
</SubpageLayout>
|
||||
|
||||
Reference in New Issue
Block a user