From 92eda21e45d902663052575aaa4c4f80bfa2faea Mon Sep 17 00:00:00 2001 From: dujinkim Date: Mon, 4 Aug 2025 09:36:14 +0000 Subject: (대표님) 벤더 문서 변경사항, data-table 변경, sync 변경 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/data-table/data-table-filter-list.tsx | 4 ++-- components/data-table/data-table-group-list.tsx | 7 ++++++- components/data-table/data-table-pin-left.tsx | 7 ++++++- components/data-table/data-table-pin-right.tsx | 9 ++++++--- components/data-table/data-table-sort-list.tsx | 8 +++++++- components/data-table/data-table-view-options.tsx | 8 +++++++- 6 files changed, 34 insertions(+), 9 deletions(-) (limited to 'components/data-table') diff --git a/components/data-table/data-table-filter-list.tsx b/components/data-table/data-table-filter-list.tsx index 3efa02ed..6088e912 100644 --- a/components/data-table/data-table-filter-list.tsx +++ b/components/data-table/data-table-filter-list.tsx @@ -580,7 +580,7 @@ export function DataTableFilterList({ {/* 텍스트는 모바일에서 숨기고, sm 이상에서만 보임 */} - {t("Filters")} + {t("tableToolBar.filters")} {filters.length > 0 && ( @@ -603,7 +603,7 @@ export function DataTableFilterList({ )} > {filters.length > 0 ? ( -

{t("Filters")}

+

{t("tableToolBar.filters")}

) : (

{t("nofilters")}

diff --git a/components/data-table/data-table-group-list.tsx b/components/data-table/data-table-group-list.tsx index fcae9a79..213b429f 100644 --- a/components/data-table/data-table-group-list.tsx +++ b/components/data-table/data-table-group-list.tsx @@ -26,6 +26,8 @@ import { SortableItem, SortableDragHandle, } from "@/components/ui/sortable" +import { useTranslation } from '@/i18n/client' +import { useParams, usePathname } from "next/navigation"; interface DataTableGroupListProps { /** TanStack Table 인스턴스 (grouping을 이미 사용할 수 있어야 함) */ @@ -42,6 +44,9 @@ export function DataTableGroupList({ shallow, }: DataTableGroupListProps) { const id = React.useId() + const params = useParams(); + const lng = params?.lng as string; + const { t } = useTranslation(lng); // ------------------------------------------------------ // 1) 초기 그룹핑 상태 + URL Query State 동기화 @@ -156,7 +161,7 @@ export function DataTableGroupList({ aria-controls={`${id}-group-dialog`} >