feat: translate 'Action' to 'Tindakan' and update validation messages
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user