Skip to content

Commit

Permalink
perf(frontend): Add missing key lang "rows_per_page"
Browse files Browse the repository at this point in the history
  • Loading branch information
aXenDeveloper committed Mar 23, 2024
1 parent 45d16a1 commit a5dcce3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
Binary file modified docs/assets/plugins/create_plugin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 4 additions & 2 deletions frontend/components/data-table/data-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,11 @@ export function DataTable<TData extends TDataMin>({
</div>

{pageInfo && (
<div className="flex items-center justify-end px-2 pt-4 gap-4 lg:gap-8">
<div className="flex items-center sm:justify-end justify-center px-2 pt-4 gap-4 lg:gap-8 flex-wrap">
<div className="flex items-center space-x-2">
<p className="text-sm font-medium">Rows per page</p>
<p className="text-sm font-medium">
{t("table.rows_per_page")}
</p>
<Select
value={`${pageSizeValue}`}
onValueChange={value => {
Expand Down
3 changes: 2 additions & 1 deletion frontend/langs/en/core.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
"updated": "Updated",
"version": "Version",
"author": "Author",
"enabled": "Enabled"
"enabled": "Enabled",
"rows_per_page": "Rows per page"
},
"editor": {
"remove_formatting": "Remove Formatting",
Expand Down
3 changes: 2 additions & 1 deletion frontend/langs/pl/core.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@
"updated": "Zaktualizowano",
"version": "Wersja",
"author": "Autor",
"enabled": "Włączony"
"enabled": "Włączony",
"rows_per_page": "Wierszy na stronę"
},
"editor": {
"remove_formatting": "Usuń formatowanie",
Expand Down

0 comments on commit a5dcce3

Please sign in to comment.