From d5303c4919a9b9652a314a7b30b569478999b433 Mon Sep 17 00:00:00 2001 From: hanif salafi Date: Sun, 6 Jul 2025 16:23:45 +0700 Subject: [PATCH] feat: update translation with defaultValue --- .../settings/category/component/create.tsx | 4 +- .../settings/category/component/table.tsx | 2 +- .../admin/settings/faq/component/create.tsx | 4 +- .../settings/feedback/component/create.tsx | 4 +- .../setting-tracking/component/column.tsx | 2 +- .../admin/settings/tag/component/create.tsx | 4 +- .../admin/settings/tag/component/table.tsx | 2 +- .../app/calendar/calender-view.tsx | 6 +- .../app/chat/components/blank-chat.tsx | 4 +- .../(protected)/app/email/compose.tsx | 4 +- .../(protected)/app/kanban/add-board.tsx | 2 +- .../(protected)/app/kanban/kanban-app.tsx | 2 +- .../(protected)/app/todo/create-todo.tsx | 4 +- app/[locale]/(protected)/app/todo/page.tsx | 2 +- app/[locale]/(protected)/changelog/page.tsx | 6 +- .../agenda-setting/calender-view.tsx | 10 +- .../blog/components/blog-table.tsx | 6 +- .../contributor/blog/components/columns.tsx | 12 +- .../content/audio/components/columns.tsx | 16 +- .../contributor/content/audio/page.tsx | 16 +- .../content/image/components/columns.tsx | 16 +- .../contributor/content/image/page.tsx | 16 +- .../content/spit/table-spit/columns.tsx | 12 +- .../content/spit/table-spit/table-spit.tsx | 2 +- .../content/teks/components/columns.tsx | 16 +- .../contributor/content/teks/page.tsx | 16 +- .../content/video/components/columns.tsx | 16 +- .../contributor/content/video/page.tsx | 16 +- .../planning/mediahub/components/columns.tsx | 8 +- .../mediahub/components/mediahub-table.tsx | 2 +- .../medsos-mediahub/components/columns.tsx | 8 +- .../components/medsos-table.tsx | 2 +- .../contributor/report/components/columns.tsx | 12 +- .../report/components/report-table.tsx | 10 +- .../component/calendar-polri-table.tsx | 2 +- .../calendar-polri/component/columns.tsx | 12 +- .../schedule/event/components/columns.tsx | 18 +-- .../schedule/event/components/event-table.tsx | 4 +- .../live-report/component/columns.tsx | 18 +-- .../component/live-report-table.tsx | 4 +- .../press-conference/components/columns.tsx | 18 +-- .../components/presscon-table.tsx | 4 +- .../press-release/components/columns.tsx | 18 +-- .../components/pressrilis-table.tsx | 4 +- .../task-ta/components/columns.tsx | 8 +- .../task-ta/components/task-ta-table.tsx | 10 +- .../(protected)/contributor/task-ta/page.tsx | 4 +- .../contributor/task/components/columns.tsx | 14 +- .../task/components/task-table.tsx | 10 +- .../(protected)/contributor/task/page.tsx | 4 +- app/[locale]/(protected)/dashboard/page.tsx | 20 +-- .../routine-task/components/most-sales.tsx | 8 +- .../components/recent-activity.tsx | 8 +- .../ecommerce/frontend/counter-button.tsx | 2 +- .../ecommerce/frontend/sidebar.tsx | 12 +- .../collaboration/components/columns.tsx | 12 +- .../escalation/components/columns.tsx | 12 +- .../internal/components/columns.tsx | 12 +- .../(protected)/shared/communication/page.tsx | 10 +- .../shared/contest/components/columns.tsx | 14 +- .../(protected)/shared/contest/page.tsx | 4 +- .../accept-assignment/detail/[id]/page.tsx | 8 +- .../shared/curated-content/page.tsx | 2 +- .../polda/[polda_name]/audio/filter/page.tsx | 24 +-- .../[polda_name]/document/filter/page.tsx | 24 +-- .../polda/[polda_name]/image/filter/page.tsx | 26 +-- .../indeks/detail/[slug]/page.tsx | 34 ++-- .../polda/[polda_name]/video/filter/page.tsx | 26 +-- .../[polda_name]/components/latest-news.tsx | 2 +- .../components/news-tickers-kaltara.tsx | 2 +- .../[polda_name]/image/detail/[slug]/page.tsx | 70 ++++----- .../[satker_name]/audio/filter/page.tsx | 24 +-- .../[satker_name]/document/filter/page.tsx | 24 +-- .../[satker_name]/image/filter/page.tsx | 24 +-- .../indeks/detail/[slug]/page.tsx | 34 ++-- .../[satker_name]/video/filter/page.tsx | 26 +-- app/[locale]/(public)/audio/filter/page.tsx | 24 +-- app/[locale]/(public)/contact/page.tsx | 30 ++-- .../content-management/download/page.tsx | 66 ++++---- .../content-management/galery/page.tsx | 60 +++---- .../rewrite/create/[id]/page.tsx | 42 ++--- .../content-management/rewrite/page.tsx | 18 +-- .../content-management/users/page.tsx | 14 +- .../(public)/document/filter/page.tsx | 24 +-- app/[locale]/(public)/faqs/page.tsx | 16 +- app/[locale]/(public)/feedback/page.tsx | 10 +- app/[locale]/(public)/image/filter/page.tsx | 26 +-- app/[locale]/(public)/inbox/page.tsx | 8 +- app/[locale]/(public)/inbox/update/page.tsx | 8 +- .../(public)/indeks/detail/[slug]/page.tsx | 34 ++-- .../(public)/profile/change-password/page.tsx | 20 +-- .../(public)/profile/change-profile/page.tsx | 14 +- app/[locale]/(public)/profile/page.tsx | 20 +-- app/[locale]/(public)/schedule/page.tsx | 32 ++-- app/[locale]/(public)/video/filter/page.tsx | 26 +-- app/[locale]/auth/page.tsx | 4 +- app/[locale]/auth/registration/page.tsx | 122 +++++++-------- components/blocks/earning-block.tsx | 2 +- components/dashboard-dropdown.tsx | 6 +- .../account-report/account-report-form.tsx | 6 +- components/form/content/audio-detail-form.tsx | 32 ++-- components/form/content/audio-form.tsx | 52 +++--- components/form/content/audio-update-form.tsx | 36 ++--- components/form/content/image-detail-form.tsx | 34 ++-- components/form/content/image-form.tsx | 54 +++---- components/form/content/image-update-form.tsx | 38 ++--- components/form/content/image-update-seo.tsx | 4 +- .../content/task-ta/audio-detail-form.tsx | 32 ++-- .../form/content/task-ta/audio-form.tsx | 48 +++--- .../content/task-ta/audio-update-form.tsx | 36 ++--- .../content/task-ta/image-detail-form.tsx | 32 ++-- .../form/content/task-ta/image-form.tsx | 50 +++--- .../content/task-ta/image-update-form.tsx | 38 ++--- .../content/task-ta/spit-convert-form.tsx | 38 ++--- .../form/content/task-ta/teks-detail-form.tsx | 32 ++-- components/form/content/task-ta/teks-form.tsx | 50 +++--- .../form/content/task-ta/teks-update-form.tsx | 38 ++--- .../content/task-ta/video-detail-form.tsx | 34 ++-- .../form/content/task-ta/video-form.tsx | 50 +++--- .../content/task-ta/video-update-form.tsx | 38 ++--- components/form/content/teks-detail-form.tsx | 32 ++-- components/form/content/teks-form.tsx | 54 +++---- components/form/content/teks-update-form.tsx | 38 ++--- components/form/content/video-detail-form.tsx | 34 ++-- components/form/content/video-form.tsx | 54 +++---- components/form/content/video-update-form.tsx | 38 ++--- .../media-tracking/media-tracking-form.tsx | 14 +- components/form/planning/mediahub-publish.tsx | 16 +- components/form/planning/medsos-publish.tsx | 18 +-- .../schedule/form-calendar-polri-detail.tsx | 2 +- .../schedule/form-calendar-polri-update.tsx | 2 +- .../form/schedule/form-calendar-polri.tsx | 2 +- .../form/schedule/live-report-detail-form.tsx | 14 +- .../form/setting/form-add-iklan-detail.tsx | 2 +- .../form/setting/form-add-iklan-update.tsx | 2 +- components/form/setting/form-add-iklan.tsx | 2 +- .../form/shared/accept-assignment-form.tsx | 32 ++-- components/form/shared/ask-expert-form.tsx | 28 ++-- .../form/shared/do-it-yourself-form.tsx | 28 ++-- .../form/task-ta/task-ta-detail-form.tsx | 30 ++-- components/form/task-ta/task-ta-edit-form.tsx | 24 +-- components/form/task-ta/task-ta-form.tsx | 30 ++-- .../form/task-ta/task-ta-upload-form.tsx | 30 ++-- components/form/task/task-detail-form.tsx | 36 ++--- components/form/task/task-edit-form.tsx | 32 ++-- components/form/task/task-form.tsx | 36 ++--- .../area-coverage-and-work-units.tsx | 14 +- components/landing-page/content-category.tsx | 12 +- components/landing-page/division.tsx | 12 +- components/landing-page/event-calender.tsx | 32 ++-- .../filter-all/image-filter-card.tsx | 2 +- components/landing-page/footer.tsx | 12 +- .../landing-page/header-banner-satker.tsx | 4 +- components/landing-page/header-banner.tsx | 4 +- components/landing-page/header-management.tsx | 4 +- components/landing-page/hero-new-polda.tsx | 6 +- components/landing-page/hero-new-satker.tsx | 6 +- components/landing-page/hero-new.tsx | 4 +- components/landing-page/hero.tsx | 10 +- .../content-category-kaltara.tsx | 12 +- .../header-banner-kaltara.tsx | 4 +- .../latest-content-kaltara.tsx | 18 +-- .../navbar-polda-kaltara.tsx | 36 ++--- .../welcome-polda-kaltara.tsx | 32 ++-- components/landing-page/navbar.tsx | 112 ++++++------- components/landing-page/new-content.tsx | 20 +-- components/landing-page/news-tickers.tsx | 2 +- .../landing-page/scrollable-content-polda.tsx | 20 +-- .../scrollable-content-satker.tsx | 20 +-- .../landing-page/search-section-new.tsx | 28 ++-- .../landing-page/sidebar-management.tsx | 18 +-- components/landing-page/survey-box.tsx | 22 +-- components/landing-page/welcome-polda.tsx | 32 ++-- components/landing-page/welcome-satker.tsx | 32 ++-- components/main/audio-detail.tsx | 66 ++++---- components/main/document-detail.tsx | 68 ++++---- components/main/image-detail.tsx | 70 ++++----- components/main/video-detail.tsx | 70 ++++----- components/modal/suggestions-modal.tsx | 8 +- components/partials/auth/login-form.tsx | 22 +-- components/revenue-bar-chart.tsx | 2 +- .../visualization/content-production.tsx | 12 +- components/visualization/dashboard-viz.tsx | 12 +- .../visualization/management-user-viz.tsx | 4 +- .../visualization/pattern-relation-viz.tsx | 16 +- hooks/use-translation-with-defaults.ts | 24 +++ scripts/add-translation-defaults-precise.js | 148 ++++++++++++++++++ scripts/add-translation-defaults-simple.js | 117 ++++++++++++++ 188 files changed, 2184 insertions(+), 1893 deletions(-) create mode 100644 hooks/use-translation-with-defaults.ts create mode 100644 scripts/add-translation-defaults-precise.js create mode 100644 scripts/add-translation-defaults-simple.js diff --git a/app/[locale]/(protected)/admin/settings/category/component/create.tsx b/app/[locale]/(protected)/admin/settings/category/component/create.tsx index afd65cd9..569aaa32 100644 --- a/app/[locale]/(protected)/admin/settings/category/component/create.tsx +++ b/app/[locale]/(protected)/admin/settings/category/component/create.tsx @@ -240,7 +240,7 @@ export default function CreateCategoryModal() { - {t("add-category")} + {t("add-category", { defaultValue: "Add Category" })}
{ return (
-

{t("category")}

+

{t("category", { defaultValue: "Category" })}

diff --git a/app/[locale]/(protected)/admin/settings/faq/component/create.tsx b/app/[locale]/(protected)/admin/settings/faq/component/create.tsx index 0e5da32e..504d9fa5 100644 --- a/app/[locale]/(protected)/admin/settings/faq/component/create.tsx +++ b/app/[locale]/(protected)/admin/settings/faq/component/create.tsx @@ -121,12 +121,12 @@ export default function CreateFAQModal() { - {t("add")} FAQ + {t("add", { defaultValue: "Add" })} FAQ - {t("add")} Feedback + {t("add", { defaultValue: "Add" })} Feedback { { id: "actions", accessorKey: "action", - header: t("action"), + header: t("action", { defaultValue: "Action" }), enableHiding: false, cell: ({ row }) => { const MySwal = withReactContent(Swal); diff --git a/app/[locale]/(protected)/admin/settings/tag/component/create.tsx b/app/[locale]/(protected)/admin/settings/tag/component/create.tsx index 9955faf9..c0071e1c 100644 --- a/app/[locale]/(protected)/admin/settings/tag/component/create.tsx +++ b/app/[locale]/(protected)/admin/settings/tag/component/create.tsx @@ -109,12 +109,12 @@ export default function CreateTagModal() { - {t("add-tags")} + {t("add-tags", { defaultValue: "Add Tags" })} { return (
-

{t("tags")}

+

{t("tags", { defaultValue: "Tags" })}

diff --git a/app/[locale]/(protected)/app/calendar/calender-view.tsx b/app/[locale]/(protected)/app/calendar/calender-view.tsx index 2f707e0f..4e49d138 100644 --- a/app/[locale]/(protected)/app/calendar/calender-view.tsx +++ b/app/[locale]/(protected)/app/calendar/calender-view.tsx @@ -144,7 +144,7 @@ const t = useTranslations("CalendarApp") className="dark:bg-background dark:text-foreground" > - {t("addEvent")} + {t("addEvent", { defaultValue: "Add Event" })}
@@ -160,14 +160,14 @@ const t = useTranslations("CalendarApp")

- {t("shortDesc")} + {t("shortDesc", { defaultValue: "Short Desc" })}

{dragEvents.map((event) => ( ))}
- {t("filter")} + {t("filter", { defaultValue: "Filter" })}
  • diff --git a/app/[locale]/(protected)/app/chat/components/blank-chat.tsx b/app/[locale]/(protected)/app/chat/components/blank-chat.tsx index de78d732..0ebea5e7 100644 --- a/app/[locale]/(protected)/app/chat/components/blank-chat.tsx +++ b/app/[locale]/(protected)/app/chat/components/blank-chat.tsx @@ -15,10 +15,10 @@ const Blank = () => {
    - {t("blankMessageTitle")} + {t("blankMessageTitle", { defaultValue: "Blank Message Title" })}

    - {t("blankMessageDesc")} + {t("blankMessageDesc", { defaultValue: "Blank Message Desc" })}

    {isLg && ( - {t("composeEmail")} + {t("composeEmail", { defaultValue: "Compose Email" })} diff --git a/app/[locale]/(protected)/app/kanban/add-board.tsx b/app/[locale]/(protected)/app/kanban/add-board.tsx index 17668366..35aa3b0e 100644 --- a/app/[locale]/(protected)/app/kanban/add-board.tsx +++ b/app/[locale]/(protected)/app/kanban/add-board.tsx @@ -19,7 +19,7 @@ const AddBoard = () => { diff --git a/app/[locale]/(protected)/app/kanban/kanban-app.tsx b/app/[locale]/(protected)/app/kanban/kanban-app.tsx index 218a3c98..77cae4cd 100644 --- a/app/[locale]/(protected)/app/kanban/kanban-app.tsx +++ b/app/[locale]/(protected)/app/kanban/kanban-app.tsx @@ -120,7 +120,7 @@ const KanBanApp = ({ defaultCols, defaultTasks }: { defaultCols: Column[], defau
    - {t("title")} + {t("title", { defaultValue: "Title" })}
    diff --git a/app/[locale]/(protected)/app/todo/create-todo.tsx b/app/[locale]/(protected)/app/todo/create-todo.tsx index 906c23f7..7037e949 100644 --- a/app/[locale]/(protected)/app/todo/create-todo.tsx +++ b/app/[locale]/(protected)/app/todo/create-todo.tsx @@ -72,12 +72,12 @@ const CreateTodo = () => { - {t("addTask")} + {t("addTask", { defaultValue: "Add Task" })} diff --git a/app/[locale]/(protected)/app/todo/page.tsx b/app/[locale]/(protected)/app/todo/page.tsx index cfae2230..7c6aa87f 100644 --- a/app/[locale]/(protected)/app/todo/page.tsx +++ b/app/[locale]/(protected)/app/todo/page.tsx @@ -44,7 +44,7 @@ const t = useTranslations("TodoApp"); } ]} />
    - {t("todos")} + {t("todos", { defaultValue: "Todos" })}
    @@ -58,13 +58,13 @@ const ReactTableAudioPage = () => {
    - {t("audio")} + {t("audio", { defaultValue: "Audio" })}
    {/*

    - {t("average")} :0 + {t("average", { defaultValue: "Average" })} :0

    -

    {t("Hasil_unggah_direvisi_hari_ini")}

    +

    {t("Hasil_unggah_direvisi_hari_ini", { defaultValue: "Hasil Unggah Direvisi Hari Ini" })}

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

    - {t("average")} :0 + {t("average", { defaultValue: "Average" })} :0

    -

    {t("Hasil_unggah_ditolak_hari_ini")}

    +

    {t("Hasil_unggah_ditolak_hari_ini", { defaultValue: "Hasil Unggah Ditolak Hari Ini" })}

    @@ -58,13 +58,13 @@ const ReactTableImagePage = () => {
    - {t("image")} + {t("image", { defaultValue: "Image" })}
    {/* diff --git a/app/[locale]/(protected)/contributor/content/spit/table-spit/columns.tsx b/app/[locale]/(protected)/contributor/content/spit/table-spit/columns.tsx index d39ca88c..e61ae545 100644 --- a/app/[locale]/(protected)/contributor/content/spit/table-spit/columns.tsx +++ b/app/[locale]/(protected)/contributor/content/spit/table-spit/columns.tsx @@ -26,7 +26,7 @@ const useTableColumns = () => { const columns: ColumnDef[] = [ { accessorKey: "no", - header: t("no"), + header: t("no", { defaultValue: "No" }), cell: ({ row }) => (
    @@ -39,7 +39,7 @@ const useTableColumns = () => { }, { accessorKey: "contentTitle", - header: t("title"), + header: t("title", { defaultValue: "Title" }), cell: ({ row }: { row: { getValue: (key: string) => string } }) => { const title: string = row.getValue("contentTitle"); return ( @@ -51,7 +51,7 @@ const useTableColumns = () => { }, { accessorKey: "contentTag", - header: t("tag"), + header: t("tag", { defaultValue: "Tag" }), cell: ({ row }) => ( {row.getValue("contentTag")} ), @@ -59,14 +59,14 @@ const useTableColumns = () => { { accessorKey: "contentType", - header: t("type-content"), + header: t("type-content", { defaultValue: "Type Content" }), cell: ({ row }) => ( {row.getValue("contentType")} ), }, { accessorKey: "contentCreatedGroupBy", - header: t("source"), + header: t("source", { defaultValue: "Source" }), cell: ({ row }) => ( {row.getValue("contentCreatedGroupBy")} @@ -98,7 +98,7 @@ const useTableColumns = () => { { accessorKey: "contentCreatedDate", - header: t("upload-date"), + header: t("upload-date", { defaultValue: "Upload Date" }), cell: ({ row }) => { const createdAt = row.getValue("contentCreatedDate") as | string 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 77fcfd17..55ce0186 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 @@ -209,7 +209,7 @@ const TableSPIT = () => {

    Filter

    - + { const columns: ColumnDef[] = [ { accessorKey: "no", - header: t("no"), + header: t("no", { defaultValue: "No" }), cell: ({ row }) => (
    @@ -40,7 +40,7 @@ const useTableColumns = () => { }, { accessorKey: "title", - header: t("title"), + header: t("title", { defaultValue: "Title" }), cell: ({ row }: { row: { getValue: (key: string) => string } }) => { const title: string = row.getValue("title"); return ( @@ -52,7 +52,7 @@ const useTableColumns = () => { }, { accessorKey: "categoryName", - header: t("category-name"), + header: t("category-name", { defaultValue: "Category Name" }), cell: ({ row }) => ( {row.getValue("categoryName")} @@ -61,7 +61,7 @@ const useTableColumns = () => { }, { accessorKey: "createdAt", - header: t("upload-date"), + header: t("upload-date", { defaultValue: "Upload Date" }), cell: ({ row }) => { const createdAt = row.getValue("createdAt") as | string @@ -77,14 +77,14 @@ const useTableColumns = () => { }, { accessorKey: "creatorName", - header: t("creator-group"), + header: t("creator-group", { defaultValue: "Creator Group" }), cell: ({ row }) => ( {row.getValue("creatorName")} ), }, { accessorKey: "creatorGroupLevelName", - header: t("source"), + header: t("source", { defaultValue: "Source" }), cell: ({ row }) => ( {row.getValue("creatorGroupLevelName")} @@ -93,7 +93,7 @@ const useTableColumns = () => { }, { accessorKey: "publishedOn", - header: t("published"), + header: t("published", { defaultValue: "Published" }), cell: ({ row }) => { const isPublish = row.original.isPublish; const isPublishOnPolda = row.original.isPublishOnPolda; @@ -178,7 +178,7 @@ const useTableColumns = () => { { id: "actions", accessorKey: "action", - header: t("action"), + header: t("action", { defaultValue: "Action" }), enableHiding: false, cell: ({ row }) => { const MySwal = withReactContent(Swal); diff --git a/app/[locale]/(protected)/contributor/content/teks/page.tsx b/app/[locale]/(protected)/contributor/content/teks/page.tsx index 903fdf34..ce023778 100644 --- a/app/[locale]/(protected)/contributor/content/teks/page.tsx +++ b/app/[locale]/(protected)/contributor/content/teks/page.tsx @@ -23,11 +23,11 @@ const ReactTableTeksPage = () => {

    - {t("average")} :0 + {t("average", { defaultValue: "Average" })} :0

    {" "} - {t("Hasil_unggah_disetujui_hari_ini")} + {t("Hasil_unggah_disetujui_hari_ini", { defaultValue: "Hasil Unggah Disetujui Hari Ini" })}

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

    - {t("average")} :0 + {t("average", { defaultValue: "Average" })} :0

    -

    {t("Hasil_unggah_direvisi_hari_ini")}

    +

    {t("Hasil_unggah_direvisi_hari_ini", { defaultValue: "Hasil Unggah Direvisi Hari Ini" })}

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

    - {t("average")} :0 + {t("average", { defaultValue: "Average" })} :0

    -

    {t("Hasil_unggah_ditolak_hari_ini")}

    +

    {t("Hasil_unggah_ditolak_hari_ini", { defaultValue: "Hasil Unggah Ditolak Hari Ini" })}

    @@ -60,14 +60,14 @@ const ReactTableTeksPage = () => {
    - {t("text")} + {t("text", { defaultValue: "Text" })}
    {/*

    - {t("average")} :0 + {t("average", { defaultValue: "Average" })} :0

    -

    {t("Hasil_unggah_direvisi_hari_ini")}

    +

    {t("Hasil_unggah_direvisi_hari_ini", { defaultValue: "Hasil Unggah Direvisi Hari Ini" })}

    @@ -47,9 +47,9 @@ const ReactTableVideoPage = () => {

    - {t("average")} :0 + {t("average", { defaultValue: "Average" })} :0

    -

    {t("Hasil_unggah_ditolak_hari_ini")}

    +

    {t("Hasil_unggah_ditolak_hari_ini", { defaultValue: "Hasil Unggah Ditolak Hari Ini" })}

@@ -59,13 +59,13 @@ const ReactTableVideoPage = () => {
- {t("video")} + {t("video", { defaultValue: "Video" })}
{/*
@@ -344,7 +344,7 @@ const ReportTable = () => {

Filter

- + { onChange={() => handleStatusCheckboxChange(1)} />
@@ -383,7 +383,7 @@ const ReportTable = () => { onChange={() => handleStatusCheckboxChange(2)} />
diff --git a/app/[locale]/(protected)/contributor/schedule/calendar-polri/component/calendar-polri-table.tsx b/app/[locale]/(protected)/contributor/schedule/calendar-polri/component/calendar-polri-table.tsx index 2791eeaf..dcf81544 100644 --- a/app/[locale]/(protected)/contributor/schedule/calendar-polri/component/calendar-polri-table.tsx +++ b/app/[locale]/(protected)/contributor/schedule/calendar-polri/component/calendar-polri-table.tsx @@ -161,7 +161,7 @@ const CalendarPolriTable = () => {
- {t("calendar-polri")} {t("schedule")} + {t("calendar-polri", { defaultValue: "Calendar Polri" })} {t("schedule", { defaultValue: "Schedule" })}
diff --git a/app/[locale]/(protected)/contributor/schedule/calendar-polri/component/columns.tsx b/app/[locale]/(protected)/contributor/schedule/calendar-polri/component/columns.tsx index 33471915..85ac17b6 100644 --- a/app/[locale]/(protected)/contributor/schedule/calendar-polri/component/columns.tsx +++ b/app/[locale]/(protected)/contributor/schedule/calendar-polri/component/columns.tsx @@ -24,7 +24,7 @@ const useTableColumns = () => { const columns: ColumnDef[] = [ { accessorKey: "no", - header: t("no"), + header: t("no", { defaultValue: "No" }), cell: ({ row }) => (
@@ -38,7 +38,7 @@ const useTableColumns = () => { { accessorKey: "title", - header: t("title"), + header: t("title", { defaultValue: "Title" }), cell: ({ row }: { row: { getValue: (key: string) => string } }) => { const title: string = row.getValue("title"); return ( @@ -50,14 +50,14 @@ const useTableColumns = () => { }, { accessorKey: "startDate", - header: t("start-date"), + header: t("start-date", { defaultValue: "Start Date" }), cell: ({ row }) => ( {row.getValue("startDate")} ), }, { accessorKey: "endDate", - header: t("end-date"), + header: t("end-date", { defaultValue: "End Date" }), cell: ({ row }) => ( {row.getValue("endDate")} ), @@ -85,7 +85,7 @@ const useTableColumns = () => { }, { accessorKey: "createdByName", - header: t("source"), + header: t("source", { defaultValue: "Source" }), cell: ({ row }) => ( {row.getValue("createdByName")} @@ -96,7 +96,7 @@ const useTableColumns = () => { { id: "actions", accessorKey: "action", - header: t("action"), + header: t("action", { defaultValue: "Action" }), enableHiding: false, cell: ({ row }) => { const MySwal = withReactContent(Swal); diff --git a/app/[locale]/(protected)/contributor/schedule/event/components/columns.tsx b/app/[locale]/(protected)/contributor/schedule/event/components/columns.tsx index 52afd9b5..e36fcd0c 100644 --- a/app/[locale]/(protected)/contributor/schedule/event/components/columns.tsx +++ b/app/[locale]/(protected)/contributor/schedule/event/components/columns.tsx @@ -20,7 +20,7 @@ const useTableColumns = () => { const columns: ColumnDef[] = [ { accessorKey: "no", - header: t("no"), + header: t("no", { defaultValue: "No" }), cell: ({ row }) => (
@@ -34,7 +34,7 @@ const useTableColumns = () => { { accessorKey: "title", - header: t("title"), + header: t("title", { defaultValue: "Title" }), cell: ({ row }: { row: { getValue: (key: string) => string } }) => { const title: string = row.getValue("title"); return ( @@ -46,21 +46,21 @@ const useTableColumns = () => { }, { accessorKey: "startDate", - header: t("start-date"), + header: t("start-date", { defaultValue: "Start Date" }), cell: ({ row }) => ( {row.getValue("startDate")} ), }, { accessorKey: "endDate", - header: t("end-date"), + header: t("end-date", { defaultValue: "End Date" }), cell: ({ row }) => ( {row.getValue("endDate")} ), }, { accessorKey: "time", - header: t("time"), + header: t("time", { defaultValue: "Time" }), cell: ({ row }: { row: { original: any } }) => { console.log("Row Original Data:", row.original); const { startTime, endTime } = row.original; @@ -73,7 +73,7 @@ const useTableColumns = () => { }, { accessorKey: "address", - header: t("address"), + header: t("address", { defaultValue: "Address" }), cell: ({ row }: { row: { getValue: (key: string) => string } }) => { const address: string = row.getValue("address"); return ( @@ -111,7 +111,7 @@ const useTableColumns = () => { }, { accessorKey: "speaker", - header: t("speaker"), + header: t("speaker", { defaultValue: "Speaker" }), cell: ({ row }: { row: { original: any } }) => { console.log("Row Original Data:", row.original); const { speakerTitle, speakerName } = row.original; @@ -124,7 +124,7 @@ const useTableColumns = () => { }, { accessorKey: "uploaderName", - header: t("source"), + header: t("source", { defaultValue: "Source" }), cell: ({ row }) => ( {row.getValue("uploaderName")} @@ -135,7 +135,7 @@ const useTableColumns = () => { { id: "actions", accessorKey: "action", - header: t("action"), + header: t("action", { defaultValue: "Action" }), enableHiding: false, cell: ({ row }) => { return ( diff --git a/app/[locale]/(protected)/contributor/schedule/event/components/event-table.tsx b/app/[locale]/(protected)/contributor/schedule/event/components/event-table.tsx index 33ce62ae..2cc27208 100644 --- a/app/[locale]/(protected)/contributor/schedule/event/components/event-table.tsx +++ b/app/[locale]/(protected)/contributor/schedule/event/components/event-table.tsx @@ -144,13 +144,13 @@ const EventTable = () => {
- Event {t("schedule")} + Event {t("schedule", { defaultValue: "Schedule" })}
diff --git a/app/[locale]/(protected)/contributor/schedule/live-report/component/columns.tsx b/app/[locale]/(protected)/contributor/schedule/live-report/component/columns.tsx index 329d7e6a..4d985ffa 100644 --- a/app/[locale]/(protected)/contributor/schedule/live-report/component/columns.tsx +++ b/app/[locale]/(protected)/contributor/schedule/live-report/component/columns.tsx @@ -24,7 +24,7 @@ const useTableColumns = (props: { selectedTypeSchedule: string }) => { const columns: ColumnDef[] = [ { accessorKey: "no", - header: t("no"), + header: t("no", { defaultValue: "No" }), cell: ({ row }) => (
@@ -38,7 +38,7 @@ const useTableColumns = (props: { selectedTypeSchedule: string }) => { { accessorKey: "title", - header: t("title"), + header: t("title", { defaultValue: "Title" }), cell: ({ row }: { row: { getValue: (key: string) => string } }) => { const title: string = row.getValue("title"); return ( @@ -50,21 +50,21 @@ const useTableColumns = (props: { selectedTypeSchedule: string }) => { }, { accessorKey: "startDate", - header: t("start-date"), + header: t("start-date", { defaultValue: "Start Date" }), cell: ({ row }) => ( {row.getValue("startDate")} ), }, { accessorKey: "endDate", - header: t("end-date"), + header: t("end-date", { defaultValue: "End Date" }), cell: ({ row }) => ( {row.getValue("endDate")} ), }, { accessorKey: "time", - header: t("time"), + header: t("time", { defaultValue: "Time" }), cell: ({ row }: { row: { original: any } }) => { console.log("Row Original Data:", row.original); const { startTime, endTime } = row.original; @@ -77,7 +77,7 @@ const useTableColumns = (props: { selectedTypeSchedule: string }) => { }, { accessorKey: "address", - header: t("address"), + header: t("address", { defaultValue: "Address" }), cell: ({ row }: { row: { getValue: (key: string) => string } }) => { const address: string = row.getValue("address"); return ( @@ -115,7 +115,7 @@ const useTableColumns = (props: { selectedTypeSchedule: string }) => { }, { accessorKey: "speaker", - header: t("speaker"), + header: t("speaker", { defaultValue: "Speaker" }), cell: ({ row }: { row: { original: any } }) => { console.log("Row Original Data:", row.original); const { speakerTitle, speakerName } = row.original; @@ -128,7 +128,7 @@ const useTableColumns = (props: { selectedTypeSchedule: string }) => { }, { accessorKey: "uploaderName", - header: t("source"), + header: t("source", { defaultValue: "Source" }), cell: ({ row }) => ( {row.getValue("uploaderName")} @@ -139,7 +139,7 @@ const useTableColumns = (props: { selectedTypeSchedule: string }) => { { id: "actions", accessorKey: "action", - header: t("action"), + header: t("action", { defaultValue: "Action" }), enableHiding: false, cell: ({ row }) => { const MySwal = withReactContent(Swal); diff --git a/app/[locale]/(protected)/contributor/schedule/live-report/component/live-report-table.tsx b/app/[locale]/(protected)/contributor/schedule/live-report/component/live-report-table.tsx index f9e0d13a..27c17917 100644 --- a/app/[locale]/(protected)/contributor/schedule/live-report/component/live-report-table.tsx +++ b/app/[locale]/(protected)/contributor/schedule/live-report/component/live-report-table.tsx @@ -168,13 +168,13 @@ const LiveReportTable = () => {
- {t("live-report")} {t("schedule")} + {t("live-report", { defaultValue: "Live Report" })} {t("schedule", { defaultValue: "Schedule" })}
diff --git a/app/[locale]/(protected)/contributor/schedule/press-conference/components/columns.tsx b/app/[locale]/(protected)/contributor/schedule/press-conference/components/columns.tsx index 1a3a3ae3..769393d8 100644 --- a/app/[locale]/(protected)/contributor/schedule/press-conference/components/columns.tsx +++ b/app/[locale]/(protected)/contributor/schedule/press-conference/components/columns.tsx @@ -20,7 +20,7 @@ const useTableColumns = () => { const columns: ColumnDef[] = [ { accessorKey: "no", - header: t("no"), + header: t("no", { defaultValue: "No" }), cell: ({ row }) => (
@@ -34,7 +34,7 @@ const useTableColumns = () => { { accessorKey: "title", - header: t("title"), + header: t("title", { defaultValue: "Title" }), cell: ({ row }: { row: { getValue: (key: string) => string } }) => { const title: string = row.getValue("title"); return ( @@ -46,21 +46,21 @@ const useTableColumns = () => { }, { accessorKey: "startDate", - header: t("start-date"), + header: t("start-date", { defaultValue: "Start Date" }), cell: ({ row }) => ( {row.getValue("startDate")} ), }, { accessorKey: "endDate", - header: t("end-date"), + header: t("end-date", { defaultValue: "End Date" }), cell: ({ row }) => ( {row.getValue("endDate")} ), }, { accessorKey: "time", - header: t("time"), + header: t("time", { defaultValue: "Time" }), cell: ({ row }: { row: { original: any } }) => { console.log("Row Original Data:", row.original); const { startTime, endTime } = row.original; @@ -73,7 +73,7 @@ const useTableColumns = () => { }, { accessorKey: "address", - header: t("address"), + header: t("address", { defaultValue: "Address" }), cell: ({ row }: { row: { getValue: (key: string) => string } }) => { const address: string = row.getValue("address"); return ( @@ -111,7 +111,7 @@ const useTableColumns = () => { }, { accessorKey: "speaker", - header: t("speaker"), + header: t("speaker", { defaultValue: "Speaker" }), cell: ({ row }: { row: { original: any } }) => { console.log("Row Original Data:", row.original); const { speakerTitle, speakerName } = row.original; @@ -124,7 +124,7 @@ const useTableColumns = () => { }, { accessorKey: "uploaderName", - header: t("source"), + header: t("source", { defaultValue: "Source" }), cell: ({ row }) => ( {row.getValue("uploaderName")} @@ -135,7 +135,7 @@ const useTableColumns = () => { { id: "actions", accessorKey: "action", - header: t("action"), + header: t("action", { defaultValue: "Action" }), enableHiding: false, cell: ({ row }) => { return ( diff --git a/app/[locale]/(protected)/contributor/schedule/press-conference/components/presscon-table.tsx b/app/[locale]/(protected)/contributor/schedule/press-conference/components/presscon-table.tsx index a52a9ed6..effb74de 100644 --- a/app/[locale]/(protected)/contributor/schedule/press-conference/components/presscon-table.tsx +++ b/app/[locale]/(protected)/contributor/schedule/press-conference/components/presscon-table.tsx @@ -158,13 +158,13 @@ const PressConferenceTable = () => {
- {t("press-conference")} {t("schedule")} + {t("press-conference", { defaultValue: "Press Conference" })} {t("schedule", { defaultValue: "Schedule" })}
diff --git a/app/[locale]/(protected)/contributor/schedule/press-release/components/columns.tsx b/app/[locale]/(protected)/contributor/schedule/press-release/components/columns.tsx index 98f71883..10d53a9c 100644 --- a/app/[locale]/(protected)/contributor/schedule/press-release/components/columns.tsx +++ b/app/[locale]/(protected)/contributor/schedule/press-release/components/columns.tsx @@ -20,7 +20,7 @@ const useTableColumns = () => { const columns: ColumnDef[] = [ { accessorKey: "no", - header: t("no"), + header: t("no", { defaultValue: "No" }), cell: ({ row }) => (
@@ -34,7 +34,7 @@ const useTableColumns = () => { { accessorKey: "title", - header: t("title"), + header: t("title", { defaultValue: "Title" }), cell: ({ row }: { row: { getValue: (key: string) => string } }) => { const title: string = row.getValue("title"); return ( @@ -46,21 +46,21 @@ const useTableColumns = () => { }, { accessorKey: "startDate", - header: t("start-date"), + header: t("start-date", { defaultValue: "Start Date" }), cell: ({ row }) => ( {row.getValue("startDate")} ), }, { accessorKey: "endDate", - header: t("end-date"), + header: t("end-date", { defaultValue: "End Date" }), cell: ({ row }) => ( {row.getValue("endDate")} ), }, { accessorKey: "time", - header: t("time"), + header: t("time", { defaultValue: "Time" }), cell: ({ row }: { row: { original: any } }) => { console.log("Row Original Data:", row.original); const { startTime, endTime } = row.original; @@ -73,7 +73,7 @@ const useTableColumns = () => { }, { accessorKey: "address", - header: t("address"), + header: t("address", { defaultValue: "Address" }), cell: ({ row }: { row: { getValue: (key: string) => string } }) => { const address: string = row.getValue("address"); return ( @@ -111,7 +111,7 @@ const useTableColumns = () => { }, { accessorKey: "speaker", - header: t("speaker"), + header: t("speaker", { defaultValue: "Speaker" }), cell: ({ row }: { row: { original: any } }) => { console.log("Row Original Data:", row.original); const { speakerTitle, speakerName } = row.original; @@ -124,7 +124,7 @@ const useTableColumns = () => { }, { accessorKey: "uploaderName", - header: t("source"), + header: t("source", { defaultValue: "Source" }), cell: ({ row }) => ( {row.getValue("uploaderName")} @@ -135,7 +135,7 @@ const useTableColumns = () => { { id: "actions", accessorKey: "action", - header: t("action"), + header: t("action", { defaultValue: "Action" }), enableHiding: false, cell: ({ row }) => { return ( diff --git a/app/[locale]/(protected)/contributor/schedule/press-release/components/pressrilis-table.tsx b/app/[locale]/(protected)/contributor/schedule/press-release/components/pressrilis-table.tsx index 68f90688..ecdd9e91 100644 --- a/app/[locale]/(protected)/contributor/schedule/press-release/components/pressrilis-table.tsx +++ b/app/[locale]/(protected)/contributor/schedule/press-release/components/pressrilis-table.tsx @@ -159,13 +159,13 @@ const PressReleaseTable = () => {
- {t("press-release")} {t("schedule")} + {t("press-release", { defaultValue: "Press Release" })} {t("schedule", { defaultValue: "Schedule" })}
diff --git a/app/[locale]/(protected)/contributor/task-ta/components/columns.tsx b/app/[locale]/(protected)/contributor/task-ta/components/columns.tsx index ad0a8864..6960c750 100644 --- a/app/[locale]/(protected)/contributor/task-ta/components/columns.tsx +++ b/app/[locale]/(protected)/contributor/task-ta/components/columns.tsx @@ -27,12 +27,12 @@ const useTableColumns = () => { const columns: ColumnDef[] = [ { accessorKey: "no", - header: t("no"), + header: t("no", { defaultValue: "No" }), cell: ({ row }) => {row.getValue("no")}, }, { accessorKey: "title", - header: t("title"), + header: t("title", { defaultValue: "Title" }), cell: ({ row }) => (
{row.getValue("title")} @@ -52,7 +52,7 @@ const useTableColumns = () => { { accessorKey: "createdAt", - header: t("upload-date"), + header: t("upload-date", { defaultValue: "Upload Date" }), cell: ({ row }) => { const createdAt = row.getValue("createdAt") as | string @@ -100,7 +100,7 @@ const useTableColumns = () => { { id: "actions", accessorKey: "action", - header: t("action"), + header: t("action", { defaultValue: "Action" }), enableHiding: false, cell: ({ row }) => { const router = useRouter(); diff --git a/app/[locale]/(protected)/contributor/task-ta/components/task-ta-table.tsx b/app/[locale]/(protected)/contributor/task-ta/components/task-ta-table.tsx index 4f5cddb7..1c5e2acb 100644 --- a/app/[locale]/(protected)/contributor/task-ta/components/task-ta-table.tsx +++ b/app/[locale]/(protected)/contributor/task-ta/components/task-ta-table.tsx @@ -210,7 +210,7 @@ const TaskTaTable = () => { } px-[18px] py-1 transition duration-100 rounded`} > - {t("special-attention")} + {t("special-attention", { defaultValue: "Special Attention" })} { px-[18px] py-1 transition duration-100 rounded `} > - {t("daily-tasks")} + {t("daily-tasks", { defaultValue: "Daily Tasks" })}
@@ -293,7 +293,7 @@ const TaskTaTable = () => {

Filter

- + { onChange={() => handleStatusCheckboxChange(1)} />
@@ -332,7 +332,7 @@ const TaskTaTable = () => { onChange={() => handleStatusCheckboxChange(2)} />
diff --git a/app/[locale]/(protected)/contributor/task-ta/page.tsx b/app/[locale]/(protected)/contributor/task-ta/page.tsx index b1b9a4c5..70c0e408 100644 --- a/app/[locale]/(protected)/contributor/task-ta/page.tsx +++ b/app/[locale]/(protected)/contributor/task-ta/page.tsx @@ -35,14 +35,14 @@ const TaskTaPage = () => {
- {t("tabel")} {t("task-ta")} + {t("tabel", { defaultValue: "Tabel" })} {t("task-ta", { defaultValue: "Task Ta" })}
{roleId !== 12 && ( )} diff --git a/app/[locale]/(protected)/contributor/task/components/columns.tsx b/app/[locale]/(protected)/contributor/task/components/columns.tsx index fb44c3b9..82b1785b 100644 --- a/app/[locale]/(protected)/contributor/task/components/columns.tsx +++ b/app/[locale]/(protected)/contributor/task/components/columns.tsx @@ -27,12 +27,12 @@ const useTableColumns = () => { const columns: ColumnDef[] = [ { accessorKey: "no", - header: t("no"), + header: t("no", { defaultValue: "No" }), cell: ({ row }) => {row.getValue("no")}, }, { accessorKey: "title", - header: t("title"), + header: t("title", { defaultValue: "Title" }), cell: ({ row }) => (
{row.getValue("title")} @@ -52,13 +52,13 @@ const useTableColumns = () => { { accessorKey: "uniqueCode", - header: t("code"), + header: t("code", { defaultValue: "Code" }), cell: ({ row }) => {row.getValue("uniqueCode")}, }, { accessorKey: "assignmentMainType", - header: t("type-task"), + header: t("type-task", { defaultValue: "Type Task" }), cell: ({ row }) => { const type = row.getValue("assignmentMainType") as { name: string }; return {type?.name}; @@ -66,7 +66,7 @@ const useTableColumns = () => { }, { accessorKey: "assignmentType", - header: t("category-task"), + header: t("category-task", { defaultValue: "Category Task" }), cell: ({ row }) => { const type = row.getValue("assignmentType") as { name: string }; return {type?.name}; @@ -74,7 +74,7 @@ const useTableColumns = () => { }, { accessorKey: "createdAt", - header: t("upload-date"), + header: t("upload-date", { defaultValue: "Upload Date" }), cell: ({ row }) => { const createdAt = row.getValue("createdAt") as | string @@ -122,7 +122,7 @@ const useTableColumns = () => { { id: "actions", accessorKey: "action", - header: t("action"), + header: t("action", { defaultValue: "Action" }), enableHiding: false, cell: ({ row }) => { const router = useRouter(); diff --git a/app/[locale]/(protected)/contributor/task/components/task-table.tsx b/app/[locale]/(protected)/contributor/task/components/task-table.tsx index fdd7be32..9c49eb99 100644 --- a/app/[locale]/(protected)/contributor/task/components/task-table.tsx +++ b/app/[locale]/(protected)/contributor/task/components/task-table.tsx @@ -211,7 +211,7 @@ const TaskTable = () => { } px-[18px] py-1 transition duration-100 rounded`} > - {t("special-attention")} + {t("special-attention", { defaultValue: "Special Attention" })} { px-[18px] py-1 transition duration-100 rounded `} > - {t("daily-tasks")} + {t("daily-tasks", { defaultValue: "Daily Tasks" })}
@@ -294,7 +294,7 @@ const TaskTable = () => {

Filter

- + { onChange={() => handleStatusCheckboxChange(1)} />
@@ -333,7 +333,7 @@ const TaskTable = () => { onChange={() => handleStatusCheckboxChange(2)} />
diff --git a/app/[locale]/(protected)/contributor/task/page.tsx b/app/[locale]/(protected)/contributor/task/page.tsx index 1b999fed..cca1788a 100644 --- a/app/[locale]/(protected)/contributor/task/page.tsx +++ b/app/[locale]/(protected)/contributor/task/page.tsx @@ -29,13 +29,13 @@ const TaskPage = () => {
- {t("tabel")} {t("task")} + {t("tabel", { defaultValue: "Tabel" })} {t("task", { defaultValue: "Task" })}
diff --git a/app/[locale]/(protected)/dashboard/page.tsx b/app/[locale]/(protected)/dashboard/page.tsx index 29d17565..29ac3426 100644 --- a/app/[locale]/(protected)/dashboard/page.tsx +++ b/app/[locale]/(protected)/dashboard/page.tsx @@ -40,31 +40,31 @@ const DashboardPage = () => { value="routine-task" className="data-[state=active]:bg-primary data-[state=active]:text-primary-foreground rounded-md px-6" > - {t("task-routine")} + {t("task-routine", { defaultValue: "Task Routine" })} - {t("task")} + {t("task", { defaultValue: "Task" })} - {t("schedule")} + {t("schedule", { defaultValue: "Schedule" })} - {t("indeks")} + {t("indeks", { defaultValue: "Indeks" })} - {t("report")} + {t("report", { defaultValue: "Report" })} @@ -75,18 +75,18 @@ const DashboardPage = () => {
{ - {t("Total-Content-Production")} + {t("Total-Content-Production", { defaultValue: "Total Content Production" })} @@ -113,7 +113,7 @@ const DashboardPage = () => {
- {t("tabel")} + {t("tabel", { defaultValue: "Tabel" })} {/* */} diff --git a/app/[locale]/(protected)/dashboard/routine-task/components/most-sales.tsx b/app/[locale]/(protected)/dashboard/routine-task/components/most-sales.tsx index 5036b075..4f9a9ee0 100644 --- a/app/[locale]/(protected)/dashboard/routine-task/components/most-sales.tsx +++ b/app/[locale]/(protected)/dashboard/routine-task/components/most-sales.tsx @@ -44,7 +44,7 @@ const MostSales = () => { return ( - {t("most_sales_map_title")} + {t("most_sales_map_title", { defaultValue: "Most Sales Map Title" })}
{ )} onClick={() => setFilterMap("global")} > - {t("total_earning_map_button_1")} + {t("total_earning_map_button_1", { defaultValue: "Total Earning Map Button 1" })} {

- {t("total_earning_map_desc")} + {t("total_earning_map_desc", { defaultValue: "Total Earning Map Desc" })}

{filterMap === "usa" && (
@@ -90,7 +90,7 @@ const MostSales = () => { )}
+08%{" "} - {t("total_earning_map_desc_2")} + {t("total_earning_map_desc_2", { defaultValue: "Total Earning Map Desc 2" })}
    {sales.map((item, i) => ( diff --git a/app/[locale]/(protected)/dashboard/routine-task/components/recent-activity.tsx b/app/[locale]/(protected)/dashboard/routine-task/components/recent-activity.tsx index e84e526c..ad649f48 100644 --- a/app/[locale]/(protected)/dashboard/routine-task/components/recent-activity.tsx +++ b/app/[locale]/(protected)/dashboard/routine-task/components/recent-activity.tsx @@ -118,25 +118,25 @@ const RecentActivity: React.FC = () => {

    - {counts.images} {t("image")} + {counts.images} {t("image", { defaultValue: "Image" })}

    - {counts.audiovisual} {t("video")} + {counts.audiovisual} {t("video", { defaultValue: "Video" })}

    - {counts.text} {t("text")} + {counts.text} {t("text", { defaultValue: "Text" })}

    - {counts.audio} {t("audio")} + {counts.audio} {t("audio", { defaultValue: "Audio" })}

diff --git a/app/[locale]/(protected)/ecommerce/frontend/counter-button.tsx b/app/[locale]/(protected)/ecommerce/frontend/counter-button.tsx index 7c121e76..76acc734 100644 --- a/app/[locale]/(protected)/ecommerce/frontend/counter-button.tsx +++ b/app/[locale]/(protected)/ecommerce/frontend/counter-button.tsx @@ -31,7 +31,7 @@ const CounterButton = () => { icon="heroicons:shopping-cart" className="w-4 h-4 me-2 text-sm leading-none" /> - {t("add_to_cart")} + {t("add_to_cart", { defaultValue: "Add To Cart" })} )} {show && ( diff --git a/app/[locale]/(protected)/ecommerce/frontend/sidebar.tsx b/app/[locale]/(protected)/ecommerce/frontend/sidebar.tsx index d0f1c04a..0ce86ae6 100644 --- a/app/[locale]/(protected)/ecommerce/frontend/sidebar.tsx +++ b/app/[locale]/(protected)/ecommerce/frontend/sidebar.tsx @@ -29,7 +29,7 @@ const Sidebar = () => {
- {t("categories")} + {t("categories", { defaultValue: "Categories" })}
{categories.map((category, i) => (
{ ))}
- {t("brands")} + {t("brands", { defaultValue: "Brands" })}
{brands.map((brand, i) => (
{
))}
- {t("price")} + {t("price", { defaultValue: "Price" })}
{prices.map((price, i) => (
{
- {t("ratings")} + {t("ratings", { defaultValue: "Ratings" })}
{ratings.map((rating, i) => (
{ const columns: ColumnDef[] = [ { accessorKey: "no", - header: t("no"), + header: t("no", { defaultValue: "No" }), cell: ({ row }) => {row.getValue("no")}, }, { accessorKey: "title", - header: t("question"), + header: t("question", { defaultValue: "Question" }), cell: ({ row }) => ( {row.getValue("title")} ), }, { accessorKey: "commentFromUserName", - header: t("sender"), + header: t("sender", { defaultValue: "Sender" }), cell: ({ row }) => ( {row.getValue("commentFromUserName")} @@ -42,7 +42,7 @@ const useTableColumns = () => { }, { accessorKey: "Type", - header: t("type"), + header: t("type", { defaultValue: "Type" }), cell: ({ row }) => { const type = row.original.type; return {type?.name || "N/A"}; @@ -50,7 +50,7 @@ const useTableColumns = () => { }, { accessorKey: "createdAt", - header: t("time"), + header: t("time", { defaultValue: "Time" }), cell: ({ row }) => { const createdAt = row.getValue("createdAt") as | string @@ -85,7 +85,7 @@ const useTableColumns = () => { { id: "actions", accessorKey: "action", - header: t("action"), + header: t("action", { defaultValue: "Action" }), enableHiding: false, cell: ({ row }) => { const router = useRouter(); diff --git a/app/[locale]/(protected)/shared/communication/escalation/components/columns.tsx b/app/[locale]/(protected)/shared/communication/escalation/components/columns.tsx index a3a32011..c090e2b4 100644 --- a/app/[locale]/(protected)/shared/communication/escalation/components/columns.tsx +++ b/app/[locale]/(protected)/shared/communication/escalation/components/columns.tsx @@ -21,19 +21,19 @@ const useTableColumns = () => { const columns: ColumnDef[] = [ { accessorKey: "no", - header: t("no"), + header: t("no", { defaultValue: "No" }), cell: ({ row }) => {row.getValue("no")}, }, { accessorKey: "title", - header: t("question"), + header: t("question", { defaultValue: "Question" }), cell: ({ row }) => ( {row.getValue("title")} ), }, { accessorKey: "commentFromUserName", - header: t("sender"), + header: t("sender", { defaultValue: "Sender" }), cell: ({ row }) => ( {row.getValue("commentFromUserName")} @@ -42,7 +42,7 @@ const useTableColumns = () => { }, { accessorKey: "type", - header: t("type"), + header: t("type", { defaultValue: "Type" }), cell: ({ row }) => { const type = row.original.type; // Akses properti category return {type?.name || "N/A"}; @@ -50,7 +50,7 @@ const useTableColumns = () => { }, { accessorKey: "createdAt", - header: t("time"), + header: t("time", { defaultValue: "Time" }), cell: ({ row }) => { const createdAt = row.getValue("createdAt") as | string @@ -85,7 +85,7 @@ const useTableColumns = () => { { id: "actions", accessorKey: "action", - header: t("action"), + header: t("action", { defaultValue: "Action" }), enableHiding: false, cell: ({ row }) => { return ( diff --git a/app/[locale]/(protected)/shared/communication/internal/components/columns.tsx b/app/[locale]/(protected)/shared/communication/internal/components/columns.tsx index d6d5c81c..696c8377 100644 --- a/app/[locale]/(protected)/shared/communication/internal/components/columns.tsx +++ b/app/[locale]/(protected)/shared/communication/internal/components/columns.tsx @@ -21,19 +21,19 @@ const useTableColumns = () => { const columns: ColumnDef[] = [ { accessorKey: "no", - header: t("no"), + header: t("no", { defaultValue: "No" }), cell: ({ row }) => {row.getValue("no")}, }, { accessorKey: "title", - header: t("question"), + header: t("question", { defaultValue: "Question" }), cell: ({ row }) => ( {row.getValue("title")} ), }, { accessorKey: "createdBy", - header: t("sender"), + header: t("sender", { defaultValue: "Sender" }), cell: ({ row }) => { const createdBy = row.original.createdBy; // Akses properti category return ( @@ -43,7 +43,7 @@ const useTableColumns = () => { }, { accessorKey: "sendTo", - header: t("sendto"), + header: t("sendto", { defaultValue: "Sendto" }), cell: ({ row }) => { const sendTo = row.original.sendTo; // Akses properti category return {sendTo?.fullname || "N/A"}; @@ -51,7 +51,7 @@ const useTableColumns = () => { }, { accessorKey: "createdAt", - header: t("time"), + header: t("time", { defaultValue: "Time" }), cell: ({ row }) => { const createdAt = row.getValue("createdAt") as | string @@ -68,7 +68,7 @@ const useTableColumns = () => { { id: "actions", accessorKey: "action", - header: t("action"), + header: t("action", { defaultValue: "Action" }), enableHiding: false, cell: ({ row }) => { return ( diff --git a/app/[locale]/(protected)/shared/communication/page.tsx b/app/[locale]/(protected)/shared/communication/page.tsx index ae1ec63a..de241941 100644 --- a/app/[locale]/(protected)/shared/communication/page.tsx +++ b/app/[locale]/(protected)/shared/communication/page.tsx @@ -25,7 +25,7 @@ const CommunicationPage = () => { )} @@ -33,7 +33,7 @@ const CommunicationPage = () => { )} @@ -49,7 +49,7 @@ const CommunicationPage = () => { : "bg-white text-black " }`} > - {t("internal-questions")} + {t("internal-questions", { defaultValue: "Internal Questions" })}
{tab === "Pertanyaan Internal" && } diff --git a/app/[locale]/(protected)/shared/contest/components/columns.tsx b/app/[locale]/(protected)/shared/contest/components/columns.tsx index b62e3a07..405ce153 100644 --- a/app/[locale]/(protected)/shared/contest/components/columns.tsx +++ b/app/[locale]/(protected)/shared/contest/components/columns.tsx @@ -26,7 +26,7 @@ const useTableColumns = () => { const columns: ColumnDef[] = [ { accessorKey: "no", - header: t("no"), + header: t("no", { defaultValue: "No" }), cell: ({ row }) => (
@@ -39,7 +39,7 @@ const useTableColumns = () => { }, { accessorKey: "hastagCode", - header: t("code"), + header: t("code", { defaultValue: "Code" }), cell: ({ row }) => (
@@ -55,7 +55,7 @@ const useTableColumns = () => { }, { accessorKey: "theme", - header: t("title"), + header: t("title", { defaultValue: "Title" }), cell: ({ row }) => (
@@ -68,14 +68,14 @@ const useTableColumns = () => { }, { accessorKey: "duration", - header: t("duration"), + header: t("duration", { defaultValue: "Duration" }), cell: ({ row }) => ( {row.getValue("duration")} ), }, { accessorKey: "targetOutput", - header: t("target-output"), + header: t("target-output", { defaultValue: "Target Output" }), cell: ({ row }) => ( {row.getValue("targetOutput")} @@ -84,7 +84,7 @@ const useTableColumns = () => { }, { accessorKey: "targetParticipantTopLevel", - header: t("target-participant"), + header: t("target-participant", { defaultValue: "Target Participant" }), cell: ({ row }) => ( {row.getValue("targetParticipantTopLevel")} @@ -133,7 +133,7 @@ const useTableColumns = () => { { id: "actions", accessorKey: "action", - header: t("action"), + header: t("action", { defaultValue: "Action" }), enableHiding: false, cell: ({ row }) => { const MySwal = withReactContent(Swal); diff --git a/app/[locale]/(protected)/shared/contest/page.tsx b/app/[locale]/(protected)/shared/contest/page.tsx index 10dcbfbf..fa009c36 100644 --- a/app/[locale]/(protected)/shared/contest/page.tsx +++ b/app/[locale]/(protected)/shared/contest/page.tsx @@ -25,14 +25,14 @@ const ContestPage = () => {
- {t("table")} {t("contest")} + {t("table", { defaultValue: "Table" })} {t("contest", { defaultValue: "Contest" })}
{userLevelId !== 776 && userLevelId !== null && (
diff --git a/app/[locale]/(protected)/shared/curated-content/giat-routine/image/accept-assignment/detail/[id]/page.tsx b/app/[locale]/(protected)/shared/curated-content/giat-routine/image/accept-assignment/detail/[id]/page.tsx index ba706f8b..16439cc2 100644 --- a/app/[locale]/(protected)/shared/curated-content/giat-routine/image/accept-assignment/detail/[id]/page.tsx +++ b/app/[locale]/(protected)/shared/curated-content/giat-routine/image/accept-assignment/detail/[id]/page.tsx @@ -380,17 +380,17 @@ export default function DetailAcceptImage() {

- {t("by")}  + {t("by", { defaultValue: "By" })}  {detail?.uploadedBy?.userLevel?.name}

{/*

-  | {t("updatedOn")} +  | {t("updatedOn", { defaultValue: "Updated On" })} {detail?.updatedAt} WIB  | 

*/}

-  | {t("updatedOn")}  +  | {t("updatedOn", { defaultValue: "Updated On" })}  {formatDateToIndonesian(new Date(detail?.updatedAt))}{" "} {detail?.timezone ? detail?.timezone : "WIB"}   @@ -403,7 +403,7 @@ export default function DetailAcceptImage() {

- {t("creator")} + {t("creator", { defaultValue: "Creator" })} {detail?.creatorName}

diff --git a/app/[locale]/(protected)/shared/curated-content/page.tsx b/app/[locale]/(protected)/shared/curated-content/page.tsx index 4fc82841..b4938af6 100644 --- a/app/[locale]/(protected)/shared/curated-content/page.tsx +++ b/app/[locale]/(protected)/shared/curated-content/page.tsx @@ -35,7 +35,7 @@ const CuratedContentPage = () => {

- {t("content-curation")} + {t("content-curation", { defaultValue: "Content Curation" })}

{

{" "} - Audio {">"} {t("allAudio")} + Audio {">"} {t("allAudio", { defaultValue: "All Audio" })}

|

-

{`${t("thereIs")} ${totalContent} ${t("downloadableAudio")}`}

+

{`${t("thereIs", { defaultValue: "There Is" })} ${totalContent} ${t("downloadableAudio", { defaultValue: "Downloadable Audio" })}`}

{/* Left */} @@ -506,7 +506,7 @@ const FilterPage = () => { htmlFor="search" className="block text-sm font-medium text-gray-700 dark:text-white" > - {t("search")} + {t("search", { defaultValue: "Search" })} { onKeyDown={handleKeyDown} type="text" id="search" - placeholder={t("searchTitle")} + placeholder={t("searchTitle", { defaultValue: "Search Title" })} className="mt-1 w-full text-sm border rounded-md py-2 px-3 focus:ring-red-500 focus:border-red-500" />
setMonthYearFilter(date)} dateFormat="MM | yyyy" - placeholderText={t("selectYear")} + placeholderText={t("selectYear", { defaultValue: "Select Year" })} showMonthYearPicker />
{ onChange={(update) => { setDateRange(update); }} - placeholderText={t("searchDate")} + placeholderText={t("searchDate", { defaultValue: "Search Date" })} onCalendarClose={() => setCalenderState(!calenderState)} />
@@ -568,7 +568,7 @@ const FilterPage = () => {

- {t("categories")} + {t("categories", { defaultValue: "Categories" })}

    {categories?.map((category: any) => ( @@ -707,14 +707,14 @@ const FilterPage = () => {
    -

    {t("sortBy")}

    +

    {t("sortBy", { defaultValue: "Sort By" })}

    diff --git a/app/[locale]/(public)/(polda)/polda/[polda_name]/document/filter/page.tsx b/app/[locale]/(public)/(polda)/polda/[polda_name]/document/filter/page.tsx index 3b484445..de7f4a92 100644 --- a/app/[locale]/(public)/(polda)/polda/[polda_name]/document/filter/page.tsx +++ b/app/[locale]/(public)/(polda)/polda/[polda_name]/document/filter/page.tsx @@ -502,10 +502,10 @@ const FilterPage = () => {

    {" "} - {t("text")} {">"} {t("allText")} + {t("text", { defaultValue: "Text" })} {">"} {t("allText", { defaultValue: "All Text" })}

    |

    -

    {`${t("thereIs")} ${totalContent} ${t("downloadableText")}`}

    +

    {`${t("thereIs", { defaultValue: "There Is" })} ${totalContent} ${t("downloadableText", { defaultValue: "Downloadable Text" })}`}

    {/* Left */} @@ -522,7 +522,7 @@ const FilterPage = () => { htmlFor="search" className="block text-sm font-medium text-gray-700 dark:text-white" > - {t("search")} + {t("search", { defaultValue: "Search" })} { onKeyDown={handleKeyDown} type="text" id="search" - placeholder={t("searchTitle")} + placeholder={t("searchTitle", { defaultValue: "Search Title" })} className="mt-1 w-full border rounded-md py-2 px-3 focus:ring-red-500 focus:border-red-500" />
    setMonthYearFilter(date)} dateFormat="MM | yyyy" - placeholderText={t("selectYear")} + placeholderText={t("selectYear", { defaultValue: "Select Year" })} showMonthYearPicker />
    { onChange={(update) => { setDateRange(update); }} - placeholderText={t("selectDate")} + placeholderText={t("selectDate", { defaultValue: "Select Date" })} onCalendarClose={() => setCalenderState(!calenderState)} />
    @@ -584,7 +584,7 @@ const FilterPage = () => {

    - {t("categories")} + {t("categories", { defaultValue: "Categories" })}

      {categories.map((category: any) => ( @@ -769,14 +769,14 @@ const FilterPage = () => {
      -

      {t("sortBy")}

      +

      {t("sortBy", { defaultValue: "Sort By" })}

      diff --git a/app/[locale]/(public)/(polda)/polda/[polda_name]/image/filter/page.tsx b/app/[locale]/(public)/(polda)/polda/[polda_name]/image/filter/page.tsx index 363729e2..719beedb 100644 --- a/app/[locale]/(public)/(polda)/polda/[polda_name]/image/filter/page.tsx +++ b/app/[locale]/(public)/(polda)/polda/[polda_name]/image/filter/page.tsx @@ -500,13 +500,13 @@ const FilterPage = () => { {/* Header */}
      -

      {t("image")}

      +

      {t("image", { defaultValue: "Image" })}

      {">"}

      - {t("allImage")} + {t("allImage", { defaultValue: "All Image" })}

      |

      -

      {`${t("thereIs")} ${totalContent} ${t("downloadableImage")}`}

      +

      {`${t("thereIs", { defaultValue: "There Is" })} ${totalContent} ${t("downloadableImage", { defaultValue: "Downloadable Image" })}`}

      {/* Left */} @@ -533,7 +533,7 @@ const FilterPage = () => { htmlFor="search" className="block text-sm font-medium text-gray-700 dark:text-white" > - {t("search")} + {t("search", { defaultValue: "Search" })} { onKeyDown={handleKeyDown} type="text" id="search" - placeholder={t("searchTitle")} + placeholder={t("searchTitle", { defaultValue: "Search Title" })} className="mt-1 w-full border rounded-md py-2 px-3 focus:ring-red-500 focus:border-red-500" />
      setMonthYearFilter(date)} dateFormat="MM | yyyy" - placeholderText={t("selectYear")} + placeholderText={t("selectYear", { defaultValue: "Select Year" })} showMonthYearPicker />
      { onChange={(update) => { setDateRange(update); }} - placeholderText={t("selectDate")} + placeholderText={t("selectDate", { defaultValue: "Select Date" })} onCalendarClose={() => setCalenderState(!calenderState)} />
      @@ -595,7 +595,7 @@ const FilterPage = () => {

      - {t("categories")} + {t("categories", { defaultValue: "Categories" })}

        {categories.map((category: any) => ( @@ -753,14 +753,14 @@ const FilterPage = () => {
        -

        {t("sortBy")}

        +

        {t("sortBy", { defaultValue: "Sort By" })}

        diff --git a/app/[locale]/(public)/(polda)/polda/[polda_name]/indeks/detail/[slug]/page.tsx b/app/[locale]/(public)/(polda)/polda/[polda_name]/indeks/detail/[slug]/page.tsx index ef5df705..0f116351 100644 --- a/app/[locale]/(public)/(polda)/polda/[polda_name]/indeks/detail/[slug]/page.tsx +++ b/app/[locale]/(public)/(polda)/polda/[polda_name]/indeks/detail/[slug]/page.tsx @@ -215,11 +215,11 @@ const IndeksDetail = () => {

        - {t("by")}  + {t("by", { defaultValue: "By" })}  {indeksData?.uploaderName} -   |  {t("updatedOn")} {indeksData?.createdAt} WIB +   |  {t("updatedOn", { defaultValue: "Updated On" })} {indeksData?.createdAt} WIB  

        @@ -240,7 +240,7 @@ const IndeksDetail = () => {

        - {t("comment")} + {t("comment", { defaultValue: "Comment" })}

        + +
        diff --git a/app/[locale]/(public)/content-management/download/page.tsx b/app/[locale]/(public)/content-management/download/page.tsx index 978b9d73..763f5385 100644 --- a/app/[locale]/(public)/content-management/download/page.tsx +++ b/app/[locale]/(public)/content-management/download/page.tsx @@ -349,13 +349,13 @@ const Galery = (props: any) => { Saya */} {pathname?.split("/")[1] == "in" ? ( <> - {t("gallery")}  - {t("my")} + {t("gallery", { defaultValue: "Gallery" })}  + {t("my", { defaultValue: "My" })} ) : ( <> - {t("my")}  - {t("gallery")} + {t("my", { defaultValue: "My" })}  + {t("gallery", { defaultValue: "Gallery" })} )} @@ -366,7 +366,7 @@ const Galery = (props: any) => { value="image" className="relative text-xs md:text-xl font-bold text-black dark:text-white dark:bg-transparent before:absolute before:top-full before:left-0 before:h-px before:w-full data-[state=active]:before:bg-primary" > - {t("image")} + {t("image", { defaultValue: "Image" })}
        | @@ -375,7 +375,7 @@ const Galery = (props: any) => { value="video" className="relative text-xs md:text-xl font-bold text-black dark:text-white dark:bg-transparent before:absolute before:top-full before:left-0 before:h-px before:w-full data-[state=active]:before:bg-primary" > - {t("video")} + {t("video", { defaultValue: "Video" })}
        | @@ -384,7 +384,7 @@ const Galery = (props: any) => { value="text" className="relative text-xs md:text-xl font-bold text-black dark:text-white dark:bg-transparent before:absolute before:top-full before:left-0 before:h-px before:w-full data-[state=active]:before:bg-primary" > - {t("text")} + {t("text", { defaultValue: "Text" })}
        | @@ -393,7 +393,7 @@ const Galery = (props: any) => { value="audio" className="relative text-xs md:text-xl font-bold text-black dark:text-white dark:bg-transparent before:absolute before:top-full before:left-0 before:h-px before:w-full data-[state=active]:before:bg-primary" > - {t("audio")} + {t("audio", { defaultValue: "Audio" })} @@ -457,7 +457,7 @@ const Galery = (props: any) => { fontSize={25} />

        - {t("save")}{" "} + {t("save", { defaultValue: "Save" })}{" "}

        { fontSize={20} />

        - {t("share")}{" "} + {t("share", { defaultValue: "Share" })}{" "}

        - {t("shareTo")}{" "} + {t("shareTo", { defaultValue: "Share To" })}{" "}

        - {t("destinationEmail")} + {t("destinationEmail", { defaultValue: "Destination Email" })}

        { } onKeyPress={handleEmailList} type="email" - placeholder={t("shareTo")} + placeholder={t("shareTo", { defaultValue: "Share To" })} />
        @@ -619,16 +619,16 @@ const Galery = (props: any) => {
        -

        {t("shareTo")}

        +

        {t("shareTo", { defaultValue: "Share To" })}

        - {t("destinationEmail")} + {t("destinationEmail", { defaultValue: "Destination Email" })}

        { } onKeyPress={handleEmailList} type="email" - placeholder={t("pressEnter")} + placeholder={t("pressEnter", { defaultValue: "Press Enter" })} />
        @@ -656,7 +656,7 @@ const Galery = (props: any) => { >

        - {t("delete")} + {t("delete", { defaultValue: "Delete" })}

        @@ -732,7 +732,7 @@ const Galery = (props: any) => { fontSize={25} />

        - {t("save")}{" "} + {t("save", { defaultValue: "Save" })}{" "}

        { fontSize={20} />

        - {t("share")}{" "} + {t("share", { defaultValue: "Share" })}{" "}

        - {t("shareTo")}{" "} + {t("shareTo", { defaultValue: "Share To" })}{" "}

        - {t("destinationEmail")} + {t("destinationEmail", { defaultValue: "Destination Email" })}

        { } onKeyPress={handleEmailList} type="email" - placeholder={t("shareTo")} + placeholder={t("shareTo", { defaultValue: "Share To" })} />
        @@ -854,7 +854,7 @@ const Galery = (props: any) => { d="M224 30v256h-64l96 128l96-128h-64V30zM32 434v48h448v-48z" /> - Download {t("document")} + Download {t("document", { defaultValue: "Document" })}
        @@ -878,16 +878,16 @@ const Galery = (props: any) => {
        -

        {t("shareTo")}

        +

        {t("shareTo", { defaultValue: "Share To" })}

        - {t("destinationEmail")} + {t("destinationEmail", { defaultValue: "Destination Email" })}

        { } onKeyPress={handleEmailList} type="email" - placeholder={t("pressEnter")} + placeholder={t("pressEnter", { defaultValue: "Press Enter" })} />
        @@ -915,7 +915,7 @@ const Galery = (props: any) => { >

        - {t("delete")} + {t("delete", { defaultValue: "Delete" })}

        diff --git a/app/[locale]/(public)/content-management/galery/page.tsx b/app/[locale]/(public)/content-management/galery/page.tsx index f261d8c3..750123a7 100644 --- a/app/[locale]/(public)/content-management/galery/page.tsx +++ b/app/[locale]/(public)/content-management/galery/page.tsx @@ -290,7 +290,7 @@ const Galery = (props: any) => {

        - {t("gallery")} + {t("gallery", { defaultValue: "Gallery" })} {profile?.institute?.name}

        @@ -299,28 +299,28 @@ const Galery = (props: any) => { value="image" className="relative text-xs md:text-xl font-bold text-black dark:text-white dark:bg-transparent before:absolute before:top-full before:left-0 before:h-px before:w-full data-[state=active]:before:bg-primary" > - {t("image")} + {t("image", { defaultValue: "Image" })}
        |
        - {t("video")} + {t("video", { defaultValue: "Video" })}
        |
        - {t("text")} + {t("text", { defaultValue: "Text" })}
        |
        - {t("audio")} + {t("audio", { defaultValue: "Audio" })}
        @@ -351,7 +351,7 @@ const Galery = (props: any) => {
        handleSaveWishlist(video?.mediaUpload?.id)} className="cursor-pointer flex flex-row gap-2 hover:text-red-800"> -

        {t("save")}

        +

        {t("save", { defaultValue: "Save" })}

        @@ -362,18 +362,18 @@ const Galery = (props: any) => {
        -

        {t("shareTo")}

        +

        {t("shareTo", { defaultValue: "Share To" })}

        -

        {t("destinationEmail")}

        - setEmailShareInput(event.target.value)} onKeyPress={handleEmailList} type="email" placeholder={t("shareTo")} /> +

        {t("destinationEmail", { defaultValue: "Destination Email" })}

        + setEmailShareInput(event.target.value)} onKeyPress={handleEmailList} type="email" placeholder={t("shareTo", { defaultValue: "Share To" })} />
        @@ -435,7 +435,7 @@ const Galery = (props: any) => {
        handleSaveWishlist(audio?.mediaUpload?.id)} className="cursor-pointer flex flex-row gap-2 hover:text-red-800"> -

        {t("save")}

        +

        {t("save", { defaultValue: "Save" })}

        @@ -446,18 +446,18 @@ const Galery = (props: any) => {
        -

        {t("shareTo")}

        +

        {t("shareTo", { defaultValue: "Share To" })}

        -

        {t("destinationEmail")}

        - setEmailShareInput(event.target.value)} onKeyPress={handleEmailList} type="email" placeholder={t("pressEnter")} /> +

        {t("destinationEmail", { defaultValue: "Destination Email" })}

        + setEmailShareInput(event.target.value)} onKeyPress={handleEmailList} type="email" placeholder={t("pressEnter", { defaultValue: "Press Enter" })} />
        @@ -497,7 +497,7 @@ const Galery = (props: any) => {
        handleSaveWishlist(image?.mediaUpload?.id)} className="cursor-pointer flex flex-row gap-2 hover:text-red-800"> -

        {t("save")}

        +

        {t("save", { defaultValue: "Save" })}

        @@ -508,18 +508,18 @@ const Galery = (props: any) => {
        -

        {t("shareTo")}

        +

        {t("shareTo", { defaultValue: "Share To" })}

        -

        {t("destinationEmail")}

        - setEmailShareInput(event.target.value)} onKeyPress={handleEmailList} type="email" placeholder={t("pressEnter")} /> +

        {t("destinationEmail", { defaultValue: "Destination Email" })}

        + setEmailShareInput(event.target.value)} onKeyPress={handleEmailList} type="email" placeholder={t("pressEnter", { defaultValue: "Press Enter" })} />
        @@ -562,7 +562,7 @@ const Galery = (props: any) => { - Download {t("document")} + Download {t("document", { defaultValue: "Document" })}
        @@ -574,7 +574,7 @@ const Galery = (props: any) => {
        handleSaveWishlist(document?.mediaUpload?.id)} className="cursor-pointer flex flex-row gap-2 hover:text-red-800"> -

        {t("save")}

        +

        {t("save", { defaultValue: "Save" })}

        @@ -585,18 +585,18 @@ const Galery = (props: any) => {
        -

        {t("shareTo")}

        +

        {t("shareTo", { defaultValue: "Share To" })}

        -

        {t("destinationEmail")}

        - setEmailShareInput(event.target.value)} onKeyPress={handleEmailList} type="email" placeholder={t("pressEnter")} /> +

        {t("destinationEmail", { defaultValue: "Destination Email" })}

        + setEmailShareInput(event.target.value)} onKeyPress={handleEmailList} type="email" placeholder={t("pressEnter", { defaultValue: "Press Enter" })} />
        diff --git a/app/[locale]/(public)/content-management/rewrite/create/[id]/page.tsx b/app/[locale]/(public)/content-management/rewrite/create/[id]/page.tsx index 20576035..409e3db6 100644 --- a/app/[locale]/(public)/content-management/rewrite/create/[id]/page.tsx +++ b/app/[locale]/(public)/content-management/rewrite/create/[id]/page.tsx @@ -323,24 +323,24 @@ const page = (props: any) => {
        -
        {t("content")} Rewrite
        +
        {t("content", { defaultValue: "Content" })} Rewrite
        {content && (
        -

        {t("language")}

        +

        {t("language", { defaultValue: "Language" })}

        -

        {t("contextType")}

        +

        {t("contextType", { defaultValue: "Context Type" })}

        -

        {t("writingStyle")}

        +

        {t("writingStyle", { defaultValue: "Writing Style" })}

        -

        {t("articleSize")}

        +

        {t("articleSize", { defaultValue: "Article Size" })}

        { } onKeyPress={handleEmailList} type="email" - placeholder={t("pressEnter")} + placeholder={t("pressEnter", { defaultValue: "Press Enter" })} />
        @@ -349,7 +349,7 @@ const page = () => { fontSize={25} />

        - {t("delete")} + {t("delete", { defaultValue: "Delete" })}

        diff --git a/app/[locale]/(public)/content-management/users/page.tsx b/app/[locale]/(public)/content-management/users/page.tsx index 3342a832..1eb5fd26 100644 --- a/app/[locale]/(public)/content-management/users/page.tsx +++ b/app/[locale]/(public)/content-management/users/page.tsx @@ -120,11 +120,11 @@ const page = () => {

        - {t("team")} + {t("team", { defaultValue: "Team" })} {profile?.institute?.name}

        - {user?.length} {t("teamMembers")} {profile?.institute?.name} + {user?.length} {t("teamMembers", { defaultValue: "Team Members" })} {profile?.institute?.name}

        @@ -164,7 +164,7 @@ const page = () => {
        -

        {t("reasonReport")}

        +

        {t("reasonReport", { defaultValue: "Reason Report" })}