Localize invalid invoice messages

This commit is contained in:
Reckless_Satoshi 2022-05-26 17:26:29 -07:00
parent d24e01f1f5
commit 9c0b07147b
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
3 changed files with 11 additions and 9 deletions

View File

@ -618,7 +618,7 @@ class TradeBox extends Component {
<Grid item xs={12} align="center">
<TextField
error={this.state.badInvoice}
helperText={this.state.badInvoice ? this.state.badInvoice : "" }
helperText={this.state.badInvoice ? t(this.state.badInvoice) : "" }
label={t("Payout Lightning Invoice")}
required
value={this.state.invoice}
@ -1204,7 +1204,7 @@ handleRatingRobosatsChange=(e)=>{
<Grid item xs={12} align="center">
<TextField
error={this.state.badInvoice}
helperText={this.state.badInvoice ? this.state.badInvoice : "" }
helperText={this.state.badInvoice ? t(this.state.badInvoice) : "" }
label={t("Payout Lightning Invoice")}
required
inputProps={{

View File

@ -281,12 +281,6 @@
"Messages":"Messages",
"CONTRACT BOX - TradeBox.js": "The Contract Box that guides users trough the whole trade pipeline",
"Contract Box":"Contract Box",
"Robots show commitment to their peers": "Robots show commitment to their peers",
@ -388,6 +382,10 @@
"A non-recoverable error has occurred.":"A non-recoverable error has occurred.",
"Payment details are incorrect (unknown hash, invalid amount or invalid final CLTV delta).":"Payment details are incorrect (unknown hash, invalid amount or invalid final CLTV delta).",
"Insufficient unlocked balance in RoboSats' node.":"Insufficient unlocked balance in RoboSats' node.",
"The invoice submitted only has expensive routing hints, you are using an incompatible wallet (probably Muun?). Check the wallet compatibility guide at wallets.robosats.com":"The invoice submitted only has expensive routing hints, you are using an incompatible wallet (probably Muun?). Check the wallet compatibility guide at wallets.robosats.com",
"The invoice provided has no explicit amount":"The invoice provided has no explicit amount",
"Does not look like a valid lightning invoice":"Does not look like a valid lightning invoice",
"The invoice provided has already expired":"The invoice provided has already expired",
"INFO DIALOG - InfoDiagog.js":"App information and clarifications and terms of use",

View File

@ -380,6 +380,10 @@
"A non-recoverable error has occurred.":"A non-recoverable error has occurred.",
"Payment details are incorrect (unknown hash, invalid amount or invalid final CLTV delta).":"Los detalles del pago son incorrectos (hash desconocido, cantidad inválida o CLTV delta final inválido).",
"Insufficient unlocked balance in RoboSats' node.":"Balance libre de ser usado en el nodo de RoboSats insuficiente.",
"The invoice submitted only has expensive routing hints, you are using an incompatible wallet (probably Muun?). Check the wallet compatibility guide at wallets.robosats.com":"La factura entregada parece solo tener rutas ocultas muy caras, estas usando una billetera incomptable(¿Quizás Muun?). Echa un vistazo a la lista de billeteras compatibles en wallets.robosats.com",
"The invoice provided has no explicit amount":"La factura entregada no contiene una cantidad explícita",
"Does not look like a valid lightning invoice":"No parece ser una factura lightning válida",
"The invoice provided has already expired":"La factura que has entregado ya ha caducado",
"INFO DIALOG - InfoDiagog.js": "App information and clarifications and terms of use",