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:
Javaxman
2026-07-29 23:53:46 +02:00
parent 3b52e5815c
commit 04a1892c0d
26 changed files with 6172 additions and 1830 deletions

View File

@ -1,6 +1,11 @@
---
import { chat } from '../data/home';
import { getChat } from '../data/home';
import type { SupportedLocale } from '../data/home/navigation';
const path = Astro.url.pathname;
const localeMatch = path.match(/^\/(en|th)(\/|$)/);
const currentLocale = (localeMatch?.[1] ?? 'it') as SupportedLocale;
const chat = getChat(currentLocale);
const pc = chat.prechat;
const hasFormspree =
typeof pc.actionUrl === 'string' && pc.actionUrl.length > 0;