diff --git a/public/locales/en/translations.json b/public/locales/en/translations.json
index 7e92947..cdd4b20 100644
--- a/public/locales/en/translations.json
+++ b/public/locales/en/translations.json
@@ -12,6 +12,34 @@
"English": "English",
"Romanian": "Romanian"
},
+ "Generic": {
+ "Table": {
+ "Body": {
+ "NoMatch": "Sorry, no matching records found"
+ },
+ "Filter": {
+ "All": "All",
+ "Reset": "Reset",
+ "Title": "FILTERS"
+ },
+ "Pagination": {
+ "DisplayRows": "of",
+ "Next": "Next page",
+ "Previous": "Previous page",
+ "RowsPerPage": "Rows per page"
+ },
+ "Toolbar": {
+ "DownloadCsv": "Download CSV",
+ "FilterTable": "Filter table",
+ "Print": "Print",
+ "Search": "Search",
+ "ViewColumns": "View columns"
+ },
+ "ViewColumns": {
+ "Title": "Show columns"
+ }
+ }
+ },
"Menu": {
"Dashboard": "Dashboard",
"Resources": "Resources",
@@ -43,9 +71,14 @@
"Name": "Name",
"Category": "Category",
"Secured": "Secured",
- "CodeContains": "Code contains: {{value}}",
- "NameContains": "Name contains: {{value}}",
- "CategoryChip": "Category: {{value}}",
- "ListTitle": "Resource management"
+ "List": {
+ "Title": "Resource management",
+ "SubTitle": "Resources",
+ "Filters": {
+ "Code": "Code contains: {{value}}",
+ "Name": "Name contains: {{value}}",
+ "Category": "Category: {{value}}"
+ }
+ }
}
}
diff --git a/public/locales/ro/translations.json b/public/locales/ro/translations.json
index c1d7371..50d0a7c 100644
--- a/public/locales/ro/translations.json
+++ b/public/locales/ro/translations.json
@@ -3,6 +3,34 @@
"English": "Engleză",
"Romanian": "Română"
},
+ "Generic": {
+ "Table": {
+ "Body": {
+ "NoMatch": "Ne pare rău, nu s-au găsit înregistrări care se potrivesc"
+ },
+ "Filter": {
+ "All": "Toate",
+ "Reset": "Resetați",
+ "Title": "FILTRE"
+ },
+ "Pagination": {
+ "DisplayRows": "din",
+ "Next": "Pagina următoare",
+ "Previous": "Pagina anterioară",
+ "RowsPerPage": "Rânduri pe pagină"
+ },
+ "Toolbar": {
+ "DownloadCsv": "Descărcați CSV",
+ "FilterTable": "Filtrează tabel",
+ "Print": "Imprimare",
+ "Search": "Căutare",
+ "ViewColumns": "Vizualizați coloanele"
+ },
+ "ViewColumns": {
+ "Title": "Afișați coloanele"
+ }
+ }
+ },
"Menu": {
"Dashboard": "Dashboard",
"Resources": "Resurse",
@@ -28,5 +56,20 @@
"IncorrectCredentials": "Credențiale incorecte.",
"Hello": "Salut, {{username}}",
"AuthenticationDate": "Momentul autentificării"
+ },
+ "Resource": {
+ "Code": "Cod",
+ "Name": "Nume",
+ "Category": "Categorie",
+ "Secured": "Securizat",
+ "List": {
+ "Title": "Managementul resurselor",
+ "SubTitle": "Resurse",
+ "Filters": {
+ "Code": "Codul conține: {{value}}",
+ "Name": "Numele conține: {{value}}",
+ "Category": "Categorie: {{value}}"
+ }
+ }
}
}
diff --git a/src/features/resources/components/ResourcesContainer.js b/src/features/resources/components/ResourcesContainer.js
index 8fb4be9..6cce288 100644
--- a/src/features/resources/components/ResourcesContainer.js
+++ b/src/features/resources/components/ResourcesContainer.js
@@ -73,7 +73,8 @@ const ResourcesContainer = () => {
searchable: true,
sort: true,
customFilterListOptions: {
- render: (v) => (v ? t("Resource.CodeContains", { value: v }) : [])
+ render: (v) =>
+ v ? t("Resource.List.Filters.Code", { value: v }) : []
},
filter: true,
filterType: "textField",
@@ -104,7 +105,8 @@ const ResourcesContainer = () => {
return formattedValue;
},
customFilterListOptions: {
- render: (v) => (v ? t("Resource.NameContains", { value: v }) : [])
+ render: (v) =>
+ v ? t("Resource.List.Filters.Name", { value: v }) : []
},
filter: true,
filterType: "textField",
@@ -127,7 +129,7 @@ const ResourcesContainer = () => {
sort: true,
filter: true,
customFilterListOptions: {
- render: (v) => t("Resource.CategoryChip", { value: v })
+ render: (v) => t("Resource.List.Filters.Category", { value: v })
},
filterType: "dropdown",
filterOptions: {
@@ -233,10 +235,10 @@ const ResourcesContainer = () => {
return (
<>
-
+
{
noMatch: loading ? (
) : (
- "Sorry, no matching records found"
+ <>{t("Generic.Table.Body.NoMatch")}>
)
+ },
+ filter: {
+ all: t("Generic.Table.Filter.All"),
+ reset: t("Generic.Table.Filter.Reset"),
+ title: t("Generic.Table.Filter.Title")
+ },
+ pagination: {
+ displayRows: t("Generic.Table.Pagination.DisplayRows"),
+ next: t("Generic.Table.Pagination.Next"),
+ previous: t("Generic.Table.Pagination.Previous"),
+ rowsPerPage: t("Generic.Table.Pagination.RowsPerPage")
+ },
+ toolbar: {
+ downloadCsv: t("Generic.Table.Toolbar.DownloadCsv"),
+ filterTable: t("Generic.Table.Toolbar.FilterTable"),
+ print: t("Generic.Table.Toolbar.Print"),
+ search: t("Generic.Table.Toolbar.Search"),
+ viewColumns: t("Generic.Table.Toolbar.ViewColumns")
+ },
+ viewColumns: {
+ title: t("Generic.Table.ViewColumns.Title")
}
}
}}