chore: update dependencies and fix zod/4 import path

This commit is contained in:
Kyle Mendell
2025-07-24 20:14:25 -05:00
parent c359b5be06
commit ffed465f09
2 changed files with 59 additions and 59 deletions

View File

@@ -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 });