Change i18n package to paraglideJs

also refactor auth provider
This commit is contained in:
2026-01-07 22:26:48 +07:00
parent 391acd282b
commit d49c37848f
47 changed files with 887 additions and 1060 deletions

View File

@@ -1,10 +1,10 @@
import i18n from '@/lib/i18n';
import { m } from '@/paraglide/messages';
import z from 'zod';
export const profileUpdateSchema = z.object({
name: z.string().nonempty(
i18n.t('profile.messages.is_required', {
field: i18n.t('profile.form.name'),
m.common_is_required({
field: m.profile_form_name('profile.form.name'),
}),
),
image: z.instanceof(File).optional(),