Rename rate -> amount and add localizations

This commit is contained in:
Justin Ehrenhofer 2023-05-19 12:16:58 -05:00
parent 7473590abb
commit 3d028ffc78
28 changed files with 42 additions and 21 deletions

View file

@ -50,5 +50,5 @@ class PreferencesKey {
static const lastSeenAppVersion = 'last_seen_app_version';
static const shouldShowMarketPlaceInDashboard = 'should_show_marketplace_in_dashboard';
static const isNewInstall = 'is_new_install';
static const showHistoricalFiatRateKey = 'show_historical_fiat_rate';
static const showHistoricalFiatAmountKey = 'show_historical_fiat_amount';
}

View file

@ -57,10 +57,10 @@ class DisplaySettingsPage extends BasePage {
},
),
SettingsSwitcherCell(
title: S.current.historical_fiat_rate,
value: _displaySettingsViewModel.showHistoricalFiatRate,
title: S.current.historical_fiat_amount,
value: _displaySettingsViewModel.showHistoricalFiatAmount,
onValueChange: (_, bool value) {
_displaySettingsViewModel.setShowHistoricalFiatRate(value);
_displaySettingsViewModel.setShowHistoricalFiatAmount(value);
},
),
SettingsPickerCell<String>(

View file

@ -40,7 +40,7 @@ abstract class SettingsStoreBase with Store {
required bool initialDisableSell,
required FiatApiMode initialFiatMode,
required bool initialAllowBiometricalAuthentication,
required bool initialShowHistoricalFiatRate,
required bool initialShowHistoricalFiatAmount,
required String initialTotpSecretKey,
required bool initialUseTOTP2FA,
required int initialFailedTokenTrial,
@ -71,7 +71,7 @@ abstract class SettingsStoreBase with Store {
useTOTP2FA = initialUseTOTP2FA,
numberOfFailedTokenTrials = initialFailedTokenTrial,
isAppSecure = initialAppSecure,
showHistoricalFiatRate = initialShowHistoricalFiatRate,
showHistoricalFiatAmount = initialShowHistoricalFiatAmount,
disableBuy = initialDisableBuy,
disableSell = initialDisableSell,
shouldShowMarketPlaceInDashboard = initialShouldShowMarketPlaceInDashboard,
@ -179,9 +179,9 @@ abstract class SettingsStoreBase with Store {
(String totpKey) => sharedPreferences.setString(PreferencesKey.totpSecretKey, totpKey));
reaction(
(_) => showHistoricalFiatRate,
(_) => showHistoricalFiatAmount,
(bool historicalFiatRate) => sharedPreferences.setBool(
PreferencesKey.showHistoricalFiatRateKey,
PreferencesKey.showHistoricalFiatAmountKey,
historicalFiatRate));
reaction(
@ -257,7 +257,7 @@ abstract class SettingsStoreBase with Store {
bool allowBiometricalAuthentication;
@observable
bool showHistoricalFiatRate;
bool showHistoricalFiatAmount;
String totpSecretKey;
@ -368,8 +368,8 @@ abstract class SettingsStoreBase with Store {
final allowBiometricalAuthentication = sharedPreferences
.getBool(PreferencesKey.allowBiometricalAuthenticationKey) ??
false;
final showHistoricalFiatRate = sharedPreferences
.getBool(PreferencesKey.showHistoricalFiatRateKey) ??
final showHistoricalFiatAmount = sharedPreferences
.getBool(PreferencesKey.showHistoricalFiatAmountKey) ??
false;
final totpSecretKey = sharedPreferences.getString(PreferencesKey.totpSecretKey) ?? '';
final useTOTP2FA = sharedPreferences.getBool(PreferencesKey.useTOTP2FA) ?? false;
@ -448,7 +448,7 @@ abstract class SettingsStoreBase with Store {
initialDisableSell: disableSell,
initialFiatMode: currentFiatApiMode,
initialAllowBiometricalAuthentication: allowBiometricalAuthentication,
initialShowHistoricalFiatRate: showHistoricalFiatRate,
initialShowHistoricalFiatAmount: showHistoricalFiatAmount,
initialTotpSecretKey: totpSecretKey,
initialUseTOTP2FA: useTOTP2FA,
initialFailedTokenTrial: tokenTrialNumber,
@ -508,9 +508,9 @@ abstract class SettingsStoreBase with Store {
allowBiometricalAuthentication = sharedPreferences
.getBool(PreferencesKey.allowBiometricalAuthenticationKey) ??
allowBiometricalAuthentication;
showHistoricalFiatRate = sharedPreferences
.getBool(PreferencesKey.showHistoricalFiatRateKey) ??
showHistoricalFiatRate;
showHistoricalFiatAmount = sharedPreferences
.getBool(PreferencesKey.showHistoricalFiatAmountKey) ??
showHistoricalFiatAmount;
shouldShowMarketPlaceInDashboard =
sharedPreferences.getBool(PreferencesKey.shouldShowMarketPlaceInDashboard) ??
shouldShowMarketPlaceInDashboard;

View file

@ -38,7 +38,7 @@ abstract class DisplaySettingsViewModelBase with Store {
bool get disabledFiatApiMode => _settingsStore.fiatApiMode == FiatApiMode.disabled;
@computed
bool get showHistoricalFiatRate => _settingsStore.showHistoricalFiatRate;
bool get showHistoricalFiatAmount => _settingsStore.showHistoricalFiatAmount;
@action
void setBalanceDisplayMode(BalanceDisplayMode value) => _settingsStore.balanceDisplayMode = value;
@ -71,5 +71,5 @@ abstract class DisplaySettingsViewModelBase with Store {
}
@action
void setShowHistoricalFiatRate(bool value) => _settingsStore.showHistoricalFiatRate = value;
void setShowHistoricalFiatAmount(bool value) => _settingsStore.showHistoricalFiatAmount = value;
}

View file

@ -147,7 +147,7 @@ abstract class TransactionDetailsViewModelBase with Store {
}
}));
if (settingsStore.showHistoricalFiatRate &&
if (settingsStore.showHistoricalFiatAmount &&
description.historicalFiatRate != null &&
description.historicalFiatRate! > 0) {
final index =
@ -156,7 +156,7 @@ abstract class TransactionDetailsViewModelBase with Store {
items.insert(
index + 1,
StandartListItem(
title: S.current.historical_fiat_rate,
title: S.current.historical_fiat_amount,
value: description.historicalFiatRate!.toStringAsFixed(2) +
' ' +
settingsStore.fiatCurrency.toString()));

View file

@ -707,6 +707,7 @@
"error_text_input_above_maximum_limit":"المبلغ أكبر من الحد الأقصى",
"show_market_place": "إظهار السوق",
"prevent_screenshots": "منع لقطات الشاشة وتسجيل الشاشة",
"historical_fiat_amount": "مبلغ الإيداع التاريخي",
"modify_2fa": "تعديل 2 عامل المصادقة",
"disable_cake_2fa": "تعطيل 2 عامل المصادقة",
"question_to_disable_2fa":"هل أنت متأكد أنك تريد تعطيل Cake 2FA؟ لن تكون هناك حاجة إلى رمز 2FA للوصول إلى المحفظة ووظائف معينة.",

View file

@ -703,6 +703,7 @@
"error_text_input_above_maximum_limit" : "Сумата надвишава максималната",
"show_market_place":"Покажи пазар",
"prevent_screenshots": "Предотвратете екранни снимки и запис на екрана",
"historical_fiat_amount": "Историческа фиатна сума",
"modify_2fa": "Модифициране на тортата 2FA",
"disable_cake_2fa": "Деактивирайте Cake 2FA",
"question_to_disable_2fa":"Сигурни ли сте, че искате да деактивирате Cake 2FA? Вече няма да е необходим 2FA код за достъп до портфейла и определени функции.",

View file

@ -703,6 +703,7 @@
"error_text_input_above_maximum_limit" : "Částka je větší než maximální hodnota",
"show_market_place": "Zobrazit trh",
"prevent_screenshots": "Zabránit vytváření snímků obrazovky a nahrávání obrazovky",
"historical_fiat_amount": "Historická fiat částka",
"modify_2fa": "Upravte Cake 2FA",
"disable_cake_2fa": "Zakázat Cake 2FA",
"question_to_disable_2fa":"Opravdu chcete deaktivovat Cake 2FA? Pro přístup k peněžence a některým funkcím již nebude potřeba kód 2FA.",

View file

@ -709,6 +709,7 @@
"error_text_input_above_maximum_limit" : "Menge ist über dem Maximum",
"show_market_place": "Marktplatz anzeigen",
"prevent_screenshots": "Verhindern Sie Screenshots und Bildschirmaufzeichnungen",
"historical_fiat_amount": "Historischer Fiat-Betrag",
"modify_2fa": "Kuchen 2FA ändern",
"disable_cake_2fa": "Kuchen 2FA deaktivieren",
"question_to_disable_2fa":"Sind Sie sicher, dass Sie Cake 2FA deaktivieren möchten? Für den Zugriff auf die Brieftasche und bestimmte Funktionen wird kein 2FA-Code mehr benötigt.",

View file

@ -709,8 +709,7 @@
"error_text_input_above_maximum_limit" : "Amount is more than the maximum",
"show_market_place" :"Show Marketplace",
"prevent_screenshots": "Prevent screenshots and screen recording",
"fiat_rate": "Fiat rate",
"historical_fiat_rate": "Historical fiat rate",
"historical_fiat_amount": "Historical fiat amount",
"modify_2fa": "Modify Cake 2FA",
"disable_cake_2fa": "Disable Cake 2FA",
"question_to_disable_2fa":"Are you sure that you want to disable Cake 2FA? A 2FA code will no longer be needed to access the wallet and certain functions.",

View file

@ -709,6 +709,7 @@
"error_text_input_above_maximum_limit" : "La cantidad es más que el máximo",
"show_market_place": "Mostrar mercado",
"prevent_screenshots": "Evitar capturas de pantalla y grabación de pantalla",
"historical_fiat_amount": "Monto fiduciario histórico",
"modify_2fa": "Modificar torta 2FA",
"disable_cake_2fa": "Desactivar pastel 2FA",
"question_to_disable_2fa":"¿Está seguro de que desea deshabilitar Cake 2FA? Ya no se necesitará un código 2FA para acceder a la billetera y a ciertas funciones.",

View file

@ -709,6 +709,7 @@
"error_text_input_above_maximum_limit" : "Le montant est supérieur au maximum",
"show_market_place" :"Afficher la place de marché",
"prevent_screenshots": "Empêcher les captures d'écran et l'enregistrement d'écran",
"historical_fiat_amount": "Montant fiduciaire historique",
"modify_2fa": "Modifier le gâteau 2FA",
"disable_cake_2fa": "Désactiver le gâteau 2FA",
"question_to_disable_2fa":"Êtes-vous sûr de vouloir désactiver Cake 2FA ? Un code 2FA ne sera plus nécessaire pour accéder au portefeuille et à certaines fonctions.",

View file

@ -709,6 +709,7 @@
"error_text_input_above_maximum_limit" : "राशि अधिकतम से अधिक है",
"show_market_place":"बाज़ार दिखाएँ",
"prevent_screenshots": "स्क्रीनशॉट और स्क्रीन रिकॉर्डिंग रोकें",
"historical_fiat_amount": "ऐतिहासिक फिएट राशि",
"modify_2fa": "केक 2FA संशोधित करें",
"disable_cake_2fa": "केक 2FA अक्षम करें",
"question_to_disable_2fa":"क्या आप सुनिश्चित हैं कि आप Cake 2FA को अक्षम करना चाहते हैं? वॉलेट और कुछ कार्यों तक पहुँचने के लिए अब 2FA कोड की आवश्यकता नहीं होगी।",

View file

@ -709,6 +709,7 @@
"error_text_input_above_maximum_limit" : "Iznos je veći od maskimalnog",
"show_market_place" : "Prikaži tržište",
"prevent_screenshots": "Spriječite snimke zaslona i snimanje zaslona",
"historical_fiat_amount": "Povijesni fiat iznos",
"modify_2fa": "Izmijenite tortu 2FA",
"disable_cake_2fa": "Onemogući Cake 2FA",
"question_to_disable_2fa":"Jeste li sigurni da želite onemogućiti Cake 2FA? 2FA kod više neće biti potreban za pristup novčaniku i određenim funkcijama.",

View file

@ -685,6 +685,7 @@
"error_text_input_above_maximum_limit" : "Jumlah lebih dari maksimal",
"show_market_place": "Tampilkan Pasar",
"prevent_screenshots": "Cegah tangkapan layar dan perekaman layar",
"historical_fiat_amount": "Jumlah fiat historis",
"modify_2fa": "Ubah Kue 2FA",
"disable_cake_2fa": "Nonaktifkan Kue 2FA",
"question_to_disable_2fa":"Apakah Anda yakin ingin menonaktifkan Cake 2FA? Kode 2FA tidak lagi diperlukan untuk mengakses dompet dan fungsi tertentu.",

View file

@ -709,6 +709,7 @@
"error_text_input_above_maximum_limit" : "L'ammontare è superiore al massimo",
"show_market_place":"Mostra mercato",
"prevent_screenshots": "Impedisci screenshot e registrazione dello schermo",
"historical_fiat_amount": "Importo fiat storico",
"modify_2fa": "Modifica Torta 2FA",
"disable_cake_2fa": "Disabilita Cake 2FA",
"question_to_disable_2fa":"Sei sicuro di voler disabilitare Cake 2FA? Non sarà più necessario un codice 2FA per accedere al portafoglio e ad alcune funzioni.",

View file

@ -709,6 +709,7 @@
"error_text_input_above_maximum_limit" : "金額は最大値を超えています",
"show_market_place":"マーケットプレイスを表示",
"prevent_screenshots": "スクリーンショットと画面録画を防止する",
"historical_fiat_amount": "過去の法定金額",
"modify_2fa": "ケーキの 2FA を変更する",
"disable_cake_2fa": "Cake 2FA を無効にする",
"question_to_disable_2fa":"Cake 2FA を無効にしてもよろしいですか?ウォレットと特定の機能にアクセスするために 2FA コードは必要なくなります。",

View file

@ -709,6 +709,7 @@
"error_text_input_above_maximum_limit" : "금액이 최대 값보다 많습니다.",
"show_market_place":"마켓플레이스 표시",
"prevent_screenshots": "스크린샷 및 화면 녹화 방지",
"historical_fiat_amount": "역사적 명목화폐 금액",
"modify_2fa": "수정 케이크 2FA",
"disable_cake_2fa": "케이크 2FA 비활성화",
"question_to_disable_2fa":"Cake 2FA를 비활성화하시겠습니까? 지갑 및 특정 기능에 액세스하는 데 더 이상 2FA 코드가 필요하지 않습니다.",

View file

@ -709,6 +709,7 @@
"error_text_input_above_maximum_limit" : "ပမာဏသည် အများဆုံးထက် ပိုများသည်။",
"show_market_place":"စျေးကွက်ကိုပြသပါ။",
"prevent_screenshots": "ဖန်သားပြင်ဓာတ်ပုံများနှင့် မျက်နှာပြင်ရိုက်ကူးခြင်းကို တားဆီးပါ။",
"historical_fiat_amount": "သမိုင်းဝင် fiat ပမာဏ",
"modify_2fa": "ကိတ်မုန့် 2FA ကို ပြင်ဆင်ပါ။",
"disable_cake_2fa": "ကိတ်မုန့် 2FA ကို ပိတ်ပါ။",
"question_to_disable_2fa":"Cake 2FA ကို ပိတ်လိုသည်မှာ သေချာပါသလား။ ပိုက်ဆံအိတ်နှင့် အချို့သောလုပ်ဆောင်ချက်များကို အသုံးပြုရန်အတွက် 2FA ကုဒ်တစ်ခု မလိုအပ်တော့ပါ။",

View file

@ -709,6 +709,7 @@
"error_text_input_above_maximum_limit" : "Bedrag is meer dan maximaal",
"show_market_place":"Toon Marktplaats",
"prevent_screenshots": "Voorkom screenshots en schermopname",
"historical_fiat_amount": "Historisch fiat bedrag",
"modify_2fa": "Wijzig Cake 2FA",
"disable_cake_2fa": "Taart 2FA uitschakelen",
"question_to_disable_2fa":"Weet je zeker dat je Cake 2FA wilt uitschakelen? Er is geen 2FA-code meer nodig om toegang te krijgen tot de portemonnee en bepaalde functies.",

View file

@ -709,6 +709,7 @@
"error_text_input_above_maximum_limit" : "Kwota jest większa niż maksymalna",
"show_market_place" : "Pokaż rynek",
"prevent_screenshots": "Zapobiegaj zrzutom ekranu i nagrywaniu ekranu",
"historical_fiat_amount": "Historyczna kwota fiducjarna",
"modify_2fa": "Zmodyfikuj ciasto 2FA",
"disable_cake_2fa": "Wyłącz Cake 2FA",
"question_to_disable_2fa":"Czy na pewno chcesz wyłączyć Cake 2FA? Kod 2FA nie będzie już potrzebny do uzyskania dostępu do portfela i niektórych funkcji.",

View file

@ -708,6 +708,7 @@
"error_text_input_above_maximum_limit" : "O valor é superior ao máximo",
"show_market_place":"Mostrar mercado",
"prevent_screenshots": "Evite capturas de tela e gravação de tela",
"historical_fiat_amount": "Valor fiduciário histórico",
"modify_2fa": "Modificar Bolo 2FA",
"disable_cake_2fa": "Desabilitar Bolo 2FA",
"question_to_disable_2fa":"Tem certeza de que deseja desativar o Cake 2FA? Um código 2FA não será mais necessário para acessar a carteira e certas funções.",

View file

@ -709,6 +709,7 @@
"error_text_input_above_maximum_limit" : "Сумма больше максимальной",
"show_market_place":"Показать торговую площадку",
"prevent_screenshots": "Предотвратить скриншоты и запись экрана",
"historical_fiat_amount": "Историческая фиатная сумма",
"modify_2fa": "Изменить торт 2FA",
"disable_cake_2fa": "Отключить торт 2FA",
"question_to_disable_2fa":"Вы уверены, что хотите отключить Cake 2FA? Код 2FA больше не потребуется для доступа к кошельку и некоторым функциям.",

View file

@ -707,6 +707,7 @@
"error_text_input_above_maximum_limit" : "จำนวนเงินสูงกว่าค่าสูงสุด",
"show_market_place":"แสดงตลาดกลาง",
"prevent_screenshots": "ป้องกันภาพหน้าจอและการบันทึกหน้าจอ",
"historical_fiat_amount": "จำนวนเงินคำสั่งย้อนหลัง",
"modify_2fa": "แก้ไขเค้ก 2FA",
"disable_cake_2fa": "ปิดการใช้งานเค้ก 2FA",
"question_to_disable_2fa":"คุณแน่ใจหรือไม่ว่าต้องการปิดการใช้งาน Cake 2FA ไม่จำเป็นต้องใช้รหัส 2FA ในการเข้าถึงกระเป๋าเงินและฟังก์ชั่นบางอย่างอีกต่อไป",

View file

@ -709,6 +709,7 @@
"error_text_input_above_maximum_limit" : "Miktar maksimumdan daha fazla",
"show_market_place":"Pazar Yerini Göster",
"prevent_screenshots": "Ekran görüntülerini ve ekran kaydını önleyin",
"historical_fiat_amount": "Tarihsel itibari para tutarı",
"modify_2fa": "Cake 2FA'yı Değiştirin",
"disable_cake_2fa": "Cake 2FA'yı Devre Dışı Bırak",
"question_to_disable_2fa":"Cake 2FA'yı devre dışı bırakmak istediğinizden emin misiniz? M-cüzdana ve belirli işlevlere erişmek için artık 2FA koduna gerek kalmayacak.",

View file

@ -708,6 +708,7 @@
"error_text_input_above_maximum_limit" : "Сума більше максимальної",
"show_market_place":"Відображати маркетплейс",
"prevent_screenshots": "Запобігати знімкам екрана та запису екрана",
"historical_fiat_amount": "Історична сума фіат",
"modify_2fa": "Змінити торт 2FA",
"disable_cake_2fa": "Вимкнути Cake 2FA",
"question_to_disable_2fa":"Ви впевнені, що хочете вимкнути Cake 2FA? Код 2FA більше не потрібен для доступу до гаманця та певних функцій.",

View file

@ -704,6 +704,7 @@
"error_text_input_above_maximum_limit" : "رقم زیادہ سے زیادہ سے زیادہ ہے۔",
"show_market_place":"بازار دکھائیں۔",
"prevent_screenshots": "اسکرین شاٹس اور اسکرین ریکارڈنگ کو روکیں۔",
"historical_fiat_amount": "تاریخی فئٹ رقم",
"modify_2fa": "کیک 2FA میں ترمیم کریں۔",
"disable_cake_2fa": "کیک 2FA کو غیر فعال کریں۔",
"question_to_disable_2fa":"کیا آپ واقعی کیک 2FA کو غیر فعال کرنا چاہتے ہیں؟ بٹوے اور بعض افعال تک رسائی کے لیے اب 2FA کوڈ کی ضرورت نہیں ہوگی۔",

View file

@ -708,6 +708,7 @@
"error_text_input_above_maximum_limit" : "金额大于最大值",
"show_market_place" :"显示市场",
"prevent_screenshots": "防止截屏和录屏",
"historical_fiat_amount": "历史法定金额",
"modify_2fa": "修改蛋糕2FA",
"disable_cake_2fa": "禁用蛋糕 2FA",
"question_to_disable_2fa":"您确定要禁用 Cake 2FA 吗?访问钱包和某些功能将不再需要 2FA 代码。",