Change i18n package to paraglideJs
also refactor auth provider
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user