feat: translate 'Action' to 'Tindakan' and update validation messages

This commit is contained in:
Ardeman
2025-03-25 09:37:03 +08:00
parent 57e23adf3c
commit dce745f53d
15 changed files with 46 additions and 46 deletions
+5 -5
View File
@@ -15,16 +15,16 @@ import { dateInput } from '~/utils/formatter'
export const adsSchema = z.object({
id: z.string().optional(),
image: z.string().url({
message: 'Gambar must be a valid URL',
message: 'URL tidak valid',
}),
url: z.string().url({
message: 'URL must be valid',
message: 'URL tidak valid',
}),
start_date: z.string().min(1, {
message: 'Tanggal mulai is required',
message: 'Pilih tanggal',
}),
end_date: z.string().min(1, {
message: 'Tanggal berakhir is required',
message: 'Pilih tanggal',
}),
})
export type TAdsSchema = z.infer<typeof adsSchema>
@@ -101,7 +101,7 @@ export const FormAdvertisementsPage = (properties: TProperties) => {
size="lg"
className="text-md h-[42px] rounded-md"
>
Save
Simpan
</Button>
</div>
<div className="flex items-end justify-between gap-4">