From be0b8a11d8ae756b667ddf4ed086e1659d06b4c5 Mon Sep 17 00:00:00 2001 From: Dan J Miller Date: Tue, 30 Mar 2021 12:53:41 -0230 Subject: [PATCH] Ensure that the approval fee in the swaps custom gas modal is in network specific currency (#10763) --- app/_locales/en/messages.json | 4 ---- app/_locales/es/messages.json | 4 ---- app/_locales/es_419/messages.json | 4 ---- app/_locales/hi/messages.json | 4 ---- app/_locales/id/messages.json | 4 ---- app/_locales/it/messages.json | 4 ---- app/_locales/ja/messages.json | 4 ---- app/_locales/ko/messages.json | 4 ---- app/_locales/ru/messages.json | 4 ---- app/_locales/tl/messages.json | 4 ---- app/_locales/vi/messages.json | 4 ---- app/_locales/zh_CN/messages.json | 4 ---- ui/app/pages/swaps/view-quote/view-quote.js | 2 +- 13 files changed, 1 insertion(+), 49 deletions(-) diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json index 6365a9d05..b9501b008 100644 --- a/app/_locales/en/messages.json +++ b/app/_locales/en/messages.json @@ -143,10 +143,6 @@ "amount": { "message": "Amount" }, - "amountInEth": { - "message": "$1 ETH", - "description": "Displays an eth amount to the user. $1 is a decimal number" - }, "amountWithColon": { "message": "Amount:" }, diff --git a/app/_locales/es/messages.json b/app/_locales/es/messages.json index 1981d8ceb..a171d476b 100644 --- a/app/_locales/es/messages.json +++ b/app/_locales/es/messages.json @@ -126,10 +126,6 @@ "amount": { "message": "Cantidad" }, - "amountInEth": { - "message": "$1 ETH", - "description": "Displays an eth amount to the user. $1 is a decimal number" - }, "amountWithColon": { "message": "Cantidad:" }, diff --git a/app/_locales/es_419/messages.json b/app/_locales/es_419/messages.json index 24943d0b5..c7340c869 100644 --- a/app/_locales/es_419/messages.json +++ b/app/_locales/es_419/messages.json @@ -126,10 +126,6 @@ "amount": { "message": "Monto" }, - "amountInEth": { - "message": "$1 ETH", - "description": "Displays an eth amount to the user. $1 is a decimal number" - }, "amountWithColon": { "message": "Monto:" }, diff --git a/app/_locales/hi/messages.json b/app/_locales/hi/messages.json index 226fef67d..24411537c 100644 --- a/app/_locales/hi/messages.json +++ b/app/_locales/hi/messages.json @@ -120,10 +120,6 @@ "amount": { "message": "राशि" }, - "amountInEth": { - "message": "$1 ETH", - "description": "Displays an eth amount to the user. $1 is a decimal number" - }, "amountWithColon": { "message": "राशि:" }, diff --git a/app/_locales/id/messages.json b/app/_locales/id/messages.json index 4d651bf8f..aa23ddabe 100644 --- a/app/_locales/id/messages.json +++ b/app/_locales/id/messages.json @@ -120,10 +120,6 @@ "amount": { "message": "Jumlah" }, - "amountInEth": { - "message": "$1 ETH", - "description": "Displays an eth amount to the user. $1 is a decimal number" - }, "amountWithColon": { "message": "Jumlah:" }, diff --git a/app/_locales/it/messages.json b/app/_locales/it/messages.json index 80955408b..a15720e79 100644 --- a/app/_locales/it/messages.json +++ b/app/_locales/it/messages.json @@ -126,10 +126,6 @@ "amount": { "message": "Importo" }, - "amountInEth": { - "message": "$1 ETH", - "description": "Displays an eth amount to the user. $1 is a decimal number" - }, "amountWithColon": { "message": "Importo:" }, diff --git a/app/_locales/ja/messages.json b/app/_locales/ja/messages.json index 9289ed536..e6aacbb4f 100644 --- a/app/_locales/ja/messages.json +++ b/app/_locales/ja/messages.json @@ -126,10 +126,6 @@ "amount": { "message": "金額" }, - "amountInEth": { - "message": "$1 ETH", - "description": "Displays an eth amount to the user. $1 is a decimal number" - }, "amountWithColon": { "message": "金額:" }, diff --git a/app/_locales/ko/messages.json b/app/_locales/ko/messages.json index 3f57e7128..efd307b2e 100644 --- a/app/_locales/ko/messages.json +++ b/app/_locales/ko/messages.json @@ -120,10 +120,6 @@ "amount": { "message": "금액" }, - "amountInEth": { - "message": "$1 ETH", - "description": "Displays an eth amount to the user. $1 is a decimal number" - }, "amountWithColon": { "message": "금액:" }, diff --git a/app/_locales/ru/messages.json b/app/_locales/ru/messages.json index e7a51e108..c1de60e0c 100644 --- a/app/_locales/ru/messages.json +++ b/app/_locales/ru/messages.json @@ -120,10 +120,6 @@ "amount": { "message": "Сумма" }, - "amountInEth": { - "message": "$1 ETH", - "description": "Displays an eth amount to the user. $1 is a decimal number" - }, "amountWithColon": { "message": "Сумма:" }, diff --git a/app/_locales/tl/messages.json b/app/_locales/tl/messages.json index 5e43560b1..b53205cb8 100644 --- a/app/_locales/tl/messages.json +++ b/app/_locales/tl/messages.json @@ -120,10 +120,6 @@ "amount": { "message": "Halaga" }, - "amountInEth": { - "message": "$1 ETH", - "description": "Displays an eth amount to the user. $1 is a decimal number" - }, "amountWithColon": { "message": "Halaga:" }, diff --git a/app/_locales/vi/messages.json b/app/_locales/vi/messages.json index 31b5b1929..81c5efc03 100644 --- a/app/_locales/vi/messages.json +++ b/app/_locales/vi/messages.json @@ -120,10 +120,6 @@ "amount": { "message": "Số tiền" }, - "amountInEth": { - "message": "$1 ETH", - "description": "Displays an eth amount to the user. $1 is a decimal number" - }, "amountWithColon": { "message": "Số tiền:" }, diff --git a/app/_locales/zh_CN/messages.json b/app/_locales/zh_CN/messages.json index 996408591..4c7671d7f 100644 --- a/app/_locales/zh_CN/messages.json +++ b/app/_locales/zh_CN/messages.json @@ -126,10 +126,6 @@ "amount": { "message": "数额" }, - "amountInEth": { - "message": "$1 ETH", - "description": "Displays an eth amount to the user. $1 is a decimal number" - }, "amountWithColon": { "message": "数额:" }, diff --git a/ui/app/pages/swaps/view-quote/view-quote.js b/ui/app/pages/swaps/view-quote/view-quote.js index 59537781d..d4c47cd14 100644 --- a/ui/app/pages/swaps/view-quote/view-quote.js +++ b/ui/app/pages/swaps/view-quote/view-quote.js @@ -470,7 +470,7 @@ export default function ViewQuote() { extraInfoRow: extraInfoRowLabel ? { label: extraInfoRowLabel, - value: t('amountInEth', [extraNetworkFeeTotalInEth]), + value: `${extraNetworkFeeTotalInEth} ${nativeCurrencySymbol}`, } : null, initialGasPrice: gasPrice,