translations

master
Tudor Stanciu 2022-12-11 19:55:05 +02:00
parent 94839a746b
commit 000faf1b7d
3 changed files with 109 additions and 10 deletions

View File

@ -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}}"
}
}
}
}

View File

@ -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}}"
}
}
}
}

View File

@ -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 (
<>
<PageTitle title={t("Resource.ListTitle")} />
<PageTitle title={t("Resource.List.Title")} />
<MUIDataTable
title="Resources"
title={t("Resource.List.SubTitle")}
columns={columns}
data={state.values}
options={{
@ -272,8 +274,29 @@ const ResourcesContainer = () => {
noMatch: loading ? (
<LoadingText lines={15} />
) : (
"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")
}
}
}}