mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-24 17:25:07 +03:00
chore: update dependencies and fix zod/4 import path
This commit is contained in:
@@ -2,7 +2,7 @@ import { setLocale as setParaglideLocale, type Locale } from '$lib/paraglide/run
|
||||
import { z } from 'zod/v4';
|
||||
|
||||
export function setLocale(locale: Locale, reload = true) {
|
||||
import(`../../../node_modules/zod/dist/esm/v4/locales/${locale}.js`)
|
||||
import(`../../../node_modules/zod/v4/locales/${locale}.js`)
|
||||
.then((zodLocale) => z.config(zodLocale.default()))
|
||||
.finally(() => {
|
||||
setParaglideLocale(locale, { reload });
|
||||
|
||||
Reference in New Issue
Block a user