[skip ci] Update localization

This commit is contained in:
Serhii
2022-12-07 14:04:14 +02:00
parent c757a06293
commit 228e157b39
18 changed files with 81 additions and 35 deletions
+3 -3
View File
@@ -27,11 +27,11 @@ class FiatApiMode extends EnumerableItem<int> with Serializable<int> {
String toString() {
switch (this) {
case FiatApiMode.enabled:
return 'enable';
return S.current.enabled;
case FiatApiMode.torOnly:
return 'torOnly';
return S.current.tor_only;
case FiatApiMode.disabled:
return 'disable';
return S.current.disabled;
default:
return '';
}
+2 -1
View File
@@ -1,5 +1,6 @@
import 'dart:async';
import 'package:cake_wallet/core/fiat_conversion_service.dart';
import 'package:cake_wallet/entities/fiat_api_mode.dart';
import 'package:cake_wallet/entities/update_haven_rate.dart';
import 'package:cake_wallet/store/app_store.dart';
import 'package:cake_wallet/store/dashboard/fiat_conversion_store.dart';
@@ -28,7 +29,7 @@ Future<void> startFiatRateUpdate(AppStore appStore, SettingsStore settingsStore,
await updateHavenRate(fiatConversionStore);
} else {
fiatConversionStore.prices[appStore.wallet!.currency] =
settingsStore.shouldDisableFiat ? 0.0
settingsStore.fiatApiMode == FiatApiMode.disabled ? 0.0
: await FiatConversionService.fetchPrice(
appStore.wallet!.currency, settingsStore.fiatCurrency);
}
+1 -1
View File
@@ -26,7 +26,7 @@ class PrivacyPage extends BasePage {
children: [
SettingsChoicesCell(
ChoicesListItem<FiatApiMode>(
title: 'Fiat api',
title: S.current.fiat_api,
items: FiatApiMode.all,
selectedItem: _privacySettingsViewModel.fiatApiMode,
onItemSelected: (FiatApiMode mode) => _privacySettingsViewModel.setFiatMode(mode),