summaryrefslogtreecommitdiff
path: root/components/data-table/data-table-sort-list.tsx
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-08-04 09:36:14 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-08-04 09:36:14 +0000
commit92eda21e45d902663052575aaa4c4f80bfa2faea (patch)
tree8483702edf82932d4359a597a854fa8e1b48e94b /components/data-table/data-table-sort-list.tsx
parentf0213de0d2fb5fcb931b3ddaddcbb6581cab5d28 (diff)
(대표님) 벤더 문서 변경사항, data-table 변경, sync 변경
Diffstat (limited to 'components/data-table/data-table-sort-list.tsx')
-rw-r--r--components/data-table/data-table-sort-list.tsx8
1 files changed, 7 insertions, 1 deletions
diff --git a/components/data-table/data-table-sort-list.tsx b/components/data-table/data-table-sort-list.tsx
index c752f2f4..21926f34 100644
--- a/components/data-table/data-table-sort-list.tsx
+++ b/components/data-table/data-table-sort-list.tsx
@@ -47,6 +47,8 @@ import {
SortableDragHandle,
SortableItem,
} from "@/components/ui/sortable"
+import { useTranslation } from '@/i18n/client'
+import { useParams, usePathname } from "next/navigation";
interface DataTableSortListProps<TData> {
table: Table<TData>
@@ -63,6 +65,10 @@ export function DataTableSortList<TData>({
}: DataTableSortListProps<TData>) {
renderCount++;
+ const params = useParams();
+ const lng = params?.lng as string;
+ const { t } = useTranslation(lng);
+
const id = React.useId()
const initialSorting = (table.initialState.sorting ??
@@ -186,7 +192,7 @@ export function DataTableSortList<TData>({
<ArrowDownUp className="size-3" aria-hidden="true" />
<span className="hidden sm:inline">
- 정렬
+ {t("tableToolBar.sort")}
</span>
{uniqueSorting.length > 0 && (