Avvia i18n reale home IT EN TH e corregge rendering locale #8

Merged
javaxman merged 4 commits from feat/issue-5-i18n-home-menu-footer into main 2026-04-27 10:20:29 +02:00
18 changed files with 1200 additions and 412 deletions
Showing only changes of commit 01e3815820 - Show all commits

View File

@ -17,7 +17,6 @@ import {
getCta, getCta,
} from '../data/home'; } from '../data/home';
const infrastructureCarouselItems = stackSection.infrastructureCarousel.items;
const path = Astro.url.pathname; const path = Astro.url.pathname;
const localeMatch = path.match(/^\/(en|th)(\/|$)/); const localeMatch = path.match(/^\/(en|th)(\/|$)/);
const currentLocale = (localeMatch?.[1] ?? 'it') as 'it' | 'en' | 'th'; const currentLocale = (localeMatch?.[1] ?? 'it') as 'it' | 'en' | 'th';
@ -28,6 +27,7 @@ const services = getServices(currentLocale);
const stackSection = getStackSection(currentLocale); const stackSection = getStackSection(currentLocale);
const faq = getFaq(currentLocale); const faq = getFaq(currentLocale);
const cta = getCta(currentLocale); const cta = getCta(currentLocale);
const infrastructureCarouselItems = stackSection.infrastructureCarousel.items;
const pageLabels = { const pageLabels = {
it: { focus: 'Focus' }, it: { focus: 'Focus' },
en: { focus: 'Focus' }, en: { focus: 'Focus' },