1
0
mirror of https://github.com/pocket-id/pocket-id.git synced 2026-02-13 00:15:14 +00:00

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

@@ -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(