Add book datagrid locale strings

This commit is contained in:
Reckless_Satoshi 2022-07-17 07:13:07 -07:00
parent cd8fc15a60
commit fe62a30a5c
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
3 changed files with 168 additions and 3 deletions

View File

@ -75,11 +75,65 @@ class BookPage extends Component {
}
}
dataGridLocaleText=()=> {
const { t } = this.props;
return {
MuiTablePagination:{labelRowsPerPage:t('Orders per page:')},
noRowsLabel:t('No rows'),
noResultsOverlayLabel:t('No results found.'),
errorOverlayDefaultLabel:t('An error occurred.'),
toolbarColumns:t('Columns'),
toolbarColumnsLabel:t('Select columns'),
columnsPanelTextFieldLabel:t('Find column'),
columnsPanelTextFieldPlaceholder:t('Column title'),
columnsPanelDragIconLabel:t('Reorder column'),
columnsPanelShowAllButton:t('Show all'),
columnsPanelHideAllButton:t('Hide all'),
filterPanelAddFilter:t('Add filter'),
filterPanelDeleteIconLabel:t('Delete'),
filterPanelLinkOperator:t('Logic operator'),
filterPanelOperators:t('Operator'), // TODO v6: rename to filterPanelOperator
filterPanelOperatorAnd:t('And'),
filterPanelOperatorOr:t('Or'),
filterPanelColumns:t('Columns'),
filterPanelInputLabel:t('Value'),
filterPanelInputPlaceholder:t('Filter value'),
filterOperatorContains:t('contains'),
filterOperatorEquals:t('equals'),
filterOperatorStartsWith:t('starts with'),
filterOperatorEndsWith:t('ends with'),
filterOperatorIs:t('is'),
filterOperatorNot:t('is not'),
filterOperatorAfter:t('is after'),
filterOperatorOnOrAfter:t('is on or after'),
filterOperatorBefore:t('is before'),
filterOperatorOnOrBefore:t('is on or before'),
filterOperatorIsEmpty:t('is empty'),
filterOperatorIsNotEmpty:t('is not empty'),
filterOperatorIsAnyOf:t('is any of'),
filterValueAny:t('any'),
filterValueTrue:t('true'),
filterValueFalse:t('false'),
columnMenuLabel:t('Menu'),
columnMenuShowColumns:t('Show columns'),
columnMenuFilter:t('Filter'),
columnMenuHideColumn:t('Hide'),
columnMenuUnsort:t('Unsort'),
columnMenuSortAsc:t('Sort by ASC'),
columnMenuSortDesc:t('Sort by DESC'),
columnHeaderFiltersLabel:t('Show filters'),
columnHeaderSortIconLabel:t('Sort'),
booleanCellTrueLabel:t('yes'),
booleanCellFalseLabel:t('no'),
}
}
bookListTableDesktop=()=>{
const { t } = this.props;
return (
<div style={{ height: 422, width: '100%' }}>
<div style={{ height: 422, width:'100%'}}>
<DataGrid
localeText={this.dataGridLocaleText()}
rows={
this.props.bookOrders.filter(order => order.type == this.props.type || this.props.type == 2)
.filter(order => order.currency == this.props.currency || this.props.currency == 0)
@ -180,6 +234,7 @@ class BookPage extends Component {
return (
<div style={{ height: 422, width: '100%' }}>
<DataGrid
localeText={this.dataGridLocaleText()}
loading={this.props.bookLoading}
rows={
this.props.bookOrders.filter(order => order.type == this.props.type || this.props.type == 2)

View File

@ -119,6 +119,51 @@
"No orders found to buy BTC for {{currencyCode}}":"No orders found to buy BTC for {{currencyCode}}",
"Filter has no results":"Filter has no results",
"Be the first one to create an order":"Be the first one to create an order",
"Orders per page:":"Orders per page:",
"No rows":"No rows",
"No results found.":"No results found.",
"An error occurred.":"An error occurred.",
"Columns":"Columns",
"Select columns":"Select columns",
"Find column":"Find column",
"Column title":"Column title",
"Reorder column":"Reorder column",
"Show all":"Show all",
"Hide all":"Hide all",
"Add filter":"Add filter",
"Delete":"Delete",
"Logic operator":"Logic operator",
"Operator":"Operator",
"And":"And",
"Or":"Or",
"Value":"Value",
"Filter value":"Filter value",
"contains":"contains",
"equals":"equals",
"starts with":"starts with",
"ends with":"ends with",
"is":"is",
"is not":"is not",
"is after":"is after",
"is on or after":"is on or after",
"is before":"is before",
"is on or before":"is on or before",
"is empty":"is empty",
"is not empty":"is not empty",
"is any of":"is any of",
"any":"any",
"true":"true",
"false":"false",
"Menu":"Menu",
"Show columns":"Show columns",
"Filter":"Filter",
"Unsort":"Unsort",
"Sort by ASC":"Sort by ASC",
"Sort by DESC":"Sort by DESC",
"Sort":"Sort",
"Show filters":"Show filters",
"yes":"yes",
"no":"no",
"BOTTOM BAR AND MISC - BottomBar.js":"Bottom Bar user profile and miscellaneous dialogs",
@ -405,6 +450,27 @@
"Lightning":"Lightning",
"Onchain":"Onchain",
"open_dispute":"To open a dispute you need to wait <1><1/>",
"Trade Summary":"Trade Summary",
"Maker":"Maker",
"Taker":"Taker",
"User role":"User role",
"Sent":"Sent",
"Received":"Received",
"BTC received":"BTC received",
"BTC sent":"BTC sent",
"{{tradeFeeSats}} Sats ({{tradeFeePercent}}%)":"{{tradeFeeSats}} Sats ({{tradeFeePercent}}%)",
"Trade fee":"Trade fee",
"{{swapFeeSats}} Sats ({{swapFeePercent}}%)":"{{swapFeeSats}} Sats ({{swapFeePercent}}%)",
"Onchain swap fee":"Onchain swap fee",
"{{miningFeeSats}} Sats":"{{miningFeeSats}} Sats",
"{{bondSats}} Sats ({{bondPercent}}%)":"{{bondSats}} Sats ({{bondPercent}}%)",
"Maker bond":"Maker bond",
"Taker bond":"Taker bond",
"Unlocked":"Unlocked",
"{{revenueSats}} Sats":"{{revenueSats}} Sats",
"Platform trade revenue":"Platform trade revenue",
"{{routingFeeSats}} MiliSats":"{{routingFeeSats}} MiliSats",
"Platform covered routing fee":"Platform covered routing fee",
"INFO DIALOG - InfoDiagog.js":"App information and clarifications and terms of use",

View File

@ -120,7 +120,51 @@
"No orders found to buy BTC for {{currencyCode}}": "No hay órdenes para comprar bitcoin por {{currencyCode}}",
"Filter has no results":"No hay resultados para este filtro",
"Be the first one to create an order":"Sé el primero en crear una orden",
"Orders per page:":"Órdenes por vista:",
"No rows":"No hay filas",
"No results found.":"No se encontraron resultados.",
"An error occurred.":"Hubo un error.",
"Columns":"Columnas",
"Select columns":"Selecciona columnas",
"Find column":"Buscar columna",
"Column title":"Nombre de columna",
"Reorder column":"Reordenar columnas",
"Show all":"Mostrar todas",
"Hide all":"Ocultar todas",
"Add filter":"Añadir filtro",
"Delete":"Eliminar",
"Logic operator":"Operador lógico",
"Operator":"Operador",
"And":"Y",
"Or":"O",
"Value":"Valor",
"Filter value":"Filtrar valor",
"contains":"contiene",
"equals":"igual a",
"starts with":"empieza con",
"ends with":"termina con",
"is":"es",
"is not":"no es",
"is after":"está detrás",
"is on or after":"está en o detrás",
"is before":"está delante",
"is on or before":"está en o delante",
"is empty":"está vacio",
"is not empty":"no está vacio",
"is any of":"es alguno de",
"any":"alguno",
"true":"verdad",
"false":"falso",
"Menu":"Menu",
"Show columns":"Mostrar columnas",
"Filter":"Filtrar",
"Unsort":"Desordenar",
"Sort by ASC":"Ordenar ascendente",
"Sort by DESC":"Ordenar descendente",
"Sort":"Ordenar",
"Show filters":"Mostrar filtros",
"yes":"si",
"no":"no",
"BOTTOM BAR AND MISC - BottomBar.js":"Bottom Bar user profile and miscellaneous dialogs",
"Stats For Nerds":"Estadísticas para nerds",