From a1ef448e3f73f56f6641f168cc7ba94a2244949f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Ribeiro?= Date: Thu, 11 Apr 2024 11:24:39 -0300 Subject: [PATCH] chore(i18n): add translation for `Reset` in DataTableToolbar --- src/components/DataTable/DataTableToolbar.tsx | 4 ++-- src/locales/en/translation.json | 1 + src/locales/pt-BR/translation.json | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/DataTable/DataTableToolbar.tsx b/src/components/DataTable/DataTableToolbar.tsx index ce30a51..3c04c77 100644 --- a/src/components/DataTable/DataTableToolbar.tsx +++ b/src/components/DataTable/DataTableToolbar.tsx @@ -1,7 +1,7 @@ import { Cross2Icon } from "@radix-ui/react-icons"; import React, { useEffect, useRef } from "react"; -import { useTranslation } from "react-i18next"; +import { Trans, useTranslation } from "react-i18next"; import { Button, Input } from "#/components/ui"; import { DataTableFacetedFilter } from "./DataTableFacetedFilter"; @@ -77,7 +77,7 @@ export function DataTableToolbar({ onClick={() => table.resetColumnFilters()} className="h-8 px-2 lg:px-3" > - Reset + Reset )} diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index a2d4b5c..62be307 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -7,6 +7,7 @@ "Items per page": "Items per page", "Page {{currentPage}} of": "Page {{currentPage}} of", "Search": "Search...", + "Reset": "Reset", "View": "View", "Toggle columns": "Toggle columns", "Something went wrong!": "Something went wrong!", diff --git a/src/locales/pt-BR/translation.json b/src/locales/pt-BR/translation.json index 714e739..0bb8718 100644 --- a/src/locales/pt-BR/translation.json +++ b/src/locales/pt-BR/translation.json @@ -7,6 +7,7 @@ "Items per page": "Itens por página", "Page {{currentPage}} of": "Página {{currentPage}} de", "Search": "Buscar...", + "Reset": "Remover", "View": "Visualizar", "Toggle columns": "Alternar colunas", "Something went wrong!": "Algo deu errado!",