Skip to content

Commit

Permalink
add translations
Browse files Browse the repository at this point in the history
  • Loading branch information
KKA11010 committed Apr 3, 2024
1 parent 615261e commit ab30033
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 7 deletions.
3 changes: 2 additions & 1 deletion assets/translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@
"autoSwapSuccess": "Tausch erfolgreich!",
"paidInvoice": "{{ count }} Rechnung wurde mit einem Gesamtbetrag von {{ total }} Sats bezahlt",
"paidInvoices": "{{ count }} Rechnungen wurden mit einem Gesamtbetrag von {{ total }} Sats bezahlt",
"checkPayment": "Zahlung überprüfen"
"checkPayment": "Zahlung überprüfen",
"lnPaymentSpamHint": "Bitte warten Sie {{remainingSeconds}} Sekunden um die Mint zu entlasten."
},
"error": {
"checkSpendableErr": "Fehler beim Überprüfen, ob der Token ausgegeben werden kann",
Expand Down
3 changes: 2 additions & 1 deletion assets/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@
"autoSwapSuccess": "Swap successful!",
"paidInvoice": "{{ count }} invoice has been paid with a total amount of {{ total }} Sats",
"paidInvoices": "{{ count }} invoices have been paid with a total amount of {{ total }} Sats",
"checkPayment": "Check payment"
"checkPayment": "Check payment",
"lnPaymentSpamHint": "Please wait {{remainingSeconds}} seconds to avoid spamming the mint."
},
"error": {
"checkSpendableErr": "Error while checking if token is spendable",
Expand Down
3 changes: 2 additions & 1 deletion assets/translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@
"autoSwapSuccess": "¡Intercambio exitoso!",
"paidInvoice": "Se ha pagado {{ count }} factura con un importe total de {{ total }} Sats",
"paidInvoices": "Se han pagado {{ count }} facturas con un importe total de {{ total }} Sats",
"checkPayment": "Comprobar pago"
"checkPayment": "Comprobar pago",
"lnPaymentSpamHint": "Por favor, espere {{remainingSeconds}} segundos para aliviar la Mint."
},
"error": {
"checkSpendableErr": "Error al comprobar si el token puede ser gastado",
Expand Down
3 changes: 2 additions & 1 deletion assets/translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@
"autoSwapSuccess": "Échange réussi!",
"paidInvoice": "{{ count }} facture a été payée pour un montant total de {{ total }} Sats",
"paidInvoices": "{{ count }} factures ont été payées pour un montant total de {{ total }} Sats",
"checkPayment": "Vérifier le paiement"
"checkPayment": "Vérifier le paiement",
"lnPaymentSpamHint": "Veuillez attendre {{remainingSeconds}} secondes pour soulager la Mint."
},
"error": {
"checkSpendableErr": "Erreur lors de la vérification si le token est dépensable",
Expand Down
3 changes: 2 additions & 1 deletion assets/translations/hu.json
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@
"autoSwapSuccess": "Csere sikeres!",
"paidInvoice": "{{ count }} számla kifizetésre került, összesen {{ total }} Sats összegben",
"paidInvoices": "{{ count }} számla kifizetésre került, összesen {{ total }} Sats összegben",
"checkPayment": "Fizetés ellenőrzése"
"checkPayment": "Fizetés ellenőrzése",
"lnPaymentSpamHint": "Kérjük, várjon {{remainingSeconds}} másodpercet a Mint tehermentesítése érdekében."
},
"error": {
"checkSpendableErr": "Hiba a token elkölthetőségének ellenőrzése közben",
Expand Down
3 changes: 2 additions & 1 deletion assets/translations/sw.json
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@
"autoSwapSuccess": "Kubadilishana kufanikiwa!",
"paidInvoice": "{{ count }} ankara imelipwa kwa jumla ya {{ total }} Sats",
"paidInvoices": "Bilansi ya ankara {{ count }} zimelipwa kwa jumla ya {{ total }} Sats",
"checkPayment": "Angalia malipo"
"checkPayment": "Angalia malipo",
"lnPaymentSpamHint": "Tafadhali subiri {{remainingSeconds}} sekunde ili kupunguza mzigo kwa Mint."
},
"error": {
"checkSpendableErr": "Kumetokea kosa wakati wa kuangalia ikiwa kijenzi kina pesa za kutumiwa",
Expand Down
2 changes: 1 addition & 1 deletion src/context/History.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const useHistory = () => {
const remainingSeconds = Math.ceil((delay - timeSinceLastCall) / 1000)
// restrict usage to 20 seconds
if (timeSinceLastCall < delay) {
return openPromptAutoClose({ msg: `Please wait ${remainingSeconds} seconds to avoid spamming the mint.`, success: false })
return openPromptAutoClose({ msg: t('lnPaymentSpamHint', { remainingSeconds }), success: false })
}
lastCalled.current = now
const invoice = await getInvoiceByPr(pr)
Expand Down

0 comments on commit ab30033

Please sign in to comment.