diff --git a/app/[locale]/(protected)/contributor/agenda-setting/calender-view.tsx b/app/[locale]/(protected)/contributor/agenda-setting/calender-view.tsx index 13d5db6a..0aa90031 100644 --- a/app/[locale]/(protected)/contributor/agenda-setting/calender-view.tsx +++ b/app/[locale]/(protected)/contributor/agenda-setting/calender-view.tsx @@ -254,7 +254,7 @@ const CalendarView = ({ categories }: CalendarViewProps) => { isPublish: item.isPublish, start: new Date(item.startDate), end: new Date(item.endDate), - allDay: true, // Sesuaikan jika memang ada event sepanjang hari + allDay: true, extendedProps: { calendar: item.agendaType, description: item.description, @@ -481,7 +481,7 @@ const CalendarView = ({ categories }: CalendarViewProps) => {
{events?.length === 0 ? (
-

Belum ada data

+

{t("no-data-yet")}

) : ( <> @@ -581,7 +581,7 @@ const CalendarView = ({ categories }: CalendarViewProps) => { className="dark:bg-background dark:text-foreground" > - {"Tambahkan Agenda baru"} + {t("addEvent")} ) : ( "" @@ -714,7 +714,6 @@ const CalendarView = ({ categories }: CalendarViewProps) => { ))}
- {/* Second Row */}
{months.slice(3, 6).map((month) => ( { ))}
- {/* Third Row */}
{months.slice(6, 9).map((month) => ( { ))}
- {/* Fourth Row */}
{months.slice(9, 12).map((month) => ( 0 && categories[0].value); + setAgendaType( + eventCalendar || (categories?.length > 0 && categories[0].value) + ); } setValue("title", event?.event?.title || ""); setValue("description", event?.event?.description || ""); diff --git a/app/[locale]/(protected)/contributor/blog/components/blog-table.tsx b/app/[locale]/(protected)/contributor/blog/components/blog-table.tsx index 66db6815..3f7cb507 100644 --- a/app/[locale]/(protected)/contributor/blog/components/blog-table.tsx +++ b/app/[locale]/(protected)/contributor/blog/components/blog-table.tsx @@ -170,8 +170,8 @@ const BlogTable = () => { return (
-
-
+
+
diff --git a/app/[locale]/(protected)/contributor/content/audio/components/table-audio.tsx b/app/[locale]/(protected)/contributor/content/audio/components/table-audio.tsx index e5e821d5..05e29ee8 100644 --- a/app/[locale]/(protected)/contributor/content/audio/components/table-audio.tsx +++ b/app/[locale]/(protected)/contributor/content/audio/components/table-audio.tsx @@ -230,8 +230,8 @@ const TableAudio = () => { return (
-
-
+
+
diff --git a/app/[locale]/(protected)/contributor/content/audio/page.tsx b/app/[locale]/(protected)/contributor/content/audio/page.tsx index 756b3272..5702e0e6 100644 --- a/app/[locale]/(protected)/contributor/content/audio/page.tsx +++ b/app/[locale]/(protected)/contributor/content/audio/page.tsx @@ -6,8 +6,10 @@ import { Button } from "@/components/ui/button"; import { Icon } from "@iconify/react/dist/iconify.js"; import TableAudio from "./components/table-audio"; import { Link } from "@/components/navigation"; +import { useTranslations } from "next-intl"; const ReactTableAudioPage = () => { + const t = useTranslations("AnalyticsDashboard"); return (
@@ -20,9 +22,11 @@ const ReactTableAudioPage = () => {

- 0 Rata - rata :0 + {t("average")} :0 +

+

+ {t("Hasil_unggah_disetujui_hari_ini")}

-

Hasil Unggah disetujui hari ini

@@ -31,9 +35,9 @@ const ReactTableAudioPage = () => {

- 0 Rata - rata :0 + {t("average")} :0

-

Hasil Unggah direvisi hari ini

+

{t("Hasil_unggah_direvisi_hari_ini")}

@@ -42,9 +46,9 @@ const ReactTableAudioPage = () => {

- 0 Rata - rata :0 + {t("average")} :0

-

Hasil Unggah ditolak hari ini

+

{t("Hasil_unggah_ditolak_hari_ini")}

@@ -54,13 +58,13 @@ const ReactTableAudioPage = () => {
- Konten Audio + {t("audio")}
{/* {/* diff --git a/app/[locale]/(protected)/contributor/content/spit/page.tsx b/app/[locale]/(protected)/contributor/content/spit/page.tsx index 0208103e..88742142 100644 --- a/app/[locale]/(protected)/contributor/content/spit/page.tsx +++ b/app/[locale]/(protected)/contributor/content/spit/page.tsx @@ -14,7 +14,7 @@ const ReactTableSPITPage = () => {
- Konten SPIT + SPIT
diff --git a/app/[locale]/(protected)/contributor/content/spit/table-spit/table-spit.tsx b/app/[locale]/(protected)/contributor/content/spit/table-spit/table-spit.tsx index 375e5ecb..01ed5e95 100644 --- a/app/[locale]/(protected)/contributor/content/spit/table-spit/table-spit.tsx +++ b/app/[locale]/(protected)/contributor/content/spit/table-spit/table-spit.tsx @@ -164,7 +164,7 @@ const TableSPIT = () => { return (
-
+
diff --git a/app/[locale]/(protected)/contributor/content/teks/components/table-teks.tsx b/app/[locale]/(protected)/contributor/content/teks/components/table-teks.tsx index e3301f9d..dd1924c5 100644 --- a/app/[locale]/(protected)/contributor/content/teks/components/table-teks.tsx +++ b/app/[locale]/(protected)/contributor/content/teks/components/table-teks.tsx @@ -229,8 +229,8 @@ const TableTeks = () => { return (
-
-
+
+
diff --git a/app/[locale]/(protected)/contributor/content/teks/page.tsx b/app/[locale]/(protected)/contributor/content/teks/page.tsx index 73bf6661..56bf11b5 100644 --- a/app/[locale]/(protected)/contributor/content/teks/page.tsx +++ b/app/[locale]/(protected)/contributor/content/teks/page.tsx @@ -7,8 +7,10 @@ import { Button } from "@/components/ui/button"; import { Icon } from "@iconify/react/dist/iconify.js"; import TableTeks from "./components/table-teks"; import { Link } from "@/components/navigation"; +import { useTranslations } from "next-intl"; const ReactTableTeksPage = () => { + const t = useTranslations("AnalyticsDashboard"); return (
@@ -21,9 +23,12 @@ const ReactTableTeksPage = () => {

- 0 Rata - rata :0 + {t("average")} :0 +

+

+ {" "} + {t("Hasil_unggah_disetujui_hari_ini")}

-

Hasil Unggah disetujui hari ini

@@ -32,9 +37,9 @@ const ReactTableTeksPage = () => {

- 0 Rata - rata :0 + {t("average")} :0

-

Hasil Unggah direvisi hari ini

+

{t("Hasil_unggah_direvisi_hari_ini")}

@@ -43,9 +48,9 @@ const ReactTableTeksPage = () => {

- 0 Rata - rata :0 + {t("average")} :0

-

Hasil Unggah ditolak hari ini

+

{t("Hasil_unggah_ditolak_hari_ini")}

@@ -55,14 +60,14 @@ const ReactTableTeksPage = () => {
- Konten Teks + {t("text")}
{/* {/* diff --git a/app/[locale]/(protected)/dashboard/page.tsx b/app/[locale]/(protected)/dashboard/page.tsx index 89ba710b..731daeec 100644 --- a/app/[locale]/(protected)/dashboard/page.tsx +++ b/app/[locale]/(protected)/dashboard/page.tsx @@ -39,25 +39,25 @@ const DashboardPage = () => { value="routine-task" className="data-[state=active]:bg-primary data-[state=active]:text-primary-foreground rounded-md px-6" > - Tugas Rutin + {t("task-routine")} - Penugasan + {t("task")} - Jadwal + {t("schedule")} - Indeks + {t("indeks")} @@ -68,18 +68,18 @@ const DashboardPage = () => {
{ - {"Total Produksi Konten"} + {t("Total-Content-Production")} @@ -106,7 +106,7 @@ const DashboardPage = () => {
- {"Table"} + {t("tabel")} @@ -123,7 +123,7 @@ const DashboardPage = () => {
- Table Penugasan + Tabel Penugasan
@@ -158,8 +158,8 @@ const DashboardPage = () => {
-
-
+
+
Table Indeks
diff --git a/app/[locale]/(protected)/dashboard/routine-task/components/content-table.tsx b/app/[locale]/(protected)/dashboard/routine-task/components/content-table.tsx index 049f3e58..befee683 100644 --- a/app/[locale]/(protected)/dashboard/routine-task/components/content-table.tsx +++ b/app/[locale]/(protected)/dashboard/routine-task/components/content-table.tsx @@ -171,11 +171,11 @@ const ContentTable = () => { return (
-
-
+
+
- + { />
-
+
{/*
-
-
+
+
{replyVisible && (