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,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;
|
||||
|
||||
Reference in New Issue
Block a user