diff --git a/app/[locale]/(public)/image/detail/[slug]/page.tsx b/app/[locale]/(public)/image/detail/[slug]/page.tsx index 9f6e3ffd..afbc9f97 100644 --- a/app/[locale]/(public)/image/detail/[slug]/page.tsx +++ b/app/[locale]/(public)/image/detail/[slug]/page.tsx @@ -19,6 +19,7 @@ import withReactContent from "sweetalert2-react-content"; import Swal from "sweetalert2"; import parse from "html-react-parser"; import { Skeleton } from "@/components/ui/skeleton"; +import { useTranslations } from "next-intl"; const DetailInfo = () => { const MySwal = withReactContent(Swal); @@ -52,6 +53,7 @@ const DetailInfo = () => { const [isLoading, setIsLoading] = useState(true); const [visibleInput, setVisibleInput] = useState(null); let typeString = "image"; + const t = useTranslations("LandingPage"); useEffect(() => { const timer = setTimeout(() => { @@ -468,16 +470,22 @@ const DetailInfo = () => {

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

+

+  | {t("updateOn")} + {detailDataImage?.updatedAt} WIB  | 

-

 | Diupdate pada {detailDataImage?.updatedAt} WIB  | 

  {detailDataImage?.clickCount}  

-

Kreator: {detailDataImage?.creatorName}

+

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

@@ -493,12 +501,12 @@ const DetailInfo = () => { {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")}

)} @@ -520,7 +528,7 @@ const DetailInfo = () => {
{/* Opsi Ukuran Foto */} -

Opsi Ukuran Foto

+

{t("imageSize")}

@@ -541,7 +549,7 @@ const DetailInfo = () => {
@@ -550,12 +558,12 @@ const DetailInfo = () => { - 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}`)}> @@ -573,13 +581,13 @@ const DetailInfo = () => {
-

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")} />
@@ -593,10 +601,10 @@ const DetailInfo = () => { {/* Comment */}
-

Berikan Komentar

-