Skip to content

Commit

Permalink
chore(i18n): add translation for Reset in DataTableToolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
ribeirojose committed Apr 11, 2024
1 parent a70aeb9 commit a1ef448
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/DataTable/DataTableToolbar.tsx
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -77,7 +77,7 @@ export function DataTableToolbar({
onClick={() => table.resetColumnFilters()}
className="h-8 px-2 lg:px-3"
>
Reset
<Trans>Reset</Trans>
<Cross2Icon className="ml-2 h-4 w-4" />
</Button>
)}
Expand Down
1 change: 1 addition & 0 deletions src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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!",
Expand Down
1 change: 1 addition & 0 deletions src/locales/pt-BR/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -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!",
Expand Down

0 comments on commit a1ef448

Please sign in to comment.