Translate Name Transaction

This commit is contained in:
AlphaX-Projects 2022-04-21 16:51:43 +02:00
parent a67fdf942e
commit d494827d71
14 changed files with 50 additions and 14 deletions

View File

@ -566,6 +566,8 @@
"transactions": {
"amount": "Menge",
"to": "Zu",
"declined": "Der Benutzer hat die Transaktion abgelehnt!"
"declined": "Der Benutzer hat die Transaktion abgelehnt!",
"namedialog1": "Sie registrieren den folgenden Namen:",
"namedialog2": "Wenn Sie auf Bestätigen drücken, wird der Name registriert!"
}
}

View File

@ -566,6 +566,8 @@
"transactions": {
"amount": "Cantidad",
"to": "A",
"declined": "Usuario rechazó transacción!"
"declined": "Usuario rechazó transacción!",
"namedialog1": "Estás registrando el nombre a continuación:",
"namedialog2": "Al presionar confirmar, el nombre quedará registrado!"
}
}

View File

@ -566,6 +566,8 @@
"transactions": {
"amount": "Montant",
"to": "A",
"declined": "Transaction refusée par lutilisateur!"
"declined": "Transaction refusée par lutilisateur!",
"namedialog1": "Vous enregistrez le nom ci-dessous :",
"namedialog2": "En appuyant sur confirmer, le nom sera enregistré !"
}
}

View File

@ -573,6 +573,8 @@
"transactions": {
"amount": "राशि",
"to": "को",
"declined": "उपयोगकर्ता ने लेन-देन अस्वीकार कर दिया!"
"declined": "उपयोगकर्ता ने लेन-देन अस्वीकार कर दिया!",
"namedialog1": "आप नीचे नाम दर्ज कर रहे हैं:",
"namedialog2": "कन्फर्म दबाते ही नाम दर्ज हो जाएगा !"
}
}

View File

@ -566,6 +566,8 @@
"transactions": {
"amount": "Iznos",
"to": "Prema",
"declined": "Korisnik je odbio transakciju!"
"declined": "Korisnik je odbio transakciju!",
"namedialog1": "Registrirate ime ispod:",
"namedialog2": "Pritiskom na potvrdi ime će biti registrirano!"
}
}

View File

@ -566,6 +566,8 @@
"transactions": {
"amount": "Mennyiség",
"to": "Hoz",
"declined": "Felhasználó elutasította a tranzakciót!"
"declined": "Felhasználó elutasította a tranzakciót!",
"namedialog1": "Ön az alábbi nevet regisztrálja:",
"namedialog2": "A megerősítés megnyomására a név regisztrálásra kerül!"
}
}

View File

@ -566,6 +566,8 @@
"transactions": {
"amount": "Amount",
"to": "To",
"declined": "User declined transaction!"
"declined": "User declined transaction!",
"namedialog1": "You are registering the name below:",
"namedialog2": "On pressing confirm, the name will be registered!"
}
}

View File

@ -566,6 +566,8 @@
"transactions": {
"amount": "Valor",
"to": "Para",
"declined": "Usuário recusou transação!"
"declined": "Usuário recusou transação!",
"namedialog1": "Você está registrando o nome abaixo:",
"namedialog2": "Ao pressionar confirmar, o nome será registrado!"
}
}

View File

@ -566,6 +566,8 @@
"transactions": {
"amount": "Iznos",
"to": "Za",
"declined": "Korisnik je odbio transakciju!"
"declined": "Korisnik je odbio transakciju!",
"namedialog1": "Vi registrujete ime ispod:",
"namedialog2": "Pritiskom na potvrdi ime će biti registrovano!"
}
}

View File

@ -566,6 +566,8 @@
"transactions": {
"amount": "Amount",
"to": "To",
"declined": "User declined transaction!"
"declined": "User declined transaction!",
"namedialog1": "You are registering the name below:",
"namedialog2": "On pressing confirm, the name will be registered!"
}
}

View File

@ -566,6 +566,8 @@
"transactions": {
"amount": "数量",
"to": "收款人",
"declined": "交易已被用戶拒绝!"
"declined": "交易已被用戶拒绝!",
"namedialog1": "You are registering the name below:",
"namedialog2": "On pressing confirm, the name will be registered!"
}
}

View File

@ -566,6 +566,8 @@
"transactions": {
"amount": "數量",
"to": "收款人",
"declined": "交易被用戶拒絕!"
"declined": "交易被用戶拒絕!",
"namedialog1": "You are registering the name below:",
"namedialog2": "On pressing confirm, the name will be registered!"
}
}

View File

@ -10,14 +10,22 @@ export default class RegisterNameTransaction extends TransactionBase {
render(html) {
return html`
You are registering the name below:
${this._dialogyou}
<div style="background: #eee; padding: 8px; margin: 8px 0; border-radius: 5px;">
<span style="color: #000;">${this.nameText}</span>
</div>
On pressing confirm, the name will be registered!
${this._dialogonpress}
`
}
set dialogyou(dialogyou) {
this._dialogyou = dialogyou
}
set dialogonpress(dialogonpress) {
this._dialogonpress = dialogonpress
}
set fee(fee) {
this._fee = fee * QORT_DECIMALS
this._feeBytes = this.constructor.utils.int64ToBytes(this._fee)

View File

@ -359,6 +359,8 @@ class NameRegistration extends LitElement {
// Make Transaction Request
const makeTransactionRequest = async (lastRef) => {
let dialogyou = get("transactions.namedialog1")
let dialogonpress = get("transactions.namedialog2")
let myTxnrequest = await parentEpml.request('transaction', {
type: 3,
nonce: this.selectedAddress.nonce,
@ -367,6 +369,8 @@ class NameRegistration extends LitElement {
name: nameInput,
value: descInput,
lastReference: lastRef,
dialogyou: dialogyou,
dialogonpress: dialogonpress,
}
})
return myTxnrequest