Impedisce l'auto-traduzione del browser e fissa il locale TH/EN esplicito.
Chrome traduceva il tailandese in inglese allo scroll; html translate=no e prop locale sulle route. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@ -20,11 +20,12 @@ const canonicalUrl = Astro.url.toString();
|
||||
---
|
||||
|
||||
<!doctype html>
|
||||
<html lang={htmlLang} class="bg-nx-bg">
|
||||
<html lang={htmlLang} class="bg-nx-bg" translate="no">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta name="description" content={description} />
|
||||
<meta name="google" content="notranslate" />
|
||||
<link rel="canonical" href={canonicalUrl} />
|
||||
<meta name="theme-color" content="#030712" />
|
||||
<meta property="og:type" content="website" />
|
||||
@ -46,7 +47,7 @@ const canonicalUrl = Astro.url.toString();
|
||||
rel="stylesheet"
|
||||
/>
|
||||
</head>
|
||||
<body class="min-h-screen">
|
||||
<body class="notranslate min-h-screen">
|
||||
<slot />
|
||||
<CookieConsent />
|
||||
<ChatGateModal />
|
||||
|
||||
Reference in New Issue
Block a user