diff --git a/app/[locale]/(public)/audio/detail/[slug]/page.tsx b/app/[locale]/(public)/audio/detail/[slug]/page.tsx index 9e2a89f8..826cc7dc 100644 --- a/app/[locale]/(public)/audio/detail/[slug]/page.tsx +++ b/app/[locale]/(public)/audio/detail/[slug]/page.tsx @@ -20,6 +20,7 @@ import Swal from "sweetalert2"; import { checkMaliciousText, getPublicLocaleTimestamp } from "@/utils/globals"; import parse from "html-react-parser"; import $ from "jquery"; +import { useTranslations } from "next-intl"; const formWaveSurferOptions = (ref: any) => ({ container: ref, @@ -66,6 +67,8 @@ const DetailAudio = () => { const [listSuggestion, setListSuggestion] = useState(); const MySwal = withReactContent(Swal); const [visibleInput, setVisibleInput] = useState(null); + const t = useTranslations("LandingPage"); + let typeString = "audio"; useEffect(() => { @@ -250,11 +253,8 @@ const DetailAudio = () => { }; const sizes = [ - { label: "XL", value: "3198 x 1798 px" }, - { label: "L", value: "2399 x 1349 px" }, - { label: "M", value: "1599 x 899 px" }, - { label: "S", value: "1066 x 599 px" }, - { label: "XS", value: "800 x 450 px" }, + { label: "MP3", value: "... MB" }, + { label: "WAV", value: "... MB" }, ]; const handleShare = (type: any, url: any) => { @@ -592,16 +592,20 @@ const DetailAudio = () => {

- oleh {detailDataAudio?.uploadedBy?.userLevel?.name} + {t("by")} {detailDataAudio?.uploadedBy?.userLevel?.name} +

+

+  | {t("updatedOn")} {detailDataAudio?.updatedAt} WIB  | 

-

 | Diupdate pada {detailDataAudio?.updatedAt} WIB  | 

  {detailDataAudio?.clickCount}  

-

Kreator: {detailDataAudio?.creatorName}

+

+ {t("creator")} {detailDataAudio?.creatorName} +

{/* Keterangan */} @@ -616,12 +620,12 @@ const DetailAudio = () => { {isSaved ? ( handleDeleteWishlist()} className="flex flex-col mb-3 items-center justify-center cursor-pointer"> -

Hapus

+

{t("delete")}

) : ( doBookmark()} className="flex flex-col mb-3 items-center justify-center cursor-pointer"> -

Simpan

+

{t("save")}

)} @@ -643,7 +647,7 @@ const DetailAudio = () => {
{/* Opsi Ukuran Foto */} -

Opsi Ukuran Audio

+

{t("audioSize")}

@@ -665,7 +669,7 @@ const DetailAudio = () => {
@@ -674,12 +678,12 @@ const DetailAudio = () => { - Download + {t("download")} {/* Tombol Bagikan */}
-

Bagikan

+

{t("share")}

handleShare("fb", `https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fmediahub.polri.go.id%2F${typeString}%2Fdetail%2F${content?.id}"e=${content?.title}`)}> @@ -697,13 +701,13 @@ const DetailAudio = () => {
-

Share Ke Email

+

{t("shareTo")}

-

Email Tujuan :

- setEmailShareInput(event.target.value)} onKeyPress={handleEmailList} type="email" placeholder="Tekan Enter untuk input Email" /> +

{t("destinationEmail")}

+ setEmailShareInput(event.target.value)} onKeyPress={handleEmailList} type="email" placeholder={t("pressEnter")} />
@@ -717,10 +721,10 @@ const DetailAudio = () => { {/* Comment */}
-

Berikan Komentar

+

{t("comment")}