fix: replace %lang% placeholder in html lang (#1071)

Co-authored-by: Elias Schneider <login@eliasschneider.com>
This commit is contained in:
dai
2025-11-04 14:01:12 +01:00
committed by GitHub
parent ed2c7b2303
commit 7ec57437ac
3 changed files with 3 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
<!doctype html>
<html lang="%lang%">
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="/api/application-images/favicon" />

View File

@@ -9,6 +9,7 @@ import { z } from 'zod/v4';
export async function setLocale(locale: Locale, reload = true) {
await setLocaleForLibraries(locale);
setParaglideLocale(locale, { reload });
document.documentElement.lang = locale;
}
export async function setLocaleForLibraries(

View File

@@ -5,7 +5,7 @@
import { Toaster } from '$lib/components/ui/sonner';
import { m } from '$lib/paraglide/messages';
import { ModeWatcher } from 'mode-watcher';
import type { Snippet } from 'svelte';
import { type Snippet } from 'svelte';
import '../app.css';
import type { LayoutData } from './$types';