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", "English": "English",
"Romanian": "Romanian" "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": { "Menu": {
"Dashboard": "Dashboard", "Dashboard": "Dashboard",
"Resources": "Resources", "Resources": "Resources",
@ -43,9 +71,14 @@
"Name": "Name", "Name": "Name",
"Category": "Category", "Category": "Category",
"Secured": "Secured", "Secured": "Secured",
"CodeContains": "Code contains: {{value}}", "List": {
"NameContains": "Name contains: {{value}}", "Title": "Resource management",
"CategoryChip": "Category: {{value}}", "SubTitle": "Resources",
"ListTitle": "Resource management" "Filters": {
"Code": "Code contains: {{value}}",
"Name": "Name contains: {{value}}",
"Category": "Category: {{value}}"
}
}
} }
} }

View File

@ -3,6 +3,34 @@
"English": "Engleză", "English": "Engleză",
"Romanian": "Română" "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": { "Menu": {
"Dashboard": "Dashboard", "Dashboard": "Dashboard",
"Resources": "Resurse", "Resources": "Resurse",
@ -28,5 +56,20 @@
"IncorrectCredentials": "Credențiale incorecte.", "IncorrectCredentials": "Credențiale incorecte.",
"Hello": "Salut, {{username}}", "Hello": "Salut, {{username}}",
"AuthenticationDate": "Momentul autentificării" "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, searchable: true,
sort: true, sort: true,
customFilterListOptions: { customFilterListOptions: {
render: (v) => (v ? t("Resource.CodeContains", { value: v }) : []) render: (v) =>
v ? t("Resource.List.Filters.Code", { value: v }) : []
}, },
filter: true, filter: true,
filterType: "textField", filterType: "textField",
@ -104,7 +105,8 @@ const ResourcesContainer = () => {
return formattedValue; return formattedValue;
}, },
customFilterListOptions: { customFilterListOptions: {
render: (v) => (v ? t("Resource.NameContains", { value: v }) : []) render: (v) =>
v ? t("Resource.List.Filters.Name", { value: v }) : []
}, },
filter: true, filter: true,
filterType: "textField", filterType: "textField",
@ -127,7 +129,7 @@ const ResourcesContainer = () => {
sort: true, sort: true,
filter: true, filter: true,
customFilterListOptions: { customFilterListOptions: {
render: (v) => t("Resource.CategoryChip", { value: v }) render: (v) => t("Resource.List.Filters.Category", { value: v })
}, },
filterType: "dropdown", filterType: "dropdown",
filterOptions: { filterOptions: {
@ -233,10 +235,10 @@ const ResourcesContainer = () => {
return ( return (
<> <>
<PageTitle title={t("Resource.ListTitle")} /> <PageTitle title={t("Resource.List.Title")} />
<MUIDataTable <MUIDataTable
title="Resources" title={t("Resource.List.SubTitle")}
columns={columns} columns={columns}
data={state.values} data={state.values}
options={{ options={{
@ -272,8 +274,29 @@ const ResourcesContainer = () => {
noMatch: loading ? ( noMatch: loading ? (
<LoadingText lines={15} /> <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")
} }
} }
}} }}