From 1bf6ef607765272239b8839b7f4191ad879a2ec9 Mon Sep 17 00:00:00 2001 From: OleksandrSobol Date: Wed, 2 Jun 2021 09:56:06 +0300 Subject: [PATCH] CAKE-306 | applied localization to MoonPay alert --- lib/src/screens/buy/pre_order_page.dart | 4 +++- res/values/strings_de.arb | 3 ++- res/values/strings_en.arb | 3 ++- res/values/strings_es.arb | 3 ++- res/values/strings_hi.arb | 3 ++- res/values/strings_hr.arb | 3 ++- res/values/strings_it.arb | 3 ++- res/values/strings_ja.arb | 3 ++- res/values/strings_ko.arb | 3 ++- res/values/strings_nl.arb | 3 ++- res/values/strings_pl.arb | 3 ++- res/values/strings_pt.arb | 3 ++- res/values/strings_ru.arb | 3 ++- res/values/strings_uk.arb | 3 ++- res/values/strings_zh.arb | 3 ++- 15 files changed, 31 insertions(+), 15 deletions(-) diff --git a/lib/src/screens/buy/pre_order_page.dart b/lib/src/screens/buy/pre_order_page.dart index dd4832cc1..39728c058 100644 --- a/lib/src/screens/buy/pre_order_page.dart +++ b/lib/src/screens/buy/pre_order_page.dart @@ -261,7 +261,9 @@ class PreOrderPage extends BasePage { builder: (BuildContext context) { return AlertWithOneAction( alertTitle: 'MoonPay', - alertContent: 'Value of the amount must be more than $minAmount ${buyViewModel.fiatCurrency.toString()}', + alertContent: S.of(context).moonpay_alert_text( + minAmount.toString(), + buyViewModel.fiatCurrency.toString()), buttonText: S.of(context).ok, buttonAction: () => Navigator.of(context).pop()); }); diff --git a/res/values/strings_de.arb b/res/values/strings_de.arb index 6d689104f..d5b8a1a8d 100644 --- a/res/values/strings_de.arb +++ b/res/values/strings_de.arb @@ -477,5 +477,6 @@ "understand" : "I understand", "buy_bitcoin" : "Bitcoin kaufen", - "buy_with" : "Kaufen mit" + "buy_with" : "Kaufen mit", + "moonpay_alert_text" : "Der Wert des Betrags muss größer oder gleich sein ${minAmount} ${fiatCurrency}" } \ No newline at end of file diff --git a/res/values/strings_en.arb b/res/values/strings_en.arb index 2c4c2e28f..f2a045708 100644 --- a/res/values/strings_en.arb +++ b/res/values/strings_en.arb @@ -477,5 +477,6 @@ "understand" : "I understand", "buy_bitcoin" : "Buy Bitcoin", - "buy_with" : "Buy with" + "buy_with" : "Buy with", + "moonpay_alert_text" : "Value of the amount must be more or equal to ${minAmount} ${fiatCurrency}" } \ No newline at end of file diff --git a/res/values/strings_es.arb b/res/values/strings_es.arb index 2e07285db..5fc627bcd 100644 --- a/res/values/strings_es.arb +++ b/res/values/strings_es.arb @@ -477,5 +477,6 @@ "understand" : "I understand", "buy_bitcoin" : "Comprar Bitcoin", - "buy_with" : "Compra con" + "buy_with" : "Compra con", + "moonpay_alert_text" : "El valor de la cantidad debe ser mayor o igual a ${minAmount} ${fiatCurrency}" } \ No newline at end of file diff --git a/res/values/strings_hi.arb b/res/values/strings_hi.arb index 2430f2bce..7b2af2856 100644 --- a/res/values/strings_hi.arb +++ b/res/values/strings_hi.arb @@ -477,5 +477,6 @@ "understand" : "I understand", "buy_bitcoin" : "बिटकॉइन खरीदें", - "buy_with" : "के साथ खरीदें" + "buy_with" : "के साथ खरीदें", + "moonpay_alert_text" : "राशि का मूल्य अधिक है या करने के लिए बराबर होना चाहिए ${minAmount} ${fiatCurrency}" } \ No newline at end of file diff --git a/res/values/strings_hr.arb b/res/values/strings_hr.arb index d449fca1b..d0bce1c55 100644 --- a/res/values/strings_hr.arb +++ b/res/values/strings_hr.arb @@ -474,5 +474,6 @@ "buy_alert_content" : "Currently we only support the purchase of Bitcoin. To buy Bitcoin, please create or switch to your Bitcoin wallet", "outdated_electrum_wallet_desceription" : "New Bitcoin wallets created in Cake now have a 24-word seed. It is mandatory that you create a new Bitcoin wallet and transfer all of your funds to the new 24-word wallet, and stop using wallets with a 12-word seed. Please do this immediately to secure your funds.", - "understand" : "I understand" + "understand" : "I understand", + "moonpay_alert_text" : "Vrijednost iznosa mora biti veća ili jednaka ${minAmount} ${fiatCurrency}" } \ No newline at end of file diff --git a/res/values/strings_it.arb b/res/values/strings_it.arb index e8c4da26d..6d54c2b78 100644 --- a/res/values/strings_it.arb +++ b/res/values/strings_it.arb @@ -474,5 +474,6 @@ "buy_alert_content" : "Currently we only support the purchase of Bitcoin. To buy Bitcoin, please create or switch to your Bitcoin wallet", "outdated_electrum_wallet_desceription" : "New Bitcoin wallets created in Cake now have a 24-word seed. It is mandatory that you create a new Bitcoin wallet and transfer all of your funds to the new 24-word wallet, and stop using wallets with a 12-word seed. Please do this immediately to secure your funds.", - "understand" : "I understand" + "understand" : "I understand", + "moonpay_alert_text" : "Il valore dell'importo deve essere maggiore o uguale a ${minAmount} ${fiatCurrency}" } \ No newline at end of file diff --git a/res/values/strings_ja.arb b/res/values/strings_ja.arb index 1eeb07c27..bb1189653 100644 --- a/res/values/strings_ja.arb +++ b/res/values/strings_ja.arb @@ -477,5 +477,6 @@ "understand" : "I understand", "buy_bitcoin" : "ビットコインを購入する", - "buy_with" : "で購入" + "buy_with" : "で購入", + "moonpay_alert_text" : "金額の値は以上でなければなりません ${minAmount} ${fiatCurrency}" } \ No newline at end of file diff --git a/res/values/strings_ko.arb b/res/values/strings_ko.arb index 91fd84b90..0774fe4de 100644 --- a/res/values/strings_ko.arb +++ b/res/values/strings_ko.arb @@ -477,5 +477,6 @@ "understand" : "I understand", "buy_bitcoin" : "비트 코인 구매", - "buy_with" : "구매" + "buy_with" : "구매", + "moonpay_alert_text" : "금액은 다음보다 크거나 같아야합니다 ${minAmount} ${fiatCurrency}" } \ No newline at end of file diff --git a/res/values/strings_nl.arb b/res/values/strings_nl.arb index 653078810..82f9ec961 100644 --- a/res/values/strings_nl.arb +++ b/res/values/strings_nl.arb @@ -477,5 +477,6 @@ "understand" : "I understand", "buy_bitcoin" : "Koop Bitcoin", - "buy_with" : "Koop met" + "buy_with" : "Koop met", + "moonpay_alert_text" : "Waarde van het bedrag moet meer of gelijk zijn aan ${minAmount} ${fiatCurrency}" } \ No newline at end of file diff --git a/res/values/strings_pl.arb b/res/values/strings_pl.arb index 7b299afbf..dbef4aab6 100644 --- a/res/values/strings_pl.arb +++ b/res/values/strings_pl.arb @@ -477,5 +477,6 @@ "understand" : "I understand", "buy_bitcoin" : "Kup Bitcoin", - "buy_with" : "Kup za pomocą" + "buy_with" : "Kup za pomocą", + "moonpay_alert_text" : "Wartość kwoty musi być większa lub równa ${minAmount} ${fiatCurrency}" } \ No newline at end of file diff --git a/res/values/strings_pt.arb b/res/values/strings_pt.arb index cc0d22ed2..270b02909 100644 --- a/res/values/strings_pt.arb +++ b/res/values/strings_pt.arb @@ -477,5 +477,6 @@ "understand" : "I understand", "buy_bitcoin" : "Compre Bitcoin", - "buy_with" : "Compre com" + "buy_with" : "Compre com", + "moonpay_alert_text" : "O valor do montante deve ser maior ou igual a ${minAmount} ${fiatCurrency}" } \ No newline at end of file diff --git a/res/values/strings_ru.arb b/res/values/strings_ru.arb index 63831b3d0..f29625aec 100644 --- a/res/values/strings_ru.arb +++ b/res/values/strings_ru.arb @@ -477,5 +477,6 @@ "understand" : "I understand", "buy_bitcoin" : "Купить Bitcoin", - "buy_with" : "Купить с помощью" + "buy_with" : "Купить с помощью", + "moonpay_alert_text" : "Сумма должна быть больше или равна ${minAmount} ${fiatCurrency}" } \ No newline at end of file diff --git a/res/values/strings_uk.arb b/res/values/strings_uk.arb index 879b52102..b101f81cd 100644 --- a/res/values/strings_uk.arb +++ b/res/values/strings_uk.arb @@ -477,5 +477,6 @@ "understand" : "I understand", "buy_bitcoin" : "Купити Bitcoin", - "buy_with" : "Купити за допомогою" + "buy_with" : "Купити за допомогою", + "moonpay_alert_text" : "Значення суми має бути більшим або дорівнювати ${minAmount} ${fiatCurrency}" } \ No newline at end of file diff --git a/res/values/strings_zh.arb b/res/values/strings_zh.arb index 674a1ec48..9363e621c 100644 --- a/res/values/strings_zh.arb +++ b/res/values/strings_zh.arb @@ -474,5 +474,6 @@ "understand" : "I understand", "buy_bitcoin" : "購買比特幣", - "buy_with" : "與一起購買" + "buy_with" : "與一起購買", + "moonpay_alert_text" : "金額的價值必須大於或等於 ${minAmount} ${fiatCurrency}" } \ No newline at end of file