Add maker summary to collected phrases

This commit is contained in:
Reckless_Satoshi 2023-05-02 03:54:18 -07:00
parent 8035f67515
commit 0477885998
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
17 changed files with 124 additions and 4 deletions

View File

@ -428,10 +428,16 @@ const MakerForm = ({
color={disableSubmit ? 'text.secondary' : 'text.primary'}
>
{fav.type == null
? t(fav.mode === 'fiat' ? 'Order for ' : 'Swap of ')
? fav.mode === 'fiat'
? t('Order for ')
: t('Swap of ')
: fav.type == 1
? t(fav.mode === 'fiat' ? 'Buy BTC for ' : 'Swap into LN ')
: t(fav.mode === 'fiat' ? 'Sell BTC for ' : 'Swap out of LN ')}
? fav.mode === 'fiat'
? t('Buy BTC for ')
: t('Swap into LN ')
: fav.mode === 'fiat'
? t('Sell BTC for ')
: t('Swap out of LN ')}
{fav.mode === 'fiat'
? amountToString(maker.amount, maker.advancedOptions, maker.minAmount, maker.maxAmount)
: amountToString(
@ -444,7 +450,9 @@ const MakerForm = ({
{maker.isExplicit
? t(' of {{satoshis}} Satoshis', { satoshis: pn(maker.satoshis) })
: maker.premium == 0
? t(fav.mode === 'fiat' ? ' at market price' : '')
? fav.mode === 'fiat'
? t(' at market price')
: ''
: maker.premium > 0
? t(' at a {{premium}}% premium', { premium: maker.premium })
: t(' at a {{discount}}% discount', { discount: -maker.premium })}

View File

@ -270,7 +270,14 @@
"You receive approx {{swapSats}} LN Sats (fees might vary)": "Reps aprox. {{swapSats}} LN Sats (les taxes poden variar)",
"Onchain amount to receive (BTC)": "Quantitat a rebre Onchain (BTC)",
"You send approx {{swapSats}} LN Sats (fees might vary)": "Envies aprox. {{swapSats}} LN Sats (les taxes poden variar)",
"Order for ": "Order for ",
"Swap of ": "Swap of ",
"Buy BTC for ": "Buy BTC for ",
"Swap into LN ": "Swap into LN ",
"Sell BTC for ": "Sell BTC for ",
"Swap out of LN ": "Swap out of LN ",
" of {{satoshis}} Satoshis": " de {{satoshis}} Sats",
" at market price": " at market price",
" at a {{premium}}% premium": " amb una prima del {{premium}}%",
" at a {{discount}}% discount": " amb descompte del {{discount}}%",
"Clear form": "Esborrar camps",

View File

@ -270,7 +270,14 @@
"You receive approx {{swapSats}} LN Sats (fees might vary)": "You receive approx {{swapSats}} LN Sats (fees might vary)",
"Onchain amount to receive (BTC)": "Onchain amount to receive (BTC)",
"You send approx {{swapSats}} LN Sats (fees might vary)": "You send approx {{swapSats}} LN Sats (fees might vary)",
"Order for ": "Order for ",
"Swap of ": "Swap of ",
"Buy BTC for ": "Buy BTC for ",
"Swap into LN ": "Swap into LN ",
"Sell BTC for ": "Sell BTC for ",
"Swap out of LN ": "Swap out of LN ",
" of {{satoshis}} Satoshis": " {{satoshis}} Satoshi",
" at market price": " at market price",
" at a {{premium}}% premium": " za {{premium}}% přirážku",
" at a {{discount}}% discount": " za {{discount}}% slevu",
"Clear form": "Clear form",

View File

@ -270,7 +270,14 @@
"You receive approx {{swapSats}} LN Sats (fees might vary)": "You receive approx {{swapSats}} LN Sats (fees might vary)",
"Onchain amount to receive (BTC)": "Onchain amount to receive (BTC)",
"You send approx {{swapSats}} LN Sats (fees might vary)": "You send approx {{swapSats}} LN Sats (fees might vary)",
"Order for ": "Order for ",
"Swap of ": "Swap of ",
"Buy BTC for ": "Buy BTC for ",
"Swap into LN ": "Swap into LN ",
"Sell BTC for ": "Sell BTC for ",
"Swap out of LN ": "Swap out of LN ",
" of {{satoshis}} Satoshis": " für {{satoshis}} Satoshis",
" at market price": " at market price",
" at a {{premium}}% premium": " mit einem {{premium}}% Aufschlag",
" at a {{discount}}% discount": " mit einem {{discount}}% Rabatt",
"Clear form": "Clear form",

View File

@ -270,7 +270,14 @@
"You receive approx {{swapSats}} LN Sats (fees might vary)": "You receive approx {{swapSats}} LN Sats (fees might vary)",
"Onchain amount to receive (BTC)": "Onchain amount to receive (BTC)",
"You send approx {{swapSats}} LN Sats (fees might vary)": "You send approx {{swapSats}} LN Sats (fees might vary)",
"Order for ": "Order for ",
"Swap of ": "Swap of ",
"Buy BTC for ": "Buy BTC for ",
"Swap into LN ": "Swap into LN ",
"Sell BTC for ": "Sell BTC for ",
"Swap out of LN ": "Swap out of LN ",
" of {{satoshis}} Satoshis": " of {{satoshis}} Satoshis",
" at market price": " at market price",
" at a {{premium}}% premium": " at a {{premium}}% premium",
" at a {{discount}}% discount": " at a {{discount}}% discount",
"Clear form": "Clear form",

View File

@ -270,7 +270,14 @@
"You receive approx {{swapSats}} LN Sats (fees might vary)": "Recibes aproximadamente {{swapSats}} LN Sats (la comisión puede variar)",
"Onchain amount to receive (BTC)": "Cantidad onchain a recibir (BTC)",
"You send approx {{swapSats}} LN Sats (fees might vary)": "Envías aproximadamente {{swapSats}} LN Sats (la comisión puede variar)",
"Order for ": "Orden por ",
"Swap of ": "Swap de ",
"Buy BTC for ": "Comprar BTC por ",
"Swap into LN ": "Swap hacia LN ",
"Sell BTC for ": "Vender BTC por ",
"Swap out of LN ": "Swap fuera de LN ",
" of {{satoshis}} Satoshis": " de {{satoshis}} Sats",
" at market price": " a precio de mercado",
" at a {{premium}}% premium": " con una prima del {{premium}}%",
" at a {{discount}}% discount": " con descuento del {{discount}}%",
"Clear form": "Borrar campos",

View File

@ -270,7 +270,14 @@
"You receive approx {{swapSats}} LN Sats (fees might vary)": "You receive approx {{swapSats}} LN Sats (fees might vary)",
"Onchain amount to receive (BTC)": "Onchain amount to receive (BTC)",
"You send approx {{swapSats}} LN Sats (fees might vary)": "You send approx {{swapSats}} LN Sats (fees might vary)",
"Order for ": "Order for ",
"Swap of ": "Swap of ",
"Buy BTC for ": "Buy BTC for ",
"Swap into LN ": "Swap into LN ",
"Sell BTC for ": "Sell BTC for ",
"Swap out of LN ": "Swap out of LN ",
" of {{satoshis}} Satoshis": " {{satoshis}} Satoshirentzat",
" at market price": " at market price",
" at a {{premium}}% premium": " %{{premium}}-ko primarekin",
" at a {{discount}}% discount": " %{{discount}}-ko deskontuarekin",
"Clear form": "Clear form",

View File

@ -270,7 +270,14 @@
"You receive approx {{swapSats}} LN Sats (fees might vary)": "You receive approx {{swapSats}} LN Sats (fees might vary)",
"Onchain amount to receive (BTC)": "Onchain amount to receive (BTC)",
"You send approx {{swapSats}} LN Sats (fees might vary)": "You send approx {{swapSats}} LN Sats (fees might vary)",
"Order for ": "Order for ",
"Swap of ": "Swap of ",
"Buy BTC for ": "Buy BTC for ",
"Swap into LN ": "Swap into LN ",
"Sell BTC for ": "Sell BTC for ",
"Swap out of LN ": "Swap out of LN ",
" of {{satoshis}} Satoshis": " de {{satoshis}} Satoshis",
" at market price": " at market price",
" at a {{premium}}% premium": " à une prime de {{premium}}%",
" at a {{discount}}% discount": " à une remise de {{discount}}%",
"Clear form": "Clear form",

View File

@ -270,7 +270,14 @@
"You receive approx {{swapSats}} LN Sats (fees might vary)": "You receive approx {{swapSats}} LN Sats (fees might vary)",
"Onchain amount to receive (BTC)": "Onchain amount to receive (BTC)",
"You send approx {{swapSats}} LN Sats (fees might vary)": "You send approx {{swapSats}} LN Sats (fees might vary)",
"Order for ": "Order for ",
"Swap of ": "Swap of ",
"Buy BTC for ": "Buy BTC for ",
"Swap into LN ": "Swap into LN ",
"Sell BTC for ": "Sell BTC for ",
"Swap out of LN ": "Swap out of LN ",
" of {{satoshis}} Satoshis": " di {{satoshis}} Sats",
" at market price": " at market price",
" at a {{premium}}% premium": " con un premio del {{premium}}%",
" at a {{discount}}% discount": " con uno sconto del {{discount}}%",
"Clear form": "Clear form",

View File

@ -270,7 +270,14 @@
"You receive approx {{swapSats}} LN Sats (fees might vary)": "約{{swapSats}} ライトニングSatsを受け取ります手数料は異なる場合があります",
"Onchain amount to receive (BTC)": "受信するオンチェーン量BTC",
"You send approx {{swapSats}} LN Sats (fees might vary)": "約{{swapSats}} ライトニングSatsを送信します手数料は異なる場合があります",
"Order for ": "Order for ",
"Swap of ": "Swap of ",
"Buy BTC for ": "Buy BTC for ",
"Swap into LN ": "Swap into LN ",
"Sell BTC for ": "Sell BTC for ",
"Swap out of LN ": "Swap out of LN ",
" of {{satoshis}} Satoshis": "{{satoshis}}のうち",
" at market price": " at market price",
" at a {{premium}}% premium": "{{premium}}%のプレミアムで",
" at a {{discount}}% discount": "{{discount}}%のディスカウントで",
"Clear form": "フォームをクリア",

View File

@ -270,7 +270,14 @@
"You receive approx {{swapSats}} LN Sats (fees might vary)": "You receive approx {{swapSats}} LN Sats (fees might vary)",
"Onchain amount to receive (BTC)": "Onchain amount to receive (BTC)",
"You send approx {{swapSats}} LN Sats (fees might vary)": "You send approx {{swapSats}} LN Sats (fees might vary)",
"Order for ": "Order for ",
"Swap of ": "Swap of ",
"Buy BTC for ": "Buy BTC for ",
"Swap into LN ": "Swap into LN ",
"Sell BTC for ": "Sell BTC for ",
"Swap out of LN ": "Swap out of LN ",
" of {{satoshis}} Satoshis": " z {{satoshis}} Satoshis",
" at market price": " at market price",
" at a {{premium}}% premium": " o godz {{premium}}% premia",
" at a {{discount}}% discount": " o godz {{discount}}% zniżka",
"Clear form": "Clear form",

View File

@ -270,7 +270,14 @@
"You receive approx {{swapSats}} LN Sats (fees might vary)": "You receive approx {{swapSats}} LN Sats (fees might vary)",
"Onchain amount to receive (BTC)": "Onchain amount to receive (BTC)",
"You send approx {{swapSats}} LN Sats (fees might vary)": "You send approx {{swapSats}} LN Sats (fees might vary)",
"Order for ": "Order for ",
"Swap of ": "Swap of ",
"Buy BTC for ": "Buy BTC for ",
"Swap into LN ": "Swap into LN ",
"Sell BTC for ": "Sell BTC for ",
"Swap out of LN ": "Swap out of LN ",
" of {{satoshis}} Satoshis": " de {{satoshis}} Satoshis",
" at market price": " at market price",
" at a {{premium}}% premium": " com um prêmio de {{premium}}%",
" at a {{discount}}% discount": " com um desconto de {{discount}}%",
"Clear form": "Clear form",

View File

@ -270,7 +270,14 @@
"You receive approx {{swapSats}} LN Sats (fees might vary)": "You receive approx {{swapSats}} LN Sats (fees might vary)",
"Onchain amount to receive (BTC)": "Onchain amount to receive (BTC)",
"You send approx {{swapSats}} LN Sats (fees might vary)": "You send approx {{swapSats}} LN Sats (fees might vary)",
"Order for ": "Order for ",
"Swap of ": "Swap of ",
"Buy BTC for ": "Buy BTC for ",
"Swap into LN ": "Swap into LN ",
"Sell BTC for ": "Sell BTC for ",
"Swap out of LN ": "Swap out of LN ",
" of {{satoshis}} Satoshis": " {{satoshis}} Сатоши",
" at market price": " at market price",
" at a {{premium}}% premium": " с наценкой {{premium}}%",
" at a {{discount}}% discount": " со скидкой {{discount}}%",
"Clear form": "Clear form",

View File

@ -270,7 +270,14 @@
"You receive approx {{swapSats}} LN Sats (fees might vary)": "You receive approx {{swapSats}} LN Sats (fees might vary)",
"Onchain amount to receive (BTC)": "Onchain amount to receive (BTC)",
"You send approx {{swapSats}} LN Sats (fees might vary)": "You send approx {{swapSats}} LN Sats (fees might vary)",
"Order for ": "Order for ",
"Swap of ": "Swap of ",
"Buy BTC for ": "Buy BTC for ",
"Swap into LN ": "Swap into LN ",
"Sell BTC for ": "Sell BTC for ",
"Swap out of LN ": "Swap out of LN ",
" of {{satoshis}} Satoshis": " för {{satoshis}} sats",
" at market price": " at market price",
" at a {{premium}}% premium": " med en premium på {{premium}}%",
" at a {{discount}}% discount": " med en rabatt på {{discount}}%",
"Clear form": "Clear form",

View File

@ -270,7 +270,14 @@
"You receive approx {{swapSats}} LN Sats (fees might vary)": "You receive approx {{swapSats}} LN Sats (fees might vary)",
"Onchain amount to receive (BTC)": "Onchain amount to receive (BTC)",
"You send approx {{swapSats}} LN Sats (fees might vary)": "You send approx {{swapSats}} LN Sats (fees might vary)",
"Order for ": "Order for ",
"Swap of ": "Swap of ",
"Buy BTC for ": "Buy BTC for ",
"Swap into LN ": "Swap into LN ",
"Sell BTC for ": "Sell BTC for ",
"Swap out of LN ": "Swap out of LN ",
" of {{satoshis}} Satoshis": " เป็น Satoshis จำนวน {{satoshis}} Sats",
" at market price": " at market price",
" at a {{premium}}% premium": " ในราคาแพงกว่าตลาด {{premium}}% ",
" at a {{discount}}% discount": " ในราคาถูกกว่าตลาด {{discount}}% ",
"Clear form": "Clear form",

View File

@ -270,7 +270,14 @@
"You receive approx {{swapSats}} LN Sats (fees might vary)": "你将接收大约{{swapSats}}闪电聪(费用会造成有所差异)",
"Onchain amount to receive (BTC)": "链上接收金额BTC",
"You send approx {{swapSats}} LN Sats (fees might vary)": "你将发送大约{{swapSats}}闪电聪(费用会造成有所差异)",
"Order for ": "Order for ",
"Swap of ": "Swap of ",
"Buy BTC for ": "Buy BTC for ",
"Swap into LN ": "Swap into LN ",
"Sell BTC for ": "Sell BTC for ",
"Swap out of LN ": "Swap out of LN ",
" of {{satoshis}} Satoshis": "{{satoshis}} 聪",
" at market price": " at market price",
" at a {{premium}}% premium": " 于 {{premium}}% 溢价",
" at a {{discount}}% discount": " 于 {{discount}}% 折扣",
"Clear form": "清除表单",

View File

@ -270,7 +270,14 @@
"You receive approx {{swapSats}} LN Sats (fees might vary)": "你將接收大約{{swapSats}}閃電聰(費用會造成有所差異)",
"Onchain amount to receive (BTC)": "鏈上接收金額BTC",
"You send approx {{swapSats}} LN Sats (fees might vary)": "你將發送大約{{swapSats}}閃電聰(費用會造成有所差異)",
"Order for ": "Order for ",
"Swap of ": "Swap of ",
"Buy BTC for ": "Buy BTC for ",
"Swap into LN ": "Swap into LN ",
"Sell BTC for ": "Sell BTC for ",
"Swap out of LN ": "Swap out of LN ",
" of {{satoshis}} Satoshis": "{{satoshis}} 聰",
" at market price": " at market price",
" at a {{premium}}% premium": " 於 {{premium}}% 溢價",
" at a {{discount}}% discount": " 於 {{discount}}% 折扣",
"Clear form": "清除表單",