From 982aa9229489ebfa874cbab2b03cb2a00af9076b Mon Sep 17 00:00:00 2001 From: Anang Yusman Date: Thu, 27 Mar 2025 02:58:30 +0800 Subject: [PATCH] feat:update bahasa form,ui form --- components/form/content/audio-detail-form.tsx | 43 ++--- components/form/content/audio-form.tsx | 67 ++++--- components/form/content/audio-update-form.tsx | 50 +++--- components/form/content/image-detail-form.tsx | 105 +++++------ components/form/content/image-form.tsx | 78 ++++---- components/form/content/image-update-form.tsx | 55 +++--- components/form/content/spit-convert-form.tsx | 54 +++--- components/form/content/teks-detail-form.tsx | 167 +++++++++--------- components/form/content/teks-form.tsx | 70 ++++---- components/form/content/teks-update-form.tsx | 54 +++--- components/form/content/video-detail-form.tsx | 110 ++++++------ components/form/content/video-form.tsx | 69 ++++---- components/form/content/video-update-form.tsx | 58 +++--- components/form/planning/mediahub-publish.tsx | 28 +-- components/form/planning/medsos-publish.tsx | 26 +-- messages/en.json | 76 ++++++++ messages/in.json | 79 ++++++++- 17 files changed, 676 insertions(+), 513 deletions(-) diff --git a/components/form/content/audio-detail-form.tsx b/components/form/content/audio-detail-form.tsx index ebf74b2c..d78d7262 100644 --- a/components/form/content/audio-detail-form.tsx +++ b/components/form/content/audio-detail-form.tsx @@ -57,6 +57,7 @@ import { error } from "@/lib/swal"; import dynamic from "next/dynamic"; import WavesurferPlayer from "@wavesurfer/react"; import WaveSurfer from "wavesurfer.js"; +import { useTranslations } from "next-intl"; const imageSchema = z.object({ title: z.string().min(1, { message: "Judul diperlukan" }), @@ -135,6 +136,7 @@ export default function FormAudioDetail() { const [detailThumb, setDetailThumb] = useState([]); const [thumbsSwiper, setThumbsSwiper] = useState(null); + const t = useTranslations("Form"); const [selectedTarget, setSelectedTarget] = useState(""); const [files, setFiles] = useState([]); const [rejectedFiles, setRejectedFiles] = useState([]); @@ -452,11 +454,11 @@ export default function FormAudioDetail() {
-

Form Konten Audio

+

{t("form-audio")}

{/* Input Title */}
- +
-
- +
+ { @@ -758,7 +760,7 @@ export default function FormAudio() {
- +
- +
- +
- +