diff --git a/Bitkit/Assets.xcassets/Illustrations/trezor-angled.imageset/Contents.json b/Bitkit/Assets.xcassets/Illustrations/trezor-angled.imageset/Contents.json new file mode 100644 index 0000000000..3ce2796911 --- /dev/null +++ b/Bitkit/Assets.xcassets/Illustrations/trezor-angled.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "filename" : "trezor-angled.png", + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "trezor-angled@2x.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "filename" : "trezor-angled@3x.png", + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Bitkit/Assets.xcassets/Illustrations/trezor-angled.imageset/trezor-angled.png b/Bitkit/Assets.xcassets/Illustrations/trezor-angled.imageset/trezor-angled.png new file mode 100644 index 0000000000..b23b415a31 Binary files /dev/null and b/Bitkit/Assets.xcassets/Illustrations/trezor-angled.imageset/trezor-angled.png differ diff --git a/Bitkit/Assets.xcassets/Illustrations/trezor-angled.imageset/trezor-angled@2x.png b/Bitkit/Assets.xcassets/Illustrations/trezor-angled.imageset/trezor-angled@2x.png new file mode 100644 index 0000000000..6a19f85d86 Binary files /dev/null and b/Bitkit/Assets.xcassets/Illustrations/trezor-angled.imageset/trezor-angled@2x.png differ diff --git a/Bitkit/Assets.xcassets/Illustrations/trezor-angled.imageset/trezor-angled@3x.png b/Bitkit/Assets.xcassets/Illustrations/trezor-angled.imageset/trezor-angled@3x.png new file mode 100644 index 0000000000..23c2b7cd5a Binary files /dev/null and b/Bitkit/Assets.xcassets/Illustrations/trezor-angled.imageset/trezor-angled@3x.png differ diff --git a/Bitkit/Components/FeeDisplayRow.swift b/Bitkit/Components/FeeDisplayRow.swift index 37ae26d211..eb84a57974 100644 --- a/Bitkit/Components/FeeDisplayRow.swift +++ b/Bitkit/Components/FeeDisplayRow.swift @@ -3,8 +3,6 @@ import SwiftUI struct FeeDisplayRow: View { let label: String let amount: UInt64 - /// Shown before the amount when it is a bound or an estimate ("±"). - var prefix: String? /// Shimmers the amount while it is being priced. var isLoading = false @@ -12,7 +10,7 @@ struct FeeDisplayRow: View { VStack(alignment: .leading, spacing: 0) { CaptionMText(label) .padding(.bottom, 8) - MoneyText(sats: Int(amount), size: .bodySSB, symbol: true, prefix: prefix, shimmer: isLoading) + MoneyText(sats: Int(amount), size: .bodySSB, symbol: true, shimmer: isLoading) .padding(.bottom, 16) Divider() } diff --git a/Bitkit/Components/MoneyStack.swift b/Bitkit/Components/MoneyStack.swift index cdbf16c2eb..f210e5a383 100644 --- a/Bitkit/Components/MoneyStack.swift +++ b/Bitkit/Components/MoneyStack.swift @@ -138,8 +138,10 @@ struct MoneyStack: View { } Haptics.play(.medium) - // Show toast on first switch - if !settings.ignoresSwitchUnitToast { + // Show toast on first switch, only when the shown unit changed (without a rate it stays bitcoin) + let shownBefore = MoneyText.primaryUnit(previousDisplay, hasUsableRate: currency.hasUsableRate) + let shownAfter = MoneyText.primaryUnit(currency.primaryDisplay, hasUsableRate: currency.hasUsableRate) + if !settings.ignoresSwitchUnitToast, shownBefore != shownAfter { let newDisplay = currency.primaryDisplay let toUnitText = getUnitText(for: newDisplay) let fromUnitText = getUnitText(for: previousDisplay) diff --git a/Bitkit/Components/MoneyText.swift b/Bitkit/Components/MoneyText.swift index 519137e472..0d60df04c7 100644 --- a/Bitkit/Components/MoneyText.swift +++ b/Bitkit/Components/MoneyText.swift @@ -46,7 +46,20 @@ struct MoneyText: View { if let forceUnit { return forceUnit } - return unitType == .secondary ? (currency.primaryDisplay == .bitcoin ? .fiat : .bitcoin) : currency.primaryDisplay + if unitType == .secondary { + return Self.secondaryUnit(currency.primaryDisplay, hasUsableRate: currency.hasUsableRate) + } + return Self.primaryUnit(currency.primaryDisplay, hasUsableRate: currency.hasUsableRate) + } + + /// The primary amount stays in bitcoin while the local currency has no usable rate, so it never reads zero in fiat. + nonisolated static func primaryUnit(_ display: PrimaryDisplay, hasUsableRate: Bool) -> PrimaryDisplay { + display == .fiat && !hasUsableRate ? .bitcoin : display + } + + /// The other unit from the primary one, so a paired amount never shows bitcoin twice. + nonisolated static func secondaryUnit(_ display: PrimaryDisplay, hasUsableRate: Bool) -> PrimaryDisplay { + primaryUnit(display, hasUsableRate: hasUsableRate) == .bitcoin ? .fiat : .bitcoin } private var showSymbol: Bool { @@ -193,7 +206,7 @@ extension MoneyText { if hideBalance { return displayDots } - if isUnavailable { + if isUnavailable || unit == .fiat && !currency.hasUsableRate { return "—" } @@ -207,12 +220,9 @@ extension MoneyText { } } - // Rates unavailable: show sats for bitcoin, "0" for fiat + // Rates unavailable: bitcoin needs no rate, fiat shows "0" if unit == .bitcoin { - let formatter = NumberFormatter() - formatter.numberStyle = .decimal - formatter.groupingSeparator = " " - return formatter.string(from: NSNumber(value: abs(sats))) ?? String(abs(sats)) + return ConvertedAmount.bitcoinDisplay(sats: UInt64(abs(sats)), unit: forceDisplayUnit ?? currency.displayUnit).value } return "0" } @@ -223,12 +233,15 @@ extension MoneyText { } private var accessibilityValue: String { - if !hideBalance, isUnavailable { + if !hideBalance, isUnavailable || unit == .fiat && !currency.hasUsableRate { return "—" } - guard !hideBalance, let converted = currency.convert(sats: UInt64(abs(sats))) else { + guard !hideBalance else { return prefixed(displayDots) } + guard let converted = currency.convert(sats: UInt64(abs(sats))) else { + return prefixed(formattedValue) + } let numeric: String = { switch unit { diff --git a/Bitkit/Components/NumberPadTextField.swift b/Bitkit/Components/NumberPadTextField.swift index bed2aa1722..552f93821e 100644 --- a/Bitkit/Components/NumberPadTextField.swift +++ b/Bitkit/Components/NumberPadTextField.swift @@ -51,10 +51,11 @@ struct NumberPadTextField: View { ) } else { if showConversion { - // Secondary display (bitcoin) + // Secondary display: the editor's other unit, bitcoin while fiat is edited without a usable rate MoneyText( sats: Int(viewModel.amountSats), unitType: .secondary, + forceUnit: currency.primaryDisplay == .bitcoin ? .fiat : .bitcoin, size: .caption, symbol: true, color: .textSecondary diff --git a/Bitkit/Extensions/HwWalletVendor+UI.swift b/Bitkit/Extensions/HwWalletVendor+UI.swift index b377a8c714..d2e1141d67 100644 --- a/Bitkit/Extensions/HwWalletVendor+UI.swift +++ b/Bitkit/Extensions/HwWalletVendor+UI.swift @@ -18,6 +18,14 @@ extension HwWalletVendor { } } + /// The angled device on the transfer to spending sign screen, partly behind its button. + var transferSignImageName: String { + switch self { + case .trezor: "trezor-angled" + case .blockstream: "jade-card" + } + } + var modelName: String { switch self { case .trezor: t("hardware__device_model_trezor") diff --git a/Bitkit/Models/Currency.swift b/Bitkit/Models/Currency.swift index 0cc6f02ebb..2fb84c44a4 100644 --- a/Bitkit/Models/Currency.swift +++ b/Bitkit/Models/Currency.swift @@ -64,6 +64,12 @@ struct ConvertedAmount { } func bitcoinDisplay(unit: BitcoinDisplayUnit) -> BitcoinDisplayComponents { + Self.bitcoinDisplay(sats: sats, unit: unit) + } + + /// A bitcoin amount in the given unit; it needs no exchange rate, so it also serves when none is usable. + static func bitcoinDisplay(sats: UInt64, unit: BitcoinDisplayUnit) -> BitcoinDisplayComponents { + let btcValue = Decimal(sats) / 100_000_000 switch unit { case .modern: let formatter = NumberFormatter() diff --git a/Bitkit/Resources/Localization/ar.lproj/Localizable.strings b/Bitkit/Resources/Localization/ar.lproj/Localizable.strings index 1cec5f24f6..b028d7bd48 100644 --- a/Bitkit/Resources/Localization/ar.lproj/Localizable.strings +++ b/Bitkit/Resources/Localization/ar.lproj/Localizable.strings @@ -171,7 +171,7 @@ "fee__custom__shortDescription" = "يعتمد على الرسوم"; "fee__custom__range" = "يعتمد على الرسوم"; "lightning__transfer_intro__title" = "رصيد\nالإنفاق"; -"lightning__transfer_intro__text" = "موّل رصيد إنفاقك للاستمتاع بمعاملات فورية ورخيصة مع الأصدقاء والعائلة والتجار."; +"lightning__transfer_intro__text" = "موّل رصيد إنفاقك للاستمتاع بمدفوعات Lightning فورية ورخيصة."; "lightning__transfer_intro__button" = "ابدأ"; "lightning__funding__text" = "أسهل خيار هو استخدام مدخرات Bitkit الخاصة بك أو إرسال بيتكوين من محفظة مختلفة."; "lightning__funding__title" = "موّل رصيد إنفاقك"; @@ -192,25 +192,30 @@ "lightning__transfer_hw__reconnect_error_title" = "إعادة توصيل الجهاز"; "lightning__transfer_hw__sign_title" = "وقّع باستخدام\nجهازك"; "lightning__transfer_hw__signed_title" = "تم توقيع\nالمعاملة"; +"lightning__transfer_hw__address" = "العنوان (أكّده على الجهاز)"; "lightning__transfer_to_savings_button" = "تحويل إلى المدخرات"; "lightning__transfer_to_spending_button" = "تحويل إلى الإنفاق"; +"lightning__transfer_from_savings_button" = "تحويل من المدخرات"; "lightning__spending_intro__title" = "تحويل\nإلى الإنفاق"; "lightning__spending_intro__text" = "حوّل الأموال إلى رصيد إنفاقك للاستمتاع بمعاملات فورية ورخيصة مع الأصدقاء والعائلة والتجار."; "lightning__spending_intro__button" = "ابدأ"; "lightning__spending_amount__quarter" = "25%"; "lightning__spending_amount__error_max__title" = "الحد الأقصى لرصيد الإنفاق"; "lightning__spending_amount__error_max__description" = "المبلغ الذي يمكنك تحويله إلى رصيد الإنفاق محدود حاليًا بـ ₿ {amount}."; -"lightning__spending_amount__error_fee" = "Couldn't get the network fee. Tap to try again."; +"lightning__spending_amount__error_fee" = "تعذّر الحصول على رسوم الشبكة. انقر للمحاولة مرة أخرى."; "lightning__spending_confirm__network_fee" = "رسوم الشبكة"; "lightning__spending_confirm__lsp_fee" = "رسوم الخدمة"; "lightning__spending_confirm__amount" = "إلى الإنفاق"; "lightning__spending_confirm__total" = "الإجمالي"; -"lightning__spending_confirm__spending_fee" = "Spending fee"; -"lightning__spending_confirm__instant_text" = "Ready in a few minutes"; -"lightning__spending_confirm__later" = "Later"; -"lightning__spending_confirm__later_text" = "After 3 confirmations, about 30 minutes"; -"lightning__spending_confirm__error_quote" = "Bitkit couldn't get the fees for this transfer. Check your connection and try again."; +"lightning__spending_confirm__instant_text" = "جاهز خلال بضع دقائق"; +"lightning__spending_confirm__later" = "لاحقًا"; +"lightning__spending_confirm__later_text" = "جاهز خلال 30 دقيقة تقريبًا"; +"lightning__spending_confirm__fee_max" = "كحد أقصى"; +"lightning__spending_confirm__fee_est" = "تقديري"; +"lightning__spending_confirm__error_quote" = "تعذّر على Bitkit الحصول على رسوم هذا التحويل. تحقق من اتصالك وحاول مرة أخرى."; "lightning__spending_confirm__fees_changed_title" = "تغيّرت الرسوم"; +"lightning__spending_confirm__max_changed_title" = "تغيّر المبلغ"; +"lightning__spending_confirm__max_changed" = "أقصى مبلغ يمكنك تحويله الآن هو {amount}، لأن معدلات الرسوم أو رصيد مدخراتك تغيّر أثناء وجودك في هذه الشاشة. اسحب مرة أخرى للتأكيد."; "lightning__spending_confirm__fees_changed_network" = "الرسوم أعلى بمقدار {amount} لأن معدلات الرسوم أو رصيد مدخراتك تغيّر أثناء وجودك في هذه الشاشة. اسحب مرة أخرى للتأكيد."; "lightning__savings_intro__title" = "تحويل\nإلى المدخرات"; "lightning__savings_intro__text" = "حوّل رصيد إنفاقك إلى مدخراتك لتخزين Bitcoin على المدى الطويل وتأمين مستقبلك."; @@ -263,8 +268,17 @@ "lightning__receiving_label" = "سعة الاستلام"; "lightning__setting_up_step1" = "جارٍ معالجة الدفع"; "lightning__setting_up_step2" = "نجح الدفع"; -"lightning__setting_up_step_spark" = "Adding To Spending"; +"lightning__setting_up_step_spark" = "جارٍ الإضافة إلى رصيد الإنفاق"; "lightning__setting_up_button" = "متابعة استخدام Bitkit"; +"lightning__setting_up__text_fast" = "يرجى الانتظار، تحويل أموالك قيد التنفيذ. يجب أن يستغرق هذا بضع دقائق."; +"lightning__setting_up__text_normal" = "يرجى الانتظار، تحويل أموالك قيد التنفيذ. يجب أن يستغرق هذا حوالي 30 دقيقة."; +"lightning__setting_up__fee_changed_title" = "التحويل السريع\nتغيّرت الرسوم"; +"lightning__setting_up__fee_changed_text" = "أصبحت رسوم التحويل السريع الآن {fee}. وافق للوصول إلى أموالك بسرعة، أو انتظر ±30 دقيقة."; +"lightning__setting_up__unavailable_title" = "التحويل السريع\nغير متاح"; +"lightning__setting_up__step_fee_changed" = "تغيّرت رسوم التحويل السريع"; +"lightning__setting_up__step_normal_speed" = "استخدام سرعة التحويل العادية"; +"lightning__setting_up__approve" = "موافقة"; +"lightning__setting_up__success_button" = "رائع!"; "lightning__node_info" = "عقدة Lightning"; "lightning__connections" = "اتصالات Lightning"; "lightning__conn_pending" = "الاتصالات المعلقة"; @@ -402,9 +416,11 @@ "lightning__spark_exit__progress_overview" = "نظرة عامة على التقدم"; "lightning__spark_exit__quote_text" = "ابدأ التحويل القسري فقط إذا لم يعد رصيد الإنفاق يعمل. قد لا تتوفر أموالك لمدة تصل إلى 4 أسابيع."; "lightning__spark_exit__send_to_address" = "إرسال إلى العنوان"; -"lightning__spark_learn__title" = "Transfer\nspeed"; -"lightning__spark_learn__text" = "Instant pays the provider to add your transfer to your spending balance before it confirms, so it is ready in a few minutes.\n\nLater waits for 3 confirmations, about 30 minutes, and costs less."; -"lightning__spark_learn__label" = "Spending balance after transfer"; +"lightning__spark_learn__title" = "سرعة\nالتحويل"; +"lightning__spark_learn__fast_text" = "تكون أموالك عادةً جاهزة للإنفاق خلال بضع دقائق، دون الحاجة إلى انتظار التأكيدات."; +"lightning__spark_learn__later_text" = "تصبح أموالك متاحة بعد 3 تأكيدات، عادةً خلال 30 دقيقة تقريبًا."; +"lightning__spark_learn__about_title" = "حول\nرصيد إنفاقك"; +"lightning__spark_learn__about_text" = "يستخدم رصيد إنفاقك Spark، التي تشغّلها Lightspark وBreez وFlashnet.\n\nيعتمد أمانه على تصرّف مشغّل واحد على الأقل بأمانة. يمكن للمشغّلين إيقاف الوصول مؤقتًا، ويتطلب السحب دون تعاونهم أن تبدأ خروجًا على السلسلة (on-chain)."; "lightning__reserve_balance" = "رصيد الاحتياطي (غير قابل للإنفاق)"; "lightning__total_size" = "الحجم الإجمالي للقناة"; "lightning__fees" = "الرسوم"; diff --git a/Bitkit/Resources/Localization/ca.lproj/Localizable.strings b/Bitkit/Resources/Localization/ca.lproj/Localizable.strings index 92d1ba0ea3..9b3e43636e 100644 --- a/Bitkit/Resources/Localization/ca.lproj/Localizable.strings +++ b/Bitkit/Resources/Localization/ca.lproj/Localizable.strings @@ -196,7 +196,7 @@ "fee__custom__longTitle" = "Personalitzat"; "fee__custom__longRange" = "Depèn de la tarifa"; "lightning__transfer_intro__title" = "Saldo de\ndespesa"; -"lightning__transfer_intro__text" = "Finança el teu saldo de despesa per gaudir de transaccions instantànies i barates amb amics, família i comerciants."; +"lightning__transfer_intro__text" = "Finança el teu saldo de despesa per gaudir de pagaments Lightning instantanis i barats."; "lightning__transfer_intro__button" = "Començar"; "lightning__funding__nav_title" = "Saldo de despesa"; "lightning__funding__text" = "La forma més fàcil és utilitzar els teus estalvis de Bitkit o enviar bitcoin des d\'una altra cartera."; @@ -218,8 +218,10 @@ "lightning__transfer_hw__reconnect_error_title" = "Torna a connectar el dispositiu"; "lightning__transfer_hw__sign_title" = "Signa amb\nel teu dispositiu"; "lightning__transfer_hw__signed_title" = "Transacció\nsignada"; +"lightning__transfer_hw__address" = "Adreça (confirma-la al dispositiu)"; "lightning__transfer_to_savings_button" = "Transferir a estalvis"; "lightning__transfer_to_spending_button" = "Transferir a despesa"; +"lightning__transfer_from_savings_button" = "Transferir des d\'estalvis"; "lightning__spending_intro__title" = "Transferir\na despesa"; "lightning__spending_intro__text" = "Transfereix fons al teu saldo de despesa per gaudir de transaccions instantànies i barates amb amics, família i comerciants."; "lightning__spending_intro__button" = "Començar"; @@ -227,18 +229,21 @@ "lightning__spending_amount__quarter" = "25%"; "lightning__spending_amount__error_max__title" = "Màxim del saldo de despesa"; "lightning__spending_amount__error_max__description" = "L'import que pots transferir al teu saldo de despesa està limitat a ₿ {amount}."; -"lightning__spending_amount__error_fee" = "Couldn't get the network fee. Tap to try again."; +"lightning__spending_amount__error_fee" = "No s'ha pogut obtenir la comissió de xarxa. Toca per tornar-ho a provar."; "lightning__spending_confirm__network_fee" = "Comissions de xarxa"; "lightning__spending_confirm__lsp_fee" = "Comissions de servei"; "lightning__spending_confirm__amount" = "A despesa"; "lightning__spending_confirm__total" = "Total"; -"lightning__spending_confirm__spending_fee" = "Spending fee"; -"lightning__spending_confirm__instant_text" = "Ready in a few minutes"; -"lightning__spending_confirm__later" = "Later"; -"lightning__spending_confirm__later_text" = "After 3 confirmations, about 30 minutes"; -"lightning__spending_confirm__error_quote" = "Bitkit couldn't get the fees for this transfer. Check your connection and try again."; -"lightning__spending_confirm__fees_changed_title" = "Les tarifes han canviat"; -"lightning__spending_confirm__fees_changed_network" = "Les tarifes són {amount} més altes perquè les taxes de tarifa o el teu saldo d'estalvis han canviat mentre eres en aquesta pantalla. Torna a desplaçar per confirmar."; +"lightning__spending_confirm__instant_text" = "A punt en uns minuts"; +"lightning__spending_confirm__later" = "Més tard"; +"lightning__spending_confirm__later_text" = "A punt en uns 30 minuts"; +"lightning__spending_confirm__fee_max" = "màx."; +"lightning__spending_confirm__fee_est" = "aprox."; +"lightning__spending_confirm__error_quote" = "Bitkit no ha pogut obtenir les comissions d'aquesta transferència. Comprova la connexió i torna-ho a provar."; +"lightning__spending_confirm__fees_changed_title" = "Les comissions han canviat"; +"lightning__spending_confirm__max_changed_title" = "L'import ha canviat"; +"lightning__spending_confirm__max_changed" = "El màxim que pots transferir ara és {amount}, perquè les taxes de comissió o el teu saldo d'estalvis han canviat mentre eres en aquesta pantalla. Torna a lliscar per confirmar."; +"lightning__spending_confirm__fees_changed_network" = "Les comissions són {amount} més altes perquè les taxes de comissió o el teu saldo d'estalvis han canviat mentre eres en aquesta pantalla. Torna a lliscar per confirmar."; "lightning__savings_intro__title" = "Transferir\na estalvis"; "lightning__savings_intro__text" = "Transfereix el teu saldo de despesa als teus estalvis per emmagatzemar els teus Bitcoin a llarg termini i assegurar el teu futur."; "lightning__savings_intro__button" = "Començar"; @@ -292,8 +297,17 @@ "lightning__receiving_label" = "Capacitat de recepció"; "lightning__setting_up_step1" = "Processant pagament"; "lightning__setting_up_step2" = "Pagament realitzat amb èxit"; -"lightning__setting_up_step_spark" = "Adding To Spending"; +"lightning__setting_up_step_spark" = "Afegint al saldo de despesa"; "lightning__setting_up_button" = "Continua utilitzant Bitkit"; +"lightning__setting_up__text_fast" = "Si us plau, espera, la transferència de fons està en curs. Això hauria de trigar uns minuts."; +"lightning__setting_up__text_normal" = "Si us plau, espera, la transferència de fons està en curs. Això hauria de trigar uns 30 minuts."; +"lightning__setting_up__fee_changed_title" = "Transferència ràpida\ncomissió canviada"; +"lightning__setting_up__fee_changed_text" = "La comissió de transferència ràpida ara és de {fee}. Aprova-la per accedir ràpidament als teus fons, o espera ±30 min."; +"lightning__setting_up__unavailable_title" = "Transferència ràpida\nno disponible"; +"lightning__setting_up__step_fee_changed" = "Ha canviat la comissió de transferència ràpida"; +"lightning__setting_up__step_normal_speed" = "S'utilitza la velocitat normal"; +"lightning__setting_up__approve" = "Aprova"; +"lightning__setting_up__success_button" = "Genial!"; "lightning__node_info" = "Node Lightning"; "lightning__node_id" = "ID de Node LDK"; "lightning__node_disconnected" = "desconnectat"; @@ -439,9 +453,11 @@ "lightning__spark_exit__progress_overview" = "Resum del progrés"; "lightning__spark_exit__quote_text" = "Inicia una transferència forçosa només si el teu saldo de despesa ja no funciona. Els teus fons poden no estar disponibles fins a 4 setmanes."; "lightning__spark_exit__send_to_address" = "Enviar a l'adreça"; -"lightning__spark_learn__title" = "Transfer\nspeed"; -"lightning__spark_learn__text" = "Instant pays the provider to add your transfer to your spending balance before it confirms, so it is ready in a few minutes.\n\nLater waits for 3 confirmations, about 30 minutes, and costs less."; -"lightning__spark_learn__label" = "Spending balance after transfer"; +"lightning__spark_learn__title" = "Velocitat de\ntransferència"; +"lightning__spark_learn__fast_text" = "Els teus fons solen estar llestos per gastar en uns minuts, sense esperar confirmacions."; +"lightning__spark_learn__later_text" = "Els teus fons estan disponibles després de 3 confirmacions, normalment en uns 30 minuts."; +"lightning__spark_learn__about_title" = "Sobre el teu\nsaldo de despesa"; +"lightning__spark_learn__about_text" = "El teu saldo de despesa utilitza Spark, operat per Lightspark, Breez i Flashnet.\n\nLa seva seguretat depèn que almenys un operador actuï honestament. Els operadors poden pausar l'accés, i retirar sense la seva cooperació requereix que iniciïs una sortida on-chain."; "lightning__reserve_balance" = "Saldo de reserva (no gastable)"; "lightning__total_size" = "Mida total del canal"; "lightning__fees" = "Comissions"; diff --git a/Bitkit/Resources/Localization/cs.lproj/Localizable.strings b/Bitkit/Resources/Localization/cs.lproj/Localizable.strings index 7d20e2bd92..f58c58725f 100644 --- a/Bitkit/Resources/Localization/cs.lproj/Localizable.strings +++ b/Bitkit/Resources/Localization/cs.lproj/Localizable.strings @@ -196,7 +196,7 @@ "fee__custom__shortRange" = "Odvíjí se od poplatku"; "fee__custom__longRange" = "Odvíjí se od poplatku"; "lightning__transfer_intro__title" = "Disponibilní\nZůstatek"; -"lightning__transfer_intro__text" = "Navyšte svůj disponibilní zůstatek a užívejte si okamžité a levné transakce s přáteli, rodinou a obchodníky."; +"lightning__transfer_intro__text" = "Navyšte svůj disponibilní zůstatek a využívejte okamžité a levné Lightning platby."; "lightning__transfer_intro__button" = "Začít"; "lightning__funding__nav_title" = "Dostupný zůstatek"; "lightning__funding__text" = "Nejjednodušší možností je použít úspory z Bitkitu nebo poslat bitcoin z jiné peněženky."; @@ -219,8 +219,10 @@ "lightning__transfer_hw__reconnect_error_title" = "Znovu připojte hardwarové zařízení"; "lightning__transfer_hw__sign_title" = "Podepište\nsvým zařízením"; "lightning__transfer_hw__signed_title" = "Transakce\npodepsána"; +"lightning__transfer_hw__address" = "Adresa (potvrďte na zařízení)"; "lightning__transfer_to_savings_button" = "Převést do úspor"; "lightning__transfer_to_spending_button" = "Převést do útraty"; +"lightning__transfer_from_savings_button" = "Převod z úspor"; "lightning__spending_intro__title" = "Převést\ndo výdajů"; "lightning__spending_intro__text" = "Převeďte peníze na svůj disponibilní zůstatek a využívejte okamžité a levné transakce s přáteli, rodinou a obchodníky."; "lightning__spending_intro__button" = "Začít"; @@ -234,18 +236,21 @@ "lightning__spending_amount__error_min__description" = "K vytvoření disponibilního zůstatku je zapotřebí minimálně ₿ {amount}."; "lightning__spending_amount__error_max__title" = "Maximální disponibilní zůstatek"; "lightning__spending_amount__error_max__description" = "Částka, kterou můžete převést na svůj disponibilní zůstatek, je v současné době omezena na ₿ {amount}."; -"lightning__spending_amount__error_fee" = "Couldn't get the network fee. Tap to try again."; +"lightning__spending_amount__error_fee" = "Nepodařilo se získat síťový poplatek. Klepnutím to zkuste znovu."; "lightning__spending_amount__error_max__description_zero" = "Váš převod do disponibilního zůstatku je omezen z důvodu pravidel likvidity. Podrobnosti naleznete v Centru nápovědy."; "lightning__spending_confirm__network_fee" = "Síťové poplatky"; "lightning__spending_confirm__lsp_fee" = "Poplatky za služby"; "lightning__spending_confirm__amount" = "Do výdajů"; "lightning__spending_confirm__total" = "Celkem"; -"lightning__spending_confirm__spending_fee" = "Spending fee"; -"lightning__spending_confirm__instant_text" = "Ready in a few minutes"; -"lightning__spending_confirm__later" = "Later"; -"lightning__spending_confirm__later_text" = "After 3 confirmations, about 30 minutes"; -"lightning__spending_confirm__error_quote" = "Bitkit couldn't get the fees for this transfer. Check your connection and try again."; +"lightning__spending_confirm__instant_text" = "Připraveno za pár minut"; +"lightning__spending_confirm__later" = "Později"; +"lightning__spending_confirm__later_text" = "Připraveno asi za 30 minut"; +"lightning__spending_confirm__fee_max" = "max."; +"lightning__spending_confirm__fee_est" = "odh."; +"lightning__spending_confirm__error_quote" = "Bitkit nemohl získat poplatky za tento převod. Zkontrolujte připojení a zkuste to znovu."; "lightning__spending_confirm__fees_changed_title" = "Poplatky se změnily"; +"lightning__spending_confirm__max_changed_title" = "Částka se změnila"; +"lightning__spending_confirm__max_changed" = "Nyní můžete převést nejvýše {amount}, protože se během zobrazení této obrazovky změnily sazby poplatků nebo zůstatek vašich úspor. Pro potvrzení přejeďte znovu."; "lightning__spending_confirm__fees_changed_network" = "Poplatky jsou o {amount} vyšší, protože se během zobrazení této obrazovky změnily sazby poplatků nebo zůstatek vašich úspor. Pro potvrzení přejeďte znovu."; "lightning__savings_intro__title" = "Převést\ndo úspor"; "lightning__savings_intro__text" = "Převeďte si disponibilní zůstatek na spoření, abyste si Bitcoiny uložili na delší dobu a zajistili si budoucnost."; @@ -302,8 +307,17 @@ "lightning__setting_up_header" = "V převodu"; "lightning__setting_up_step1" = "Zpracování platby"; "lightning__setting_up_step2" = "Platba úspěšně proběhla"; -"lightning__setting_up_step_spark" = "Adding To Spending"; +"lightning__setting_up_step_spark" = "Přidávání na disponibilní zůstatek"; "lightning__setting_up_button" = "Pokračujte v používání Bitkit"; +"lightning__setting_up__text_fast" = "Počkejte prosím, probíhá převod finančních prostředků. To by mělo trvat pár minut."; +"lightning__setting_up__text_normal" = "Počkejte prosím, probíhá převod finančních prostředků. To by mělo trvat asi 30 minut."; +"lightning__setting_up__fee_changed_title" = "Rychlý převod\nzměna poplatku"; +"lightning__setting_up__fee_changed_text" = "Poplatek za rychlý převod je nyní {fee}. Schvalte jej pro rychlý přístup k prostředkům, nebo počkejte ±30 min."; +"lightning__setting_up__unavailable_title" = "Rychlý převod\nnení dostupný"; +"lightning__setting_up__step_fee_changed" = "Poplatek za rychlý převod se změnil"; +"lightning__setting_up__step_normal_speed" = "Použití standardní rychlosti převodu"; +"lightning__setting_up__approve" = "Schválit"; +"lightning__setting_up__success_button" = "Skvělé!"; "lightning__node_info" = "Lightning uzel"; "lightning__node_id" = "ID uzlu LDK"; "lightning__node_disconnected" = "Odpojeno"; @@ -455,9 +469,11 @@ "lightning__spark_exit__progress_overview" = "Přehled průběhu"; "lightning__spark_exit__quote_text" = "Vynucený převod zahajte, jen pokud váš výdajový zůstatek přestal fungovat. Vaše prostředky mohou být nedostupné až 4 týdny."; "lightning__spark_exit__send_to_address" = "Odeslat na adresu"; -"lightning__spark_learn__title" = "Transfer\nspeed"; -"lightning__spark_learn__text" = "Instant pays the provider to add your transfer to your spending balance before it confirms, so it is ready in a few minutes.\n\nLater waits for 3 confirmations, about 30 minutes, and costs less."; -"lightning__spark_learn__label" = "Spending balance after transfer"; +"lightning__spark_learn__title" = "Rychlost\npřevodu"; +"lightning__spark_learn__fast_text" = "Vaše prostředky jsou obvykle připraveny k utracení během několika minut, bez čekání na potvrzení."; +"lightning__spark_learn__later_text" = "Vaše prostředky budou dostupné po 3 potvrzeních, obvykle asi za 30 minut."; +"lightning__spark_learn__about_title" = "O vašem\ndisponibilním zůstatku"; +"lightning__spark_learn__about_text" = "Váš disponibilní zůstatek využívá Spark, provozovaný společnostmi Lightspark, Breez a Flashnet.\n\nJeho bezpečnost závisí na tom, že alespoň jeden provozovatel jedná poctivě. Provozovatelé mohou přístup pozastavit a výběr bez jejich spolupráce vyžaduje, abyste zahájili on-chain výstup."; "lightning__reserve_balance" = "Rezervní zůstatek"; "lightning__total_size" = "Celková velikost kanálu"; "lightning__fees" = "Poplatky"; diff --git a/Bitkit/Resources/Localization/de.lproj/Localizable.strings b/Bitkit/Resources/Localization/de.lproj/Localizable.strings index 5d085d3dd8..d26c443e9a 100644 --- a/Bitkit/Resources/Localization/de.lproj/Localizable.strings +++ b/Bitkit/Resources/Localization/de.lproj/Localizable.strings @@ -195,8 +195,8 @@ "fee__custom__range" = "Abhängig von der Gebühr"; "fee__custom__shortRange" = "Abhängig von der Gebühr"; "fee__custom__longRange" = "Abhängig von der Gebühr"; -"lightning__transfer_intro__title" = "Spending\nBalance"; -"lightning__transfer_intro__text" = "Fülle dein Guthaben auf, um sofortige und günstige Transaktionen mit Freunden, Familie und Händlern zu genießen."; +"lightning__transfer_intro__title" = "Ausgaben-\nguthaben"; +"lightning__transfer_intro__text" = "Lade dein Ausgabenguthaben auf und genieße sofortige, günstige Lightning-Zahlungen."; "lightning__transfer_intro__button" = "Los geht\'s"; "lightning__funding__nav_title" = "Spending Balance"; "lightning__funding__text" = "Am einfachsten ist es, deine Bitkit-Ersparnisse zu verwenden oder Bitcoin von einer anderen Wallet zu senden."; @@ -208,7 +208,7 @@ "lightning__no_funds__title" = "Keine verfügbaren Mittel"; "lightning__no_funds__description" = "Bevor du Geld von deinem Sparkonto übertragen kannst, musst du Bitcoin zu deiner Bitkit Wallet senden."; "lightning__no_funds__fund" = "Wallet aufladen"; -"lightning__spending_amount__title" = "zu den Ausgaben"; +"lightning__spending_amount__title" = "Übertragung\nzu den Ausgaben"; "lightning__transfer__nav_title" = "Übertrage Guthaben"; "lightning__transfer__confirm" = "Bitte\nbestätige"; "lightning__transfer__custom_fee" = "Benutzerdefiniert fee"; @@ -219,9 +219,11 @@ "lightning__transfer_hw__reconnect_error_title" = "Hardware-Gerät neu verbinden"; "lightning__transfer_hw__sign_title" = "Mit deinem\nGerät signieren"; "lightning__transfer_hw__signed_title" = "Transaktion\nsigniert"; +"lightning__transfer_hw__address" = "Adresse (auf dem Gerät bestätigen)"; "lightning__transfer_to_savings_button" = "Zu Ersparnissen transferieren"; "lightning__transfer_to_spending_button" = "Zu Ausgaben transferieren"; -"lightning__spending_intro__title" = "zu den Ausgaben"; +"lightning__transfer_from_savings_button" = "Von Sparkonto übertragen"; +"lightning__spending_intro__title" = "Übertragung\nzu den Ausgaben"; "lightning__spending_intro__text" = "Überweisen Sie Geld auf Ihr Guthaben, um sofortige und günstige Transaktionen mit Freunden, Familie und Händlern zu tätigen."; "lightning__spending_intro__button" = "Los geht\'s"; "lightning__transfer_failed__nav_title" = "Übertragung fehlgeschlagen"; @@ -233,17 +235,20 @@ "lightning__spending_amount__error_min__title" = "Minimales Sparguthaben"; "lightning__spending_amount__error_max__title" = "Maximaler Ausgabensaldo"; "lightning__spending_amount__error_max__description" = "Der Betrag, den Sie auf Ihr Ausgabenkonto übertragen können, ist derzeit auf ₿ {amount} begrenzt."; -"lightning__spending_amount__error_fee" = "Couldn't get the network fee. Tap to try again."; +"lightning__spending_amount__error_fee" = "Netzgebühr konnte nicht abgerufen werden. Tippe, um es erneut zu versuchen."; "lightning__spending_confirm__network_fee" = "Netzgebühren"; "lightning__spending_confirm__lsp_fee" = "Servicegebühren"; "lightning__spending_confirm__amount" = "Zu den Ausgaben"; "lightning__spending_confirm__total" = "Total"; -"lightning__spending_confirm__spending_fee" = "Spending fee"; -"lightning__spending_confirm__instant_text" = "Ready in a few minutes"; -"lightning__spending_confirm__later" = "Later"; -"lightning__spending_confirm__later_text" = "After 3 confirmations, about 30 minutes"; -"lightning__spending_confirm__error_quote" = "Bitkit couldn't get the fees for this transfer. Check your connection and try again."; +"lightning__spending_confirm__instant_text" = "In wenigen Minuten bereit"; +"lightning__spending_confirm__later" = "Später"; +"lightning__spending_confirm__later_text" = "In etwa 30 Minuten bereit"; +"lightning__spending_confirm__fee_max" = "max."; +"lightning__spending_confirm__fee_est" = "ca."; +"lightning__spending_confirm__error_quote" = "Bitkit konnte die Gebühren für diese Übertragung nicht abrufen. Prüfe deine Verbindung und versuche es erneut."; "lightning__spending_confirm__fees_changed_title" = "Gebühren geändert"; +"lightning__spending_confirm__max_changed_title" = "Betrag geändert"; +"lightning__spending_confirm__max_changed" = "Du kannst jetzt höchstens {amount} übertragen, weil sich die Gebührensätze oder dein Sparguthaben geändert haben, während du auf diesem Bildschirm warst. Wische erneut, um zu bestätigen."; "lightning__spending_confirm__fees_changed_network" = "Die Gebühren sind um {amount} höher, weil sich die Gebührensätze oder dein Sparguthaben geändert haben, während du auf diesem Bildschirm warst. Wische erneut, um zu bestätigen."; "lightning__savings_intro__title" = "Übertragung\nzu den Einsparungen"; "lightning__savings_intro__text" = "Übertragen Sie Ihr Ausgabensaldo auf Ihr Sparguthaben, um Ihre Bitcoin langfristig zu speichern und Ihre Zukunft zu sichern."; @@ -274,7 +279,7 @@ "lightning__savings_spark_failed__text_partial" = "Dein Kanalguthaben wird ins Sparkonto verschoben, aber dein Spark-Guthaben konnte nicht verschoben werden und bleibt in deinem Ausgabenguthaben."; "lightning__savings_spark_failed__toast" = "Übertragung auf das Sparkonto fehlgeschlagen"; "lightning__transfer_success__nav_title" = "Übertragung erfolgreich"; -"lightning__transfer_success__title_spending" = "Bewegte Mittel\nzu den Ausgaben"; +"lightning__transfer_success__title_spending" = "Guthaben verschoben\nzu den Ausgaben"; "lightning__transfer_success__text_spending" = "Deine Gelder wurden übertragen und dein Ausgabenguthaben ist einsatzbereit."; "lightning__transfer_success__title_savings" = "Bewegte Mittel\nzu den Einsparungen"; "lightning__transfer_success__text_savings" = "Ihr Geld wurde überwiesen. Sie können diese Mittel sofort verwenden."; @@ -300,8 +305,17 @@ "lightning__setting_up_header" = "In Übertragung"; "lightning__setting_up_step1" = "Zahlung wird verarbeitet"; "lightning__setting_up_step2" = "Zahlung erfolgreich"; -"lightning__setting_up_step_spark" = "Adding To Spending"; +"lightning__setting_up_step_spark" = "Wird zum Ausgabenguthaben hinzugefügt"; "lightning__setting_up_button" = "Bitkit weiter verwenden"; +"lightning__setting_up__text_fast" = "Bitte warte, deine Übertragung läuft. Das dauert ein paar Minuten."; +"lightning__setting_up__text_normal" = "Bitte warte, deine Übertragung läuft. Das dauert etwa 30 Minuten."; +"lightning__setting_up__fee_changed_title" = "Schnelle Übertragung\nGebühr geändert"; +"lightning__setting_up__fee_changed_text" = "Die Gebühr für die schnelle Übertragung beträgt jetzt {fee}. Genehmige, um schnell auf dein Guthaben zuzugreifen, oder warte ±30 Min."; +"lightning__setting_up__unavailable_title" = "Schnelle Übertragung\nnicht verfügbar"; +"lightning__setting_up__step_fee_changed" = "Gebühr für schnelle Übertragung geändert"; +"lightning__setting_up__step_normal_speed" = "Normale Geschwindigkeit wird genutzt"; +"lightning__setting_up__approve" = "Genehmigen"; +"lightning__setting_up__success_button" = "Super!"; "lightning__node_info" = "Lightning Node"; "lightning__node_id" = "LDK Node ID"; "lightning__node_disconnected" = "getrennt"; @@ -453,9 +467,11 @@ "lightning__spark_exit__progress_overview" = "Fortschrittsübersicht"; "lightning__spark_exit__quote_text" = "Starte eine forcierte Übertragung nur, wenn dein Ausgabenguthaben nicht mehr funktioniert. Deine Mittel können bis zu 4 Wochen nicht verfügbar sein."; "lightning__spark_exit__send_to_address" = "An Adresse senden"; -"lightning__spark_learn__title" = "Transfer\nspeed"; -"lightning__spark_learn__text" = "Instant pays the provider to add your transfer to your spending balance before it confirms, so it is ready in a few minutes.\n\nLater waits for 3 confirmations, about 30 minutes, and costs less."; -"lightning__spark_learn__label" = "Spending balance after transfer"; +"lightning__spark_learn__title" = "Übertragungs-\ntempo"; +"lightning__spark_learn__fast_text" = "Dein Guthaben ist meist innerhalb weniger Minuten verfügbar, ohne auf Bestätigungen warten zu müssen."; +"lightning__spark_learn__later_text" = "Dein Guthaben ist nach 3 Bestätigungen verfügbar, meist nach etwa 30 Minuten."; +"lightning__spark_learn__about_title" = "Über dein\nAusgabenguthaben"; +"lightning__spark_learn__about_text" = "Dein Ausgabenguthaben nutzt Spark, betrieben von Lightspark, Breez und Flashnet.\n\nSeine Sicherheit hängt davon ab, dass mindestens ein Betreiber ehrlich handelt. Betreiber können den Zugriff pausieren, und für eine Auszahlung ohne ihre Mitwirkung musst du einen On-Chain-Exit einleiten."; "lightning__reserve_balance" = "Reserveguthaben"; "lightning__total_size" = "Gesamtgröße des Channels"; "lightning__fees" = "Gebühren"; diff --git a/Bitkit/Resources/Localization/el.lproj/Localizable.strings b/Bitkit/Resources/Localization/el.lproj/Localizable.strings index 225ae2950d..79ac6e2d30 100644 --- a/Bitkit/Resources/Localization/el.lproj/Localizable.strings +++ b/Bitkit/Resources/Localization/el.lproj/Localizable.strings @@ -192,7 +192,7 @@ "fee__custom__shortRange" = "Εξαρτάται από το τέλος"; "fee__custom__longRange" = "Εξαρτάται από την προμήθεια"; "lightning__transfer_intro__title" = "Υπόλοιπο\nΔαπανών"; -"lightning__transfer_intro__text" = "Χρηματοδοτήστε το υπόλοιπο δαπανών σας για να απολαύσετε άμεσες και φθηνές συναλλαγές με φίλους, οικογένεια και εμπόρους."; +"lightning__transfer_intro__text" = "Χρηματοδοτήστε το υπόλοιπο δαπανών σας για να απολαύσετε άμεσες και φθηνές πληρωμές Lightning."; "lightning__transfer_intro__button" = "Ξεκινήστε"; "lightning__funding__nav_title" = "Υπόλοιπο Δαπανών"; "lightning__funding__text" = "Ο ευκολότερος τρόπος είναι να χρησιμοποιήσεις τις αποταμιεύσεις Bitkit ή να στείλεις bitcoin από διαφορετικό πορτοφόλι."; @@ -214,8 +214,10 @@ "lightning__transfer_hw__reconnect_error_title" = "Επανασύνδεση συσκευής υλικού"; "lightning__transfer_hw__sign_title" = "Υπόγραψε με\nτη συσκευή σου"; "lightning__transfer_hw__signed_title" = "Η συναλλαγή\nυπογράφηκε"; +"lightning__transfer_hw__address" = "Διεύθυνση (επιβεβαιώστε στη συσκευή)"; "lightning__transfer_to_savings_button" = "Μεταφορά στις Αποταμιεύσεις"; "lightning__transfer_to_spending_button" = "Μεταφορά στις Δαπάνες"; +"lightning__transfer_from_savings_button" = "Μεταφορά από Αποταμιεύσεις"; "lightning__spending_intro__title" = "Μεταφορά\nστις δαπάνες"; "lightning__spending_intro__text" = "Μεταφέρετε κεφάλαια στο υπόλοιπο δαπανών σας για να απολαύσετε άμεσες και φθηνές συναλλαγές με φίλους, οικογένεια και εμπόρους."; "lightning__spending_intro__button" = "Ξεκινήστε"; @@ -223,17 +225,20 @@ "lightning__spending_amount__quarter" = "25%"; "lightning__spending_amount__error_max__title" = "Μέγιστο υπόλοιπο δαπανών"; "lightning__spending_amount__error_max__description" = "Το ποσό που μπορείς να μεταφέρεις στο υπόλοιπο δαπανών περιορίζεται προς το παρόν σε ₿ {amount}."; -"lightning__spending_amount__error_fee" = "Couldn't get the network fee. Tap to try again."; +"lightning__spending_amount__error_fee" = "Δεν ήταν δυνατή η λήψη των τελών δικτύου. Πατήστε για νέα προσπάθεια."; "lightning__spending_confirm__network_fee" = "Τέλη δικτύου"; "lightning__spending_confirm__lsp_fee" = "Τέλη υπηρεσίας"; "lightning__spending_confirm__amount" = "Στις δαπάνες"; "lightning__spending_confirm__total" = "Σύνολο"; -"lightning__spending_confirm__spending_fee" = "Spending fee"; -"lightning__spending_confirm__instant_text" = "Ready in a few minutes"; -"lightning__spending_confirm__later" = "Later"; -"lightning__spending_confirm__later_text" = "After 3 confirmations, about 30 minutes"; -"lightning__spending_confirm__error_quote" = "Bitkit couldn't get the fees for this transfer. Check your connection and try again."; +"lightning__spending_confirm__instant_text" = "Έτοιμο σε λίγα λεπτά"; +"lightning__spending_confirm__later" = "Αργότερα"; +"lightning__spending_confirm__later_text" = "Έτοιμο σε περίπου 30 λεπτά"; +"lightning__spending_confirm__fee_max" = "μέγ."; +"lightning__spending_confirm__fee_est" = "εκτ."; +"lightning__spending_confirm__error_quote" = "Το Bitkit δεν μπόρεσε να λάβει τα τέλη για αυτή τη μεταφορά. Ελέγξτε τη σύνδεσή σας και δοκιμάστε ξανά."; "lightning__spending_confirm__fees_changed_title" = "Τα τέλη άλλαξαν"; +"lightning__spending_confirm__max_changed_title" = "Το ποσό άλλαξε"; +"lightning__spending_confirm__max_changed" = "Το μέγιστο που μπορείτε να μεταφέρετε είναι πλέον {amount}, επειδή τα ποσοστά τελών ή το υπόλοιπο αποταμιεύσεων άλλαξαν ενώ ήσασταν σε αυτή την οθόνη. Σύρετε ξανά για επιβεβαίωση."; "lightning__spending_confirm__fees_changed_network" = "Τα τέλη είναι {amount} υψηλότερα, επειδή τα ποσοστά τελών ή το υπόλοιπο αποταμιεύσεων άλλαξαν ενώ ήσουν σε αυτή την οθόνη. Σύρε ξανά για επιβεβαίωση."; "lightning__savings_intro__title" = "Μεταφορά\nστις αποταμιεύσεις"; "lightning__savings_intro__text" = "Μεταφέρετε το υπόλοιπο δαπανών σας στις αποταμιεύσεις για να αποθηκεύσετε τα Bitcoin σας μακροπρόθεσμα και να εξασφαλίσετε το μέλλον σας."; @@ -286,8 +291,17 @@ "lightning__receiving_label" = "Χωρητικότητα λήψης"; "lightning__setting_up_step1" = "Επεξεργασία Πληρωμής"; "lightning__setting_up_step2" = "Επιτυχής Πληρωμή"; -"lightning__setting_up_step_spark" = "Adding To Spending"; +"lightning__setting_up_step_spark" = "Προσθήκη στο Υπόλοιπο Δαπανών"; "lightning__setting_up_button" = "Συνεχίστε να Χρησιμοποιείτε το Bitkit"; +"lightning__setting_up__text_fast" = "Παρακαλώ περιμένετε, η μεταφορά κεφαλαίων σας είναι σε εξέλιξη. Αυτό θα διαρκέσει λίγα λεπτά."; +"lightning__setting_up__text_normal" = "Παρακαλώ περιμένετε, η μεταφορά κεφαλαίων σας είναι σε εξέλιξη. Αυτό θα διαρκέσει περίπου 30 λεπτά."; +"lightning__setting_up__fee_changed_title" = "Γρήγορη μεταφορά\nτα τέλη άλλαξαν"; +"lightning__setting_up__fee_changed_text" = "Τα τέλη γρήγορης μεταφοράς είναι πλέον {fee}. Εγκρίνετε για γρήγορη πρόσβαση στα κεφάλαιά σας ή περιμένετε ±30 λεπτά."; +"lightning__setting_up__unavailable_title" = "Γρήγορη μεταφορά\nμη διαθέσιμη"; +"lightning__setting_up__step_fee_changed" = "Άλλαξαν τα Τέλη Γρήγορης Μεταφοράς"; +"lightning__setting_up__step_normal_speed" = "Χρήση Κανονικής Ταχύτητας Μεταφοράς"; +"lightning__setting_up__approve" = "Έγκριση"; +"lightning__setting_up__success_button" = "Τέλεια!"; "lightning__node_info" = "Κόμβος Lightning"; "lightning__node_disconnected" = "αποσυνδεδεμένο"; "lightning__connections" = "Συνδέσεις Lightning"; @@ -426,9 +440,11 @@ "lightning__spark_exit__progress_overview" = "Επισκόπηση προόδου"; "lightning__spark_exit__quote_text" = "Ξεκινήστε αναγκαστική μεταφορά μόνο αν το υπόλοιπο δαπανών σας δεν λειτουργεί πια. Τα κεφάλαιά σας μπορεί να μην είναι διαθέσιμα έως και 4 εβδομάδες."; "lightning__spark_exit__send_to_address" = "Αποστολή σε διεύθυνση"; -"lightning__spark_learn__title" = "Transfer\nspeed"; -"lightning__spark_learn__text" = "Instant pays the provider to add your transfer to your spending balance before it confirms, so it is ready in a few minutes.\n\nLater waits for 3 confirmations, about 30 minutes, and costs less."; -"lightning__spark_learn__label" = "Spending balance after transfer"; +"lightning__spark_learn__title" = "Ταχύτητα\nμεταφοράς"; +"lightning__spark_learn__fast_text" = "Τα κεφάλαιά σας είναι συνήθως έτοιμα για χρήση μέσα σε λίγα λεπτά, χωρίς αναμονή επιβεβαιώσεων."; +"lightning__spark_learn__later_text" = "Τα κεφάλαιά σας γίνονται διαθέσιμα μετά από 3 επιβεβαιώσεις, συνήθως σε περίπου 30 λεπτά."; +"lightning__spark_learn__about_title" = "Σχετικά με το\nυπόλοιπο δαπανών"; +"lightning__spark_learn__about_text" = "Το υπόλοιπο δαπανών σας χρησιμοποιεί το Spark, που λειτουργούν οι Lightspark, Breez και Flashnet.\n\nΗ ασφάλειά του εξαρτάται από το να ενεργεί έντιμα τουλάχιστον ένας διαχειριστής. Οι διαχειριστές μπορούν να παύσουν την πρόσβαση, και η ανάληψη χωρίς τη συνεργασία τους απαιτεί να ξεκινήσετε μια έξοδο on-chain."; "lightning__reserve_balance" = "Υπόλοιπο αποθεματικού (μη δαπανήσιμο)"; "lightning__total_size" = "Συνολικό μέγεθος καναλιού"; "lightning__fees" = "Τέλη"; diff --git a/Bitkit/Resources/Localization/en.lproj/Localizable.strings b/Bitkit/Resources/Localization/en.lproj/Localizable.strings index ed2215b061..3ec94d9875 100644 --- a/Bitkit/Resources/Localization/en.lproj/Localizable.strings +++ b/Bitkit/Resources/Localization/en.lproj/Localizable.strings @@ -189,18 +189,18 @@ "fee__custom__shortDescription" = "Depends on the fee"; "fee__custom__range" = "Depends on the fee"; "lightning__transfer_intro__title" = "Spending\nBalance"; -"lightning__transfer_intro__text" = "Fund your spending balance to enjoy instant and cheap transactions with friends, family, and merchants."; +"lightning__transfer_intro__text" = "Fund your spending balance to enjoy instant and cheap Lightning payments."; "lightning__transfer_intro__button" = "Get Started"; "lightning__funding__nav_title" = "Spending Balance"; "lightning__funding__text" = "The easiest option is to use your Bitkit savings or send bitcoin from a different wallet."; "lightning__funding__title" = "Fund your spending balance"; -"lightning__funding__button1" = "Transfer From Savings"; -"lightning__funding__button2" = "Use Other Wallet"; -"lightning__funding__button3" = "Manual Setup"; +"lightning__funding__button1" = "Transfer from Savings"; +"lightning__funding__button2" = "Use other wallet"; +"lightning__funding__button3" = "Manual setup"; "lightning__funding_advanced__button_short" = "Advanced Setup"; "lightning__no_funds__title" = "No Available Funds"; "lightning__no_funds__description" = "Before you can transfer funds from your savings balance, you need to send bitcoin to your Bitkit wallet."; -"lightning__no_funds__fund" = "Fund wallet"; +"lightning__no_funds__fund" = "Fund Wallet"; "lightning__spending_amount__title" = "Transfer\nto spending"; "lightning__transfer__nav_title" = "Transfer Funds"; "lightning__transfer__confirm" = "Please\nconfirm"; @@ -212,8 +212,10 @@ "lightning__transfer_hw__reconnect_error_title" = "Reconnect Hardware Device"; "lightning__transfer_hw__sign_title" = "Sign with\nyour device"; "lightning__transfer_hw__signed_title" = "Transaction\nsigned"; +"lightning__transfer_hw__address" = "Address (confirm on device)"; "lightning__transfer_to_savings_button" = "Transfer To Savings"; "lightning__transfer_to_spending_button" = "Transfer To Spending"; +"lightning__transfer_from_savings_button" = "Transfer From Savings"; "lightning__spending_intro__title" = "Transfer\nto spending"; "lightning__spending_intro__text" = "Transfer funds to your spending balance to enjoy instant and cheap transactions with friends, family, and merchants."; "lightning__spending_intro__button" = "Get Started"; @@ -233,10 +235,11 @@ "lightning__spending_confirm__lsp_fee" = "Service fees"; "lightning__spending_confirm__amount" = "To spending"; "lightning__spending_confirm__total" = "Total"; -"lightning__spending_confirm__spending_fee" = "Spending fee"; "lightning__spending_confirm__instant_text" = "Ready in a few minutes"; "lightning__spending_confirm__later" = "Later"; -"lightning__spending_confirm__later_text" = "After 3 confirmations, about 30 minutes"; +"lightning__spending_confirm__later_text" = "Ready in about 30 minutes"; +"lightning__spending_confirm__fee_max" = "max"; +"lightning__spending_confirm__fee_est" = "est"; "lightning__spending_confirm__error_quote" = "Bitkit couldn't get the fees for this transfer. Check your connection and try again."; "lightning__spending_confirm__fees_changed_title" = "Fees changed"; "lightning__spending_confirm__max_changed_title" = "Amount changed"; @@ -484,8 +487,10 @@ "lightning__spark_exit__quote_text" = "Only start a force transfer if your spending balance is no longer working. Your funds may be unavailable for up to 4 weeks."; "lightning__spark_exit__send_to_address" = "Send to address"; "lightning__spark_learn__title" = "Transfer\nspeed"; -"lightning__spark_learn__text" = "Instant pays the provider to add your transfer to your spending balance before it confirms, so it is ready in a few minutes.\n\nLater waits for 3 confirmations, about 30 minutes, and costs less."; -"lightning__spark_learn__label" = "Spending balance after transfer"; +"lightning__spark_learn__fast_text" = "Your funds are usually ready to spend within a few minutes, no need to wait for confirmations."; +"lightning__spark_learn__later_text" = "Your funds become available after 3 confirmations, usually around 30 minutes."; +"lightning__spark_learn__about_title" = "About your\nspending balance"; +"lightning__spark_learn__about_text" = "Your spending balance uses Spark, operated by Lightspark, Breez and Flashnet.\n\nIts security depends on at least one operator acting honestly. Operators can pause access, and withdrawing without their cooperation requires you to initiate an on-chain exit."; "lightning__reserve_balance" = "Reserve balance (not spendable)"; "lightning__total_size" = "Total channel size"; "lightning__fees" = "Fees"; diff --git a/Bitkit/Resources/Localization/es-419.lproj/Localizable.strings b/Bitkit/Resources/Localization/es-419.lproj/Localizable.strings index e6e276304c..f3af357f7b 100644 --- a/Bitkit/Resources/Localization/es-419.lproj/Localizable.strings +++ b/Bitkit/Resources/Localization/es-419.lproj/Localizable.strings @@ -197,7 +197,7 @@ "fee__custom__shortRange" = "Depende de la tarifa"; "fee__custom__longRange" = "Depende de la tasa"; "lightning__transfer_intro__title" = "Saldo de\nGasto"; -"lightning__transfer_intro__text" = "Fondee el saldo de gastos para disfrutar de transacciones baratas e instantáneas con amigos y comercios."; +"lightning__transfer_intro__text" = "Fondea tu saldo de gastos para disfrutar de pagos Lightning instantáneos y baratos."; "lightning__transfer_intro__button" = "Empezar"; "lightning__funding__nav_title" = "Saldo para gastos"; "lightning__funding__text" = "La forma más fácil es usar tus ahorros de Bitkit o enviar bitcoin desde una billetera diferente."; @@ -207,7 +207,7 @@ "lightning__funding__button3" = "Configuración Manual"; "lightning__funding_advanced__button_short" = "Configuración avanzada"; "lightning__no_funds__title" = "Sin fondos disponibles"; -"lightning__no_funds__description" = "Para transferir fondos a su saldo de ahorros, primero tiene que enviar bitcoin a su billetera Bitkit."; +"lightning__no_funds__description" = "Para transferir fondos desde su saldo de ahorros, primero tiene que enviar bitcoin a su billetera Bitkit."; "lightning__no_funds__fund" = "Fondear billetera"; "lightning__spending_amount__title" = "Transferir\na gastos"; "lightning__transfer__nav_title" = "Transferir fondos"; @@ -220,10 +220,12 @@ "lightning__transfer_hw__reconnect_error_title" = "Reconectar dispositivo de hardware"; "lightning__transfer_hw__sign_title" = "Firme con\nsu dispositivo"; "lightning__transfer_hw__signed_title" = "Transacción\nfirmada"; +"lightning__transfer_hw__address" = "Dirección (confirma en el dispositivo)"; "lightning__transfer_to_savings_button" = "Transferir a ahorros"; "lightning__transfer_to_spending_button" = "Transferir a gastos"; +"lightning__transfer_from_savings_button" = "Transferir desde Ahorros"; "lightning__spending_intro__title" = "Transferir\na gastos"; -"lightning__spending_intro__text" = "Transfiera fondos a su saldo de gastos para disfrutar de transacciones baratas e instantáneas con amigos y comercios."; +"lightning__spending_intro__text" = "Transfiera fondos a su saldo de gastos para disfrutar de transacciones baratas e instantáneas con amigos, familia y comercios."; "lightning__spending_intro__button" = "Empezar"; "lightning__transfer_failed__nav_title" = "Falla en transfer"; "lightning__transfer_failed__title" = "Transfer\nfallido"; @@ -235,18 +237,21 @@ "lightning__spending_amount__error_min__description" = "Se necesita un mínimo de ₿ {amount} para configurar tu saldo para gastar."; "lightning__spending_amount__error_max__title" = "Saldo máximo de gastos"; "lightning__spending_amount__error_max__description" = "El monto que puedes transferir a tu saldo para gastar está limitado a ₿ {amount}."; -"lightning__spending_amount__error_fee" = "Couldn't get the network fee. Tap to try again."; +"lightning__spending_amount__error_fee" = "No se pudo obtener la comisión de red. Toca para reintentar."; "lightning__spending_amount__error_max__description_zero" = "Tu transferencia al saldo para gastos está limitada por la política de liquidez. Visita el Centro de ayuda para más detalles."; "lightning__spending_confirm__network_fee" = "Comisiones de red"; "lightning__spending_confirm__lsp_fee" = "Comisión de servicio"; "lightning__spending_confirm__amount" = "Hacia Gastos"; "lightning__spending_confirm__total" = "Total"; -"lightning__spending_confirm__spending_fee" = "Spending fee"; -"lightning__spending_confirm__instant_text" = "Ready in a few minutes"; -"lightning__spending_confirm__later" = "Later"; -"lightning__spending_confirm__later_text" = "After 3 confirmations, about 30 minutes"; -"lightning__spending_confirm__error_quote" = "Bitkit couldn't get the fees for this transfer. Check your connection and try again."; +"lightning__spending_confirm__instant_text" = "Listo en unos minutos"; +"lightning__spending_confirm__later" = "Más tarde"; +"lightning__spending_confirm__later_text" = "Listo en unos 30 minutos"; +"lightning__spending_confirm__fee_max" = "máx."; +"lightning__spending_confirm__fee_est" = "aprox."; +"lightning__spending_confirm__error_quote" = "Bitkit no pudo obtener las comisiones de esta transferencia. Revisa tu conexión e inténtalo de nuevo."; "lightning__spending_confirm__fees_changed_title" = "Las comisiones cambiaron"; +"lightning__spending_confirm__max_changed_title" = "El monto cambió"; +"lightning__spending_confirm__max_changed" = "Lo máximo que puedes transferir ahora es {amount}, porque las tarifas o tu saldo de ahorros cambiaron mientras estabas en esta pantalla. Desliza de nuevo para confirmar."; "lightning__spending_confirm__fees_changed_network" = "Las comisiones son {amount} más altas porque las tarifas o su saldo de ahorros cambiaron mientras estaba en esta pantalla. Deslice de nuevo para confirmar."; "lightning__savings_intro__title" = "Transferir\na ahorros"; "lightning__savings_intro__text" = "Transfiere tu saldo de gastos al de ahorros para guardar tus Bitcoin a largo plazo y asegurar tu futuro."; @@ -303,8 +308,17 @@ "lightning__setting_up_header" = "En proceso"; "lightning__setting_up_step1" = "Procesando pago"; "lightning__setting_up_step2" = "Pago Efectuado"; -"lightning__setting_up_step_spark" = "Adding To Spending"; +"lightning__setting_up_step_spark" = "Agregando al saldo de gastos"; "lightning__setting_up_button" = "Continuar Usando Bitkit"; +"lightning__setting_up__text_fast" = "Espera un momento, tu transferencia está en proceso. Tomará unos minutos."; +"lightning__setting_up__text_normal" = "Espera un momento, tu transferencia está en proceso. Tomará unos 30 minutos."; +"lightning__setting_up__fee_changed_title" = "Transferencia rápida\ncomisión cambiada"; +"lightning__setting_up__fee_changed_text" = "La comisión de transferencia rápida ahora es {fee}. Aprueba para acceder rápido a tus fondos, o espera ±30 min."; +"lightning__setting_up__unavailable_title" = "Transferencia rápida\nno disponible"; +"lightning__setting_up__step_fee_changed" = "Cambió la comisión de transferencia rápida"; +"lightning__setting_up__step_normal_speed" = "Usando velocidad de transferencia normal"; +"lightning__setting_up__approve" = "Aprobar"; +"lightning__setting_up__success_button" = "¡Genial!"; "lightning__node_info" = "Nodo Lightning"; "lightning__node_id" = "ID del nodo LDK"; "lightning__node_disconnected" = "desconectado"; @@ -456,9 +470,11 @@ "lightning__spark_exit__progress_overview" = "Resumen del progreso"; "lightning__spark_exit__quote_text" = "Inicia una transferencia forzada solo si tu saldo de gastos ya no funciona. Tus fondos pueden no estar disponibles hasta por 4 semanas."; "lightning__spark_exit__send_to_address" = "Enviar a dirección"; -"lightning__spark_learn__title" = "Transfer\nspeed"; -"lightning__spark_learn__text" = "Instant pays the provider to add your transfer to your spending balance before it confirms, so it is ready in a few minutes.\n\nLater waits for 3 confirmations, about 30 minutes, and costs less."; -"lightning__spark_learn__label" = "Spending balance after transfer"; +"lightning__spark_learn__title" = "Velocidad de\ntransferencia"; +"lightning__spark_learn__fast_text" = "Tus fondos suelen estar listos para gastar en unos minutos, sin esperar confirmaciones."; +"lightning__spark_learn__later_text" = "Tus fondos estarán disponibles después de 3 confirmaciones, normalmente en unos 30 minutos."; +"lightning__spark_learn__about_title" = "Acerca de tu\nsaldo de gastos"; +"lightning__spark_learn__about_text" = "Tu saldo de gastos usa Spark, operado por Lightspark, Breez y Flashnet.\n\nSu seguridad depende de que al menos un operador actúe con honestidad. Los operadores pueden pausar el acceso, y retirar sin su cooperación requiere que inicies una salida on-chain."; "lightning__reserve_balance" = "Saldo de reserva (no gastable)"; "lightning__total_size" = "Tamaño total del canal"; "lightning__fees" = "Tarifa"; diff --git a/Bitkit/Resources/Localization/es.lproj/Localizable.strings b/Bitkit/Resources/Localization/es.lproj/Localizable.strings index e586c4011a..19608f603c 100644 --- a/Bitkit/Resources/Localization/es.lproj/Localizable.strings +++ b/Bitkit/Resources/Localization/es.lproj/Localizable.strings @@ -194,7 +194,7 @@ "fee__custom__shortRange" = "Depende de la tarifa"; "fee__custom__longRange" = "Depende de la comisión"; "lightning__transfer_intro__title" = "Saldo de\nGasto"; -"lightning__transfer_intro__text" = "Rellene el saldo de gasto para disfrutar de transacciones baratas e instantáneas con amigos, familia y comerciantes."; +"lightning__transfer_intro__text" = "Recargue su saldo de gasto para disfrutar de pagos Lightning instantáneos y baratos."; "lightning__transfer_intro__button" = "Empezar"; "lightning__funding__nav_title" = "Saldo de gastos"; "lightning__funding__text" = "La forma más fácil es usar tus ahorros de Bitkit o enviar bitcoin desde un monedero diferente."; @@ -204,7 +204,7 @@ "lightning__funding__button3" = "Configuración Manual"; "lightning__funding_advanced__button_short" = "Configuración avanzada"; "lightning__no_funds__title" = "No hay fondos disponibles"; -"lightning__no_funds__description" = "Antes de que pueda transferir fondos a su saldo de ahorros, tiene que enviar bitcoin a su monedero Bitkit."; +"lightning__no_funds__description" = "Antes de poder transferir fondos desde su saldo de ahorros, tiene que enviar bitcoin a su monedero Bitkit."; "lightning__no_funds__fund" = "Añadir fondos"; "lightning__spending_amount__title" = "Transferir\na gasto"; "lightning__transfer__nav_title" = "Transferir fondos"; @@ -216,8 +216,10 @@ "lightning__transfer_hw__reconnect_error_title" = "Reconecte el dispositivo de hardware"; "lightning__transfer_hw__sign_title" = "Firme con\nsu dispositivo"; "lightning__transfer_hw__signed_title" = "Transacción\nfirmada"; +"lightning__transfer_hw__address" = "Dirección (confirme en el dispositivo)"; "lightning__transfer_to_savings_button" = "Transferir a Ahorros"; "lightning__transfer_to_spending_button" = "Transferir a Gasto"; +"lightning__transfer_from_savings_button" = "Transferir desde Ahorros"; "lightning__spending_intro__title" = "Transferir\na gasto"; "lightning__spending_intro__text" = "Transfiera fondos a su saldo de gasto para disfrutar de transacciones baratas e instantáneas con amigos, familia y comerciantes."; "lightning__spending_intro__button" = "Empezar"; @@ -225,17 +227,20 @@ "lightning__spending_amount__quarter" = "25%"; "lightning__spending_amount__error_max__title" = "Máximo del Saldo de Gastos"; "lightning__spending_amount__error_max__description" = "La cantidad que puedes transferir a tu saldo de gastos está actualmente limitada a ₿ {amount}."; -"lightning__spending_amount__error_fee" = "Couldn't get the network fee. Tap to try again."; +"lightning__spending_amount__error_fee" = "No se pudo obtener la comisión de red. Toque para reintentar."; "lightning__spending_confirm__network_fee" = "Comisión de red"; "lightning__spending_confirm__lsp_fee" = "Comisión de servicio"; "lightning__spending_confirm__amount" = "A gasto"; "lightning__spending_confirm__total" = "Total"; -"lightning__spending_confirm__spending_fee" = "Spending fee"; -"lightning__spending_confirm__instant_text" = "Ready in a few minutes"; -"lightning__spending_confirm__later" = "Later"; -"lightning__spending_confirm__later_text" = "After 3 confirmations, about 30 minutes"; -"lightning__spending_confirm__error_quote" = "Bitkit couldn't get the fees for this transfer. Check your connection and try again."; +"lightning__spending_confirm__instant_text" = "Listo en unos minutos"; +"lightning__spending_confirm__later" = "Más tarde"; +"lightning__spending_confirm__later_text" = "Listo en unos 30 minutos"; +"lightning__spending_confirm__fee_max" = "máx."; +"lightning__spending_confirm__fee_est" = "aprox."; +"lightning__spending_confirm__error_quote" = "Bitkit no pudo obtener las comisiones de esta transferencia. Compruebe su conexión e inténtelo de nuevo."; "lightning__spending_confirm__fees_changed_title" = "Las comisiones han cambiado"; +"lightning__spending_confirm__max_changed_title" = "El importe ha cambiado"; +"lightning__spending_confirm__max_changed" = "Lo máximo que puede transferir ahora es {amount}, porque las tasas de comisión o su saldo de ahorro cambiaron mientras estaba en esta pantalla. Deslice de nuevo para confirmar."; "lightning__spending_confirm__fees_changed_network" = "Las comisiones son {amount} más altas porque las tasas de comisión o su saldo de ahorro cambiaron mientras estaba en esta pantalla. Deslice de nuevo para confirmar."; "lightning__savings_intro__title" = "Transferir\na ahorros"; "lightning__savings_intro__text" = "Transfiera su saldo de gasto a sus ahorros para almacenar su Bitcoin a largo plazo y asegurar su futuro."; @@ -290,8 +295,17 @@ "lightning__receiving_label" = "Capacidad de recepción"; "lightning__setting_up_step1" = "Procesando Pago"; "lightning__setting_up_step2" = "Pago Exitoso"; -"lightning__setting_up_step_spark" = "Adding To Spending"; +"lightning__setting_up_step_spark" = "Añadiendo al Saldo de Gasto"; "lightning__setting_up_button" = "Continuar Usando Bitkit"; +"lightning__setting_up__text_fast" = "Por favor espere, su transferencia de fondos está en progreso. Esto debería tomar unos minutos."; +"lightning__setting_up__text_normal" = "Por favor espere, su transferencia de fondos está en progreso. Esto debería tomar unos 30 minutos."; +"lightning__setting_up__fee_changed_title" = "Transferencia rápida\ncomisión cambiada"; +"lightning__setting_up__fee_changed_text" = "La comisión de transferencia rápida es ahora {fee}. Apruebe para acceder rápido a sus fondos, o espere ±30 min."; +"lightning__setting_up__unavailable_title" = "Transferencia rápida\nno disponible"; +"lightning__setting_up__step_fee_changed" = "Comisión de Transferencia Rápida Cambiada"; +"lightning__setting_up__step_normal_speed" = "Usando Velocidad de Transferencia Normal"; +"lightning__setting_up__approve" = "Aprobar"; +"lightning__setting_up__success_button" = "¡Genial!"; "lightning__node_info" = "Nodo Lightning"; "lightning__node_id" = "ID del nodo LDK"; "lightning__node_disconnected" = "desconectado"; @@ -440,9 +454,11 @@ "lightning__spark_exit__progress_overview" = "Resumen del progreso"; "lightning__spark_exit__quote_text" = "Inicia una transferencia forzada solo si tu saldo de gastos ya no funciona. Tus fondos pueden no estar disponibles hasta 4 semanas."; "lightning__spark_exit__send_to_address" = "Enviar a la dirección"; -"lightning__spark_learn__title" = "Transfer\nspeed"; -"lightning__spark_learn__text" = "Instant pays the provider to add your transfer to your spending balance before it confirms, so it is ready in a few minutes.\n\nLater waits for 3 confirmations, about 30 minutes, and costs less."; -"lightning__spark_learn__label" = "Spending balance after transfer"; +"lightning__spark_learn__title" = "Velocidad de\ntransferencia"; +"lightning__spark_learn__fast_text" = "Sus fondos suelen estar listos para gastar en unos minutos, sin esperar confirmaciones."; +"lightning__spark_learn__later_text" = "Sus fondos estarán disponibles tras 3 confirmaciones, normalmente en unos 30 minutos."; +"lightning__spark_learn__about_title" = "Acerca de su\nsaldo de gasto"; +"lightning__spark_learn__about_text" = "Su saldo de gasto usa Spark, operado por Lightspark, Breez y Flashnet.\n\nSu seguridad depende de que al menos un operador actúe con honestidad. Los operadores pueden pausar el acceso, y retirar sin su cooperación requiere que inicie una salida on-chain."; "lightning__reserve_balance" = "Saldo de reserva"; "lightning__total_size" = "Tamaño total del canal"; "lightning__fees" = "Comisiones"; diff --git a/Bitkit/Resources/Localization/fr.lproj/Localizable.strings b/Bitkit/Resources/Localization/fr.lproj/Localizable.strings index 17c5f0e5ae..116f9d0a19 100644 --- a/Bitkit/Resources/Localization/fr.lproj/Localizable.strings +++ b/Bitkit/Resources/Localization/fr.lproj/Localizable.strings @@ -196,8 +196,8 @@ "fee__custom__range" = "Dépend des frais"; "fee__custom__shortRange" = "Dépend des frais"; "fee__custom__longRange" = "Dépend du montant des frais"; -"lightning__transfer_intro__title" = "Dépenses \nSolde"; -"lightning__transfer_intro__text" = "Alimentez votre solde de dépenses pour profiter de transactions instantanées et bon marché avec vos amis, votre famille et les commerçants."; +"lightning__transfer_intro__title" = "Solde\nDépenses"; +"lightning__transfer_intro__text" = "Alimentez votre solde Dépenses pour profiter de paiements Lightning instantanés et bon marché."; "lightning__transfer_intro__button" = "Commencer"; "lightning__funding__nav_title" = "Solde Dépenses"; "lightning__funding__text" = "Le plus simple est d\'utiliser vos économies Bitkit ou d\'envoyer des bitcoins depuis un autre portefeuille."; @@ -208,8 +208,8 @@ "lightning__funding_advanced__button_short" = "Configuration avancée"; "lightning__no_funds__title" = "Pas de fonds disponibles"; "lightning__no_funds__description" = "Avant de pouvoir transférer des fonds depuis votre solde d\'épargne, vous devez envoyer des bitcoins à votre portefeuille Bitkit."; -"lightning__no_funds__fund" = "Alimentez votre portefeuille"; -"lightning__spending_amount__title" = "Transfert \nDépenses"; +"lightning__no_funds__fund" = "Alimenter le portefeuille"; +"lightning__spending_amount__title" = "Transfert\nvers Dépenses"; "lightning__transfer__nav_title" = "Transfert de fonds"; "lightning__transfer__confirm" = "Veuillez\nconfirmer"; "lightning__transfer__custom_fee" = "Frais sur mesure"; @@ -220,10 +220,12 @@ "lightning__transfer_hw__reconnect_error_title" = "Reconnecter l'appareil matériel"; "lightning__transfer_hw__sign_title" = "Signez avec\nvotre appareil"; "lightning__transfer_hw__signed_title" = "Transaction\nsignée"; +"lightning__transfer_hw__address" = "Adresse (confirmez sur l\'appareil)"; "lightning__transfer_to_savings_button" = "Transférer vers l\'épargne"; "lightning__transfer_to_spending_button" = "Transférer vers les dépenses"; +"lightning__transfer_from_savings_button" = "Transfert depuis l\'épargne"; "lightning__spending_intro__title" = "Transfert\naux dépenses"; -"lightning__spending_intro__text" = "Transférez des fonds vers votre solde Dépenses pour profiter de transactions instantanées et moins chers avec vos amis, votre famille et les commerçants."; +"lightning__spending_intro__text" = "Transférez des fonds vers votre solde Dépenses pour profiter de transactions instantanées et bon marché avec vos amis, votre famille et les commerçants."; "lightning__spending_intro__button" = "Commencer"; "lightning__transfer_failed__nav_title" = "Échec du transfert"; "lightning__transfer_failed__title" = "Transfert\néchoué"; @@ -235,18 +237,21 @@ "lightning__spending_amount__error_min__description" = "Un minimum de ₿ {amount} est nécessaire pour établir votre solde de Dépenses."; "lightning__spending_amount__error_max__title" = "Seuil Maximum Épargne"; "lightning__spending_amount__error_max__description" = "Le montant que vous pouvez transférer vers votre solde de dépenses est actuellement limité à ₿ {amount}."; -"lightning__spending_amount__error_fee" = "Couldn't get the network fee. Tap to try again."; +"lightning__spending_amount__error_fee" = "Impossible d\'obtenir les frais de réseau. Touchez pour réessayer."; "lightning__spending_amount__error_max__description_zero" = "Votre transfert vers le solde des dépenses est limité en raison de la politique de liquidité. Pour plus de détails, consultez le Centre d\'aide."; "lightning__spending_confirm__network_fee" = "Frais de réseau"; "lightning__spending_confirm__lsp_fee" = "Frais de service"; "lightning__spending_confirm__amount" = "Vers Dépenses"; "lightning__spending_confirm__total" = "Total"; -"lightning__spending_confirm__spending_fee" = "Spending fee"; -"lightning__spending_confirm__instant_text" = "Ready in a few minutes"; -"lightning__spending_confirm__later" = "Later"; -"lightning__spending_confirm__later_text" = "After 3 confirmations, about 30 minutes"; -"lightning__spending_confirm__error_quote" = "Bitkit couldn't get the fees for this transfer. Check your connection and try again."; +"lightning__spending_confirm__instant_text" = "Prêt en quelques minutes"; +"lightning__spending_confirm__later" = "Plus tard"; +"lightning__spending_confirm__later_text" = "Prêt en 30 minutes environ"; +"lightning__spending_confirm__fee_max" = "max"; +"lightning__spending_confirm__fee_est" = "env."; +"lightning__spending_confirm__error_quote" = "Bitkit n\'a pas pu obtenir les frais de ce transfert. Vérifiez votre connexion et réessayez."; "lightning__spending_confirm__fees_changed_title" = "Frais modifiés"; +"lightning__spending_confirm__max_changed_title" = "Montant modifié"; +"lightning__spending_confirm__max_changed" = "Le montant maximum transférable est désormais de {amount}, car les taux de frais ou votre solde d\'épargne ont changé pendant que vous étiez sur cet écran. Glissez à nouveau pour confirmer."; "lightning__spending_confirm__fees_changed_network" = "Les frais sont plus élevés de {amount}, car les taux de frais ou votre solde d'épargne ont changé pendant que vous étiez sur cet écran. Glissez à nouveau pour confirmer."; "lightning__savings_intro__title" = "Transfert \nvers l\'Épargne"; "lightning__savings_intro__text" = "Transférez le solde de votre compte Dépenses vers votre Épargne pour conserver vos bitcoins à long terme."; @@ -303,8 +308,17 @@ "lightning__setting_up_header" = "En transfert"; "lightning__setting_up_step1" = "Traitement des paiements"; "lightning__setting_up_step2" = "Paiement réussi"; -"lightning__setting_up_step_spark" = "Adding To Spending"; +"lightning__setting_up_step_spark" = "Ajout au solde Dépenses"; "lightning__setting_up_button" = "Continuer à utiliser Bitkit"; +"lightning__setting_up__text_fast" = "Veuillez patienter, votre transfert de fonds est en cours. Cela devrait prendre quelques minutes."; +"lightning__setting_up__text_normal" = "Veuillez patienter, votre transfert de fonds est en cours. Cela devrait prendre environ 30 minutes."; +"lightning__setting_up__fee_changed_title" = "Transfert rapide\nfrais modifiés"; +"lightning__setting_up__fee_changed_text" = "Les frais de transfert rapide sont désormais de {fee}. Approuvez pour accéder rapidement à vos fonds, ou attendez ±30 min."; +"lightning__setting_up__unavailable_title" = "Transfert rapide\nindisponible"; +"lightning__setting_up__step_fee_changed" = "Frais de transfert rapide modifiés"; +"lightning__setting_up__step_normal_speed" = "Vitesse de transfert normale utilisée"; +"lightning__setting_up__approve" = "Approuver"; +"lightning__setting_up__success_button" = "Génial !"; "lightning__node_info" = "Nœud Lightning"; "lightning__node_id" = "ID du nœud LDK"; "lightning__node_disconnected" = "déconnecté"; @@ -456,9 +470,11 @@ "lightning__spark_exit__progress_overview" = "Aperçu de la progression"; "lightning__spark_exit__quote_text" = "Ne lancez un transfert forcé que si votre solde de dépenses ne fonctionne plus. Vos fonds peuvent être indisponibles jusqu'à 4 semaines."; "lightning__spark_exit__send_to_address" = "Envoyer à l'adresse"; -"lightning__spark_learn__title" = "Transfer\nspeed"; -"lightning__spark_learn__text" = "Instant pays the provider to add your transfer to your spending balance before it confirms, so it is ready in a few minutes.\n\nLater waits for 3 confirmations, about 30 minutes, and costs less."; -"lightning__spark_learn__label" = "Spending balance after transfer"; +"lightning__spark_learn__title" = "Vitesse de\ntransfert"; +"lightning__spark_learn__fast_text" = "Vos fonds sont généralement disponibles en quelques minutes, sans attendre de confirmations."; +"lightning__spark_learn__later_text" = "Vos fonds deviennent disponibles après 3 confirmations, généralement en 30 minutes environ."; +"lightning__spark_learn__about_title" = "À propos de votre\nsolde Dépenses"; +"lightning__spark_learn__about_text" = "Votre solde Dépenses utilise Spark, exploité par Lightspark, Breez et Flashnet.\n\nSa sécurité dépend d\'au moins un opérateur agissant honnêtement. Les opérateurs peuvent suspendre l\'accès, et retirer sans leur coopération nécessite de lancer une sortie on-chain."; "lightning__reserve_balance" = "Solde de réserve (non dépensable)"; "lightning__total_size" = "Taille totale du canal"; "lightning__fees" = "Frais"; diff --git a/Bitkit/Resources/Localization/it.lproj/Localizable.strings b/Bitkit/Resources/Localization/it.lproj/Localizable.strings index aa7dd43033..7e22a9db3d 100644 --- a/Bitkit/Resources/Localization/it.lproj/Localizable.strings +++ b/Bitkit/Resources/Localization/it.lproj/Localizable.strings @@ -195,7 +195,7 @@ "fee__custom__shortRange" = "Dipende dalle fee"; "fee__custom__longRange" = "Dipende dalla commissione"; "lightning__transfer_intro__title" = "Conto\ndi Spesa"; -"lightning__transfer_intro__text" = "Manda fondi al tuo conto di spesa per usufruire di transazioni istantanee ed economiche con amici, familiari e commercianti."; +"lightning__transfer_intro__text" = "Ricarica il tuo conto di spesa per usufruire di pagamenti Lightning istantanei ed economici."; "lightning__transfer_intro__button" = "Inizia"; "lightning__funding__nav_title" = "Conto di Spesa"; "lightning__funding__text" = "Il modo più semplice è usare i tuoi risparmi Bitkit o inviare bitcoin da un portafoglio diverso."; @@ -217,8 +217,10 @@ "lightning__transfer_hw__reconnect_error_title" = "Ricollega il Dispositivo Hardware"; "lightning__transfer_hw__sign_title" = "Firma con\nil tuo dispositivo"; "lightning__transfer_hw__signed_title" = "Transazione\nfirmata"; +"lightning__transfer_hw__address" = "Indirizzo (conferma sul dispositivo)"; "lightning__transfer_to_savings_button" = "Trasferisci Ai Risparmi"; "lightning__transfer_to_spending_button" = "Trasferisci A Spesa"; +"lightning__transfer_from_savings_button" = "Trasferimento da risparmio"; "lightning__spending_intro__title" = "Trasferisci\na spesa"; "lightning__spending_intro__text" = "Trasferisci fondi al tuo conto di spesa per usufruire di transazioni istantanee ed economiche con amici, familiari e commercianti."; "lightning__spending_intro__button" = "Inizia"; @@ -230,17 +232,20 @@ "lightning__spending_amount__quarter" = "25%"; "lightning__spending_amount__error_max__title" = "Massimo Conto di Spesa"; "lightning__spending_amount__error_max__description" = "L'importo che puoi trasferire al tuo conto di spesa e' attualmente limitato a ₿ {amount}."; -"lightning__spending_amount__error_fee" = "Couldn't get the network fee. Tap to try again."; +"lightning__spending_amount__error_fee" = "Impossibile ottenere la commissione di rete. Tocca per riprovare."; "lightning__spending_confirm__network_fee" = "Commissioni di rete"; "lightning__spending_confirm__lsp_fee" = "Commissioni di servizio"; "lightning__spending_confirm__amount" = "A spesa"; "lightning__spending_confirm__total" = "Totale"; -"lightning__spending_confirm__spending_fee" = "Spending fee"; -"lightning__spending_confirm__instant_text" = "Ready in a few minutes"; -"lightning__spending_confirm__later" = "Later"; -"lightning__spending_confirm__later_text" = "After 3 confirmations, about 30 minutes"; -"lightning__spending_confirm__error_quote" = "Bitkit couldn't get the fees for this transfer. Check your connection and try again."; +"lightning__spending_confirm__instant_text" = "Pronto in pochi minuti"; +"lightning__spending_confirm__later" = "Più tardi"; +"lightning__spending_confirm__later_text" = "Pronto in circa 30 minuti"; +"lightning__spending_confirm__fee_max" = "max"; +"lightning__spending_confirm__fee_est" = "stim."; +"lightning__spending_confirm__error_quote" = "Bitkit non è riuscito a ottenere le commissioni per questo trasferimento. Controlla la connessione e riprova."; "lightning__spending_confirm__fees_changed_title" = "Commissioni cambiate"; +"lightning__spending_confirm__max_changed_title" = "Importo cambiato"; +"lightning__spending_confirm__max_changed" = "Ora puoi trasferire al massimo {amount}, perché i tassi di commissione o il saldo dei tuoi risparmi sono cambiati mentre eri su questa schermata. Scorri di nuovo per confermare."; "lightning__spending_confirm__fees_changed_network" = "Le commissioni sono aumentate di {amount} perché i tassi di commissione o il saldo dei tuoi risparmi sono cambiati mentre eri su questa schermata. Scorri di nuovo per confermare."; "lightning__savings_intro__title" = "Trasferisci\nai risparmi"; "lightning__savings_intro__text" = "Trasferisci il tuo saldo di spesa ai tuoi risparmi per conservare i tuoi Bitcoin a lungo termine e garantire il tuo futuro."; @@ -297,8 +302,17 @@ "lightning__setting_up_header" = "In trasferimento"; "lightning__setting_up_step1" = "Elaborazione del pagamento"; "lightning__setting_up_step2" = "Pagamento Riuscito"; -"lightning__setting_up_step_spark" = "Adding To Spending"; +"lightning__setting_up_step_spark" = "Aggiunta al conto di spesa"; "lightning__setting_up_button" = "Continua ad utilizzare Bitkit"; +"lightning__setting_up__text_fast" = "Attendi, il trasferimento dei fondi è in corso. Dovrebbe richiedere pochi minuti."; +"lightning__setting_up__text_normal" = "Attendi, il trasferimento dei fondi è in corso. Dovrebbe richiedere circa 30 minuti."; +"lightning__setting_up__fee_changed_title" = "Trasferimento veloce\ncommissione cambiata"; +"lightning__setting_up__fee_changed_text" = "La commissione per il trasferimento veloce ora è {fee}. Approva per accedere rapidamente ai tuoi fondi, oppure attendi ±30 min."; +"lightning__setting_up__unavailable_title" = "Trasferimento veloce\nnon disponibile"; +"lightning__setting_up__step_fee_changed" = "Commissione trasferimento veloce cambiata"; +"lightning__setting_up__step_normal_speed" = "Uso della velocità normale"; +"lightning__setting_up__approve" = "Approva"; +"lightning__setting_up__success_button" = "Fantastico!"; "lightning__node_info" = "Nodo Lightning"; "lightning__node_id" = "ID Nodo LDK"; "lightning__node_disconnected" = "disconnesso"; @@ -449,9 +463,11 @@ "lightning__spark_exit__progress_overview" = "Panoramica dell'avanzamento"; "lightning__spark_exit__quote_text" = "Avvia un trasferimento forzato solo se il tuo saldo di spesa non funziona più. I tuoi fondi potrebbero non essere disponibili fino a 4 settimane."; "lightning__spark_exit__send_to_address" = "Invia all'indirizzo"; -"lightning__spark_learn__title" = "Transfer\nspeed"; -"lightning__spark_learn__text" = "Instant pays the provider to add your transfer to your spending balance before it confirms, so it is ready in a few minutes.\n\nLater waits for 3 confirmations, about 30 minutes, and costs less."; -"lightning__spark_learn__label" = "Spending balance after transfer"; +"lightning__spark_learn__title" = "Velocità di\ntrasferimento"; +"lightning__spark_learn__fast_text" = "I tuoi fondi sono di solito pronti da spendere in pochi minuti, senza attendere conferme."; +"lightning__spark_learn__later_text" = "I tuoi fondi diventano disponibili dopo 3 conferme, di solito in circa 30 minuti."; +"lightning__spark_learn__about_title" = "Il tuo\nconto di spesa"; +"lightning__spark_learn__about_text" = "Il tuo conto di spesa usa Spark, gestito da Lightspark, Breez e Flashnet.\n\nLa sua sicurezza dipende dal fatto che almeno un operatore agisca onestamente. Gli operatori possono sospendere l'accesso, e prelevare senza la loro collaborazione richiede di avviare un'uscita on-chain."; "lightning__reserve_balance" = "Saldo di riserva (non spendibile)"; "lightning__total_size" = "Dimensione totale del canale"; "lightning__fees" = "Commissioni"; diff --git a/Bitkit/Resources/Localization/nl.lproj/Localizable.strings b/Bitkit/Resources/Localization/nl.lproj/Localizable.strings index 8c2147e3ef..be87ed5325 100644 --- a/Bitkit/Resources/Localization/nl.lproj/Localizable.strings +++ b/Bitkit/Resources/Localization/nl.lproj/Localizable.strings @@ -196,7 +196,7 @@ "fee__custom__shortRange" = "Afhankelijk van het tarief"; "fee__custom__longRange" = "Afhankelijk van de kosten"; "lightning__transfer_intro__title" = "Bestedings\nSaldo"; -"lightning__transfer_intro__text" = "Activeer uw bestedingssaldo en profiteer van directe en goedkope transacties met vrienden, familie en winkeliers."; +"lightning__transfer_intro__text" = "Vul uw bestedingssaldo aan en profiteer van directe en goedkope Lightning-betalingen."; "lightning__transfer_intro__button" = "Starten"; "lightning__funding__nav_title" = "Bestedingssaldo"; "lightning__funding__text" = "De makkelijkste optie is om je Bitkit-spaargeld te gebruiken of bitcoin te versturen vanuit een andere wallet."; @@ -207,7 +207,7 @@ "lightning__funding_advanced__button_short" = "Geavanceerde Configuratie"; "lightning__no_funds__title" = "Geen Geld Beschikbaar"; "lightning__no_funds__description" = "Voordat u geld van uw spaarsaldo kunt overboeken, moet u bitcoin naar uw Bitkit wallet sturen."; -"lightning__no_funds__fund" = "Wallet aufladen"; +"lightning__no_funds__fund" = "Wallet Opwaarderen"; "lightning__spending_amount__title" = "Overboeking\nnaar bestedingssaldo"; "lightning__transfer__nav_title" = "Geld Overboeken"; "lightning__transfer__confirm" = "Bevestig\nalstublieft"; @@ -219,8 +219,10 @@ "lightning__transfer_hw__reconnect_error_title" = "Hardwareapparaat opnieuw verbinden"; "lightning__transfer_hw__sign_title" = "Onderteken met\nuw apparaat"; "lightning__transfer_hw__signed_title" = "Transactie\nondertekend"; +"lightning__transfer_hw__address" = "Adres (bevestig op apparaat)"; "lightning__transfer_to_savings_button" = "Overboeken Naar Spaargeld"; "lightning__transfer_to_spending_button" = "Overboeken Naar Bestedingssaldo"; +"lightning__transfer_from_savings_button" = "Overboeking van Spaargeld"; "lightning__spending_intro__title" = "Overboeking\nnaar bestedingssaldo"; "lightning__spending_intro__text" = "Boek geld over naar uw bestedingssaldo om te genieten van directe en goedkope transacties met vrienden, familie en winkeliers."; "lightning__spending_intro__button" = "Starten"; @@ -233,18 +235,21 @@ "lightning__spending_amount__error_min__title" = "Minimales Sparguthaben"; "lightning__spending_amount__error_max__title" = "Maximaler Ausgabensaldo"; "lightning__spending_amount__error_max__description" = "Der Betrag, den Sie auf Ihr Ausgabenkonto übertragen können, ist derzeit auf ₿ {amount} begrenzt."; -"lightning__spending_amount__error_fee" = "Couldn't get the network fee. Tap to try again."; +"lightning__spending_amount__error_fee" = "Kan de netwerkkosten niet ophalen. Tik om het opnieuw te proberen."; "lightning__spending_confirm__network_fee" = "Netwerkkosten"; "lightning__spending_confirm__lsp_fee" = "Servicekosten"; "lightning__spending_confirm__amount" = "Naar bestedingssaldo"; "lightning__spending_confirm__total" = "Totaal"; -"lightning__spending_confirm__spending_fee" = "Spending fee"; -"lightning__spending_confirm__instant_text" = "Ready in a few minutes"; +"lightning__spending_confirm__instant_text" = "Klaar binnen enkele minuten"; "lightning__spending_confirm__later" = "Later"; -"lightning__spending_confirm__later_text" = "After 3 confirmations, about 30 minutes"; -"lightning__spending_confirm__error_quote" = "Bitkit couldn't get the fees for this transfer. Check your connection and try again."; -"lightning__spending_confirm__fees_changed_title" = "Vergoedingen gewijzigd"; -"lightning__spending_confirm__fees_changed_network" = "De vergoedingen zijn {amount} hoger, omdat de vergoedingstarieven of uw spaargeld zijn gewijzigd terwijl u op dit scherm was. Veeg opnieuw om te bevestigen."; +"lightning__spending_confirm__later_text" = "Klaar binnen ongeveer 30 minuten"; +"lightning__spending_confirm__fee_max" = "max"; +"lightning__spending_confirm__fee_est" = "ca."; +"lightning__spending_confirm__error_quote" = "Bitkit kon de kosten voor deze overboeking niet ophalen. Controleer uw verbinding en probeer het opnieuw."; +"lightning__spending_confirm__fees_changed_title" = "Kosten gewijzigd"; +"lightning__spending_confirm__max_changed_title" = "Bedrag gewijzigd"; +"lightning__spending_confirm__max_changed" = "U kunt nu maximaal {amount} overboeken, omdat de kostentarieven of uw spaargeld zijn gewijzigd terwijl u op dit scherm was. Veeg opnieuw om te bevestigen."; +"lightning__spending_confirm__fees_changed_network" = "De kosten zijn {amount} hoger, omdat de kostentarieven of uw spaargeld zijn gewijzigd terwijl u op dit scherm was. Veeg opnieuw om te bevestigen."; "lightning__savings_intro__title" = "Overboeking\nnaar spaargeld"; "lightning__savings_intro__text" = "Boek uw bestedingssaldo over naar uw spaargeld om uw Bitcoin langdurig te bewaren en uw toekomst veilig te stellen."; "lightning__savings_intro__button" = "Starten"; @@ -300,8 +305,17 @@ "lightning__setting_up_header" = "Onderweg"; "lightning__setting_up_step1" = "Betaling Verwerken"; "lightning__setting_up_step2" = "Betaling Voltooid"; -"lightning__setting_up_step_spark" = "Adding To Spending"; +"lightning__setting_up_step_spark" = "Toevoegen Aan Bestedingssaldo"; "lightning__setting_up_button" = "Ga Door Met Bitkit"; +"lightning__setting_up__text_fast" = "Even geduld, uw overboeking is bezig. Dit duurt enkele minuten."; +"lightning__setting_up__text_normal" = "Even geduld, uw overboeking is bezig. Dit duurt ongeveer 30 minuten."; +"lightning__setting_up__fee_changed_title" = "Snelle overboeking\nkosten gewijzigd"; +"lightning__setting_up__fee_changed_text" = "De kosten voor een snelle overboeking zijn nu {fee}. Keur goed om snel over uw geld te beschikken, of wacht ±30 min."; +"lightning__setting_up__unavailable_title" = "Snelle overboeking\nniet beschikbaar"; +"lightning__setting_up__step_fee_changed" = "Kosten Snelle Overboeking Gewijzigd"; +"lightning__setting_up__step_normal_speed" = "Normale Snelheid Wordt Gebruikt"; +"lightning__setting_up__approve" = "Goedkeuren"; +"lightning__setting_up__success_button" = "Geweldig!"; "lightning__node_info" = "Lightning Node"; "lightning__node_id" = "LDK Node ID"; "lightning__node_disconnected" = "verbinding verbroken"; @@ -453,9 +467,11 @@ "lightning__spark_exit__progress_overview" = "Voortgangsoverzicht"; "lightning__spark_exit__quote_text" = "Start alleen een geforceerde overboeking als uw bestedingssaldo niet meer werkt. Uw geld is mogelijk tot 4 weken niet beschikbaar."; "lightning__spark_exit__send_to_address" = "Naar adres sturen"; -"lightning__spark_learn__title" = "Transfer\nspeed"; -"lightning__spark_learn__text" = "Instant pays the provider to add your transfer to your spending balance before it confirms, so it is ready in a few minutes.\n\nLater waits for 3 confirmations, about 30 minutes, and costs less."; -"lightning__spark_learn__label" = "Spending balance after transfer"; +"lightning__spark_learn__title" = "Snelheid van\noverboeking"; +"lightning__spark_learn__fast_text" = "Uw geld is meestal binnen enkele minuten klaar om te besteden, zonder te wachten op bevestigingen."; +"lightning__spark_learn__later_text" = "Uw geld komt beschikbaar na 3 bevestigingen, meestal na ongeveer 30 minuten."; +"lightning__spark_learn__about_title" = "Over uw\nbestedingssaldo"; +"lightning__spark_learn__about_text" = "Uw bestedingssaldo gebruikt Spark, beheerd door Lightspark, Breez en Flashnet.\n\nDe veiligheid ervan hangt af van ten minste één operator die eerlijk handelt. Operators kunnen de toegang pauzeren, en om zonder hun medewerking op te nemen moet u zelf een on-chain exit starten."; "lightning__reserve_balance" = "Reservesaldo (niet besteedbaar)"; "lightning__total_size" = "Grootte van kanaal"; "lightning__fees" = "Vergoedingen"; diff --git a/Bitkit/Resources/Localization/pl.lproj/Localizable.strings b/Bitkit/Resources/Localization/pl.lproj/Localizable.strings index 38f5aff254..7e950ea372 100644 --- a/Bitkit/Resources/Localization/pl.lproj/Localizable.strings +++ b/Bitkit/Resources/Localization/pl.lproj/Localizable.strings @@ -196,7 +196,7 @@ "fee__custom__shortRange" = "Zależy od opłaty"; "fee__custom__longRange" = "Zależy od opłaty transakcyjnej"; "lightning__transfer_intro__title" = "Saldo \nWydatków"; -"lightning__transfer_intro__text" = "Zasil swoje saldo wydatków, aby cieszyć się natychmiastowymi i tanimi transakcjami z przyjaciółmi, rodziną i sprzedawcami."; +"lightning__transfer_intro__text" = "Zasil swoje saldo wydatków, aby cieszyć się natychmiastowymi i tanimi płatnościami Lightning."; "lightning__transfer_intro__button" = "Rozpocznij"; "lightning__funding__nav_title" = "Saldo wydatków"; "lightning__funding__text" = "Najłatwiejszą opcją jest użycie oszczędności Bitkit lub wysłanie bitcoinów z innego portfela."; @@ -219,8 +219,10 @@ "lightning__transfer_hw__reconnect_error_title" = "Połącz ponownie urządzenie"; "lightning__transfer_hw__sign_title" = "Podpisz\nurządzeniem"; "lightning__transfer_hw__signed_title" = "Transakcja\npodpisana"; +"lightning__transfer_hw__address" = "Adres (potwierdź na urządzeniu)"; "lightning__transfer_to_savings_button" = "Prześlij na oszczędności"; "lightning__transfer_to_spending_button" = "Prześlij na wydatki"; +"lightning__transfer_from_savings_button" = "Prześlij z Oszczędności"; "lightning__spending_intro__title" = "Prześlij \nna saldo wydatków"; "lightning__spending_intro__text" = "Przelewaj środki na swoje saldo wydatków, aby cieszyć się natychmiastowymi i tanimi transakcjami z przyjaciółmi, rodziną i sprzedawcami."; "lightning__spending_intro__button" = "Rozpocznij"; @@ -234,18 +236,21 @@ "lightning__spending_amount__error_min__description" = "Do utworzenia salda wydatków wymagana jest minimalna kwota ₿ {amount}."; "lightning__spending_amount__error_max__title" = "Maksymalne saldo wydatków"; "lightning__spending_amount__error_max__description" = "Kwota, którą można przelać na saldo wydatków, jest obecnie ograniczona do ₿ {amount}."; -"lightning__spending_amount__error_fee" = "Couldn't get the network fee. Tap to try again."; +"lightning__spending_amount__error_fee" = "Nie udało się pobrać opłaty sieciowej. Dotknij, aby spróbować ponownie."; "lightning__spending_amount__error_max__description_zero" = "Transfer do salda wydatków jest ograniczony ze względu na politykę płynności. Aby uzyskać szczegółowe informacje, proszę odwiedzić Centrum pomocy."; "lightning__spending_confirm__network_fee" = "Opłaty sieciowe"; "lightning__spending_confirm__lsp_fee" = "Opłaty serwisowe"; "lightning__spending_confirm__amount" = "Do salda wydatków"; "lightning__spending_confirm__total" = "Razem"; -"lightning__spending_confirm__spending_fee" = "Spending fee"; -"lightning__spending_confirm__instant_text" = "Ready in a few minutes"; -"lightning__spending_confirm__later" = "Later"; -"lightning__spending_confirm__later_text" = "After 3 confirmations, about 30 minutes"; -"lightning__spending_confirm__error_quote" = "Bitkit couldn't get the fees for this transfer. Check your connection and try again."; +"lightning__spending_confirm__instant_text" = "Gotowe w kilka minut"; +"lightning__spending_confirm__later" = "Później"; +"lightning__spending_confirm__later_text" = "Gotowe w około 30 minut"; +"lightning__spending_confirm__fee_max" = "maks."; +"lightning__spending_confirm__fee_est" = "szac."; +"lightning__spending_confirm__error_quote" = "Bitkit nie mógł pobrać opłat za ten transfer. Sprawdź połączenie i spróbuj ponownie."; "lightning__spending_confirm__fees_changed_title" = "Opłaty się zmieniły"; +"lightning__spending_confirm__max_changed_title" = "Kwota się zmieniła"; +"lightning__spending_confirm__max_changed" = "Maksymalna kwota transferu wynosi teraz {amount}, ponieważ stawki opłat lub saldo oszczędności zmieniły się podczas wyświetlania tego ekranu. Przesuń ponownie, aby potwierdzić."; "lightning__spending_confirm__fees_changed_network" = "Opłaty są wyższe o {amount}, ponieważ stawki opłat lub saldo oszczędności zmieniły się podczas wyświetlania tego ekranu. Przesuń ponownie, aby potwierdzić."; "lightning__savings_intro__title" = "Prześlij \nna saldo oszczędności"; "lightning__savings_intro__text" = "Przenieś saldo wydatków do oszczędności, aby przechowywać Bitcoiny długoterminowo i zabezpieczyć swoją przyszłość."; @@ -302,8 +307,17 @@ "lightning__setting_up_header" = "W transferze"; "lightning__setting_up_step1" = "Przetwarzanie płatności"; "lightning__setting_up_step2" = "Płatność powiodła się"; -"lightning__setting_up_step_spark" = "Adding To Spending"; -"lightning__setting_up_button" = "Kontunuuj korzystanie z Bitkit\'a"; +"lightning__setting_up_step_spark" = "Dodawanie do salda wydatków"; +"lightning__setting_up_button" = "Kontynuuj korzystanie z Bitkit"; +"lightning__setting_up__text_fast" = "Proszę czekać, transfer środków jest w toku. Powinno to zająć kilka minut."; +"lightning__setting_up__text_normal" = "Proszę czekać, transfer środków jest w toku. Powinno to zająć około 30 minut."; +"lightning__setting_up__fee_changed_title" = "Szybki transfer\nzmiana opłaty"; +"lightning__setting_up__fee_changed_text" = "Opłata za szybki transfer wynosi teraz {fee}. Zatwierdź, aby szybko uzyskać dostęp do środków, lub poczekaj ±30 min."; +"lightning__setting_up__unavailable_title" = "Szybki transfer\nniedostępny"; +"lightning__setting_up__step_fee_changed" = "Zmieniono opłatę za szybki transfer"; +"lightning__setting_up__step_normal_speed" = "Używana jest normalna prędkość transferu"; +"lightning__setting_up__approve" = "Zatwierdź"; +"lightning__setting_up__success_button" = "Super!"; "lightning__node_info" = "Węzeł Lightning"; "lightning__node_id" = "Identyfikator węzła LDK"; "lightning__node_disconnected" = "odłączony"; @@ -455,9 +469,11 @@ "lightning__spark_exit__progress_overview" = "Przegląd postępu"; "lightning__spark_exit__quote_text" = "Rozpocznij wymuszony transfer tylko wtedy, gdy saldo wydatków przestało działać. Twoje środki mogą być niedostępne nawet do 4 tygodni."; "lightning__spark_exit__send_to_address" = "Wyślij na adres"; -"lightning__spark_learn__title" = "Transfer\nspeed"; -"lightning__spark_learn__text" = "Instant pays the provider to add your transfer to your spending balance before it confirms, so it is ready in a few minutes.\n\nLater waits for 3 confirmations, about 30 minutes, and costs less."; -"lightning__spark_learn__label" = "Spending balance after transfer"; +"lightning__spark_learn__title" = "Prędkość\ntransferu"; +"lightning__spark_learn__fast_text" = "Twoje środki są zwykle gotowe do wydania w ciągu kilku minut, bez czekania na potwierdzenia."; +"lightning__spark_learn__later_text" = "Twoje środki będą dostępne po 3 potwierdzeniach, zwykle po około 30 minutach."; +"lightning__spark_learn__about_title" = "O Twoim\nsaldzie wydatków"; +"lightning__spark_learn__about_text" = "Twoje saldo wydatków korzysta ze Spark, obsługiwanego przez Lightspark, Breez i Flashnet.\n\nJego bezpieczeństwo zależy od tego, czy co najmniej jeden operator działa uczciwie. Operatorzy mogą wstrzymać dostęp, a wypłata bez ich współpracy wymaga zainicjowania wyjścia on-chain."; "lightning__reserve_balance" = "Saldo rezerwy (nie do wydania)"; "lightning__total_size" = "Całkowity rozmiar kanału"; "lightning__fees" = "Opłaty"; diff --git a/Bitkit/Resources/Localization/pt-BR.lproj/Localizable.strings b/Bitkit/Resources/Localization/pt-BR.lproj/Localizable.strings index c0ea27f7ac..0acbf06d7e 100644 --- a/Bitkit/Resources/Localization/pt-BR.lproj/Localizable.strings +++ b/Bitkit/Resources/Localization/pt-BR.lproj/Localizable.strings @@ -196,13 +196,13 @@ "fee__custom__shortRange" = "Depende da taxa"; "fee__custom__longRange" = "Depende da taxa"; "lightning__transfer_intro__title" = "Saldo de\nGastos"; -"lightning__transfer_intro__text" = "Use seu saldo de gastos para desfrutar de transações instantâneas e baratas com amigos, familiares e comerciantes."; +"lightning__transfer_intro__text" = "Abasteça seu saldo de gastos para desfrutar de pagamentos Lightning instantâneos e baratos."; "lightning__transfer_intro__button" = "Começar"; "lightning__funding__nav_title" = "Saldo de Gastos"; "lightning__funding__text" = "A forma mais fácil é usar suas economias do Bitkit ou enviar bitcoin de uma carteira diferente."; "lightning__funding__title" = "Transfira para seu saldo de gastos"; "lightning__funding__button1" = "Transferir do Saldo de Poupança"; -"lightning__funding__button2" = "Transferir de Outra Carteira"; +"lightning__funding__button2" = "Usar Outra Carteira"; "lightning__funding__button3" = "Configuração manual"; "lightning__funding_advanced__button_short" = "Configuração Avançada"; "lightning__no_funds__title" = "Não há Fundos Disponíveis"; @@ -219,8 +219,10 @@ "lightning__transfer_hw__reconnect_error_title" = "Reconectar Dispositivo de Hardware"; "lightning__transfer_hw__sign_title" = "Assine com\nseu dispositivo"; "lightning__transfer_hw__signed_title" = "Transação\nassinada"; +"lightning__transfer_hw__address" = "Endereço (confirme no dispositivo)"; "lightning__transfer_to_savings_button" = "Transferir para poupança"; "lightning__transfer_to_spending_button" = "Transferir para gastos"; +"lightning__transfer_from_savings_button" = "Transferir do Saldo de Poupança"; "lightning__spending_intro__title" = "Transferir\npara gastos"; "lightning__spending_intro__text" = "Transfira fundos para seu saldo de gastos para desfrutar de transações instantâneas e baratas com amigos, familiares e comerciantes."; "lightning__spending_intro__button" = "Começar"; @@ -234,18 +236,21 @@ "lightning__spending_amount__error_min__description" = "É necessário um mínimo de ₿ {amount} para estabelecer seu saldo de gastos."; "lightning__spending_amount__error_max__title" = "Saldo de gastos Máximo"; "lightning__spending_amount__error_max__description" = "O valor que você pode transferir para seu saldo de gastos está atualmente limitado a ₿ {amount}."; -"lightning__spending_amount__error_fee" = "Couldn't get the network fee. Tap to try again."; +"lightning__spending_amount__error_fee" = "Não foi possível obter a taxa de rede. Toque para tentar novamente."; "lightning__spending_amount__error_max__description_zero" = "Sua transferência para o saldo de gastos é limitada devido à política de liquidez. Para obter detalhes, visite a Central de Ajuda."; "lightning__spending_confirm__network_fee" = "Taxa da rede"; "lightning__spending_confirm__lsp_fee" = "Taxa de serviço"; "lightning__spending_confirm__amount" = "Para gastos"; "lightning__spending_confirm__total" = "Total"; -"lightning__spending_confirm__spending_fee" = "Spending fee"; -"lightning__spending_confirm__instant_text" = "Ready in a few minutes"; -"lightning__spending_confirm__later" = "Later"; -"lightning__spending_confirm__later_text" = "After 3 confirmations, about 30 minutes"; -"lightning__spending_confirm__error_quote" = "Bitkit couldn't get the fees for this transfer. Check your connection and try again."; +"lightning__spending_confirm__instant_text" = "Pronto em poucos minutos"; +"lightning__spending_confirm__later" = "Mais tarde"; +"lightning__spending_confirm__later_text" = "Pronto em cerca de 30 minutos"; +"lightning__spending_confirm__fee_max" = "máx."; +"lightning__spending_confirm__fee_est" = "est."; +"lightning__spending_confirm__error_quote" = "O Bitkit não conseguiu obter as taxas desta transferência. Verifique sua conexão e tente novamente."; "lightning__spending_confirm__fees_changed_title" = "Taxas alteradas"; +"lightning__spending_confirm__max_changed_title" = "Valor alterado"; +"lightning__spending_confirm__max_changed" = "O máximo que você pode transferir agora é {amount}, porque as taxas de rede ou seu saldo de poupança mudaram enquanto você estava nesta tela. Deslize novamente para confirmar."; "lightning__spending_confirm__fees_changed_network" = "As taxas estão {amount} mais altas porque as taxas de rede ou seu saldo de poupança mudaram enquanto você estava nesta tela. Deslize novamente para confirmar."; "lightning__savings_intro__title" = "Transferir\npara poupança"; "lightning__savings_intro__text" = "Transfira seu saldo de gastos para sua poupança para armazenar seu Bitcoin a longo prazo e garantir seu futuro."; @@ -302,8 +307,17 @@ "lightning__setting_up_header" = "Em transferência"; "lightning__setting_up_step1" = "Processando Pagamento"; "lightning__setting_up_step2" = "Pagamento Realizado"; -"lightning__setting_up_step_spark" = "Adding To Spending"; +"lightning__setting_up_step_spark" = "Adicionando ao Saldo de Gastos"; "lightning__setting_up_button" = "Continuar Usando o Bitkit"; +"lightning__setting_up__text_fast" = "Aguarde, sua transferência de fundos está em andamento. Isso deve levar alguns minutos."; +"lightning__setting_up__text_normal" = "Aguarde, sua transferência de fundos está em andamento. Isso deve levar cerca de 30 minutos."; +"lightning__setting_up__fee_changed_title" = "Transferência rápida\ntaxa alterada"; +"lightning__setting_up__fee_changed_text" = "A taxa de transferência rápida agora é {fee}. Aprove para acessar seus fundos rapidamente, ou aguarde ±30 min."; +"lightning__setting_up__unavailable_title" = "Transferência rápida\nindisponível"; +"lightning__setting_up__step_fee_changed" = "Taxa de Transferência Rápida Alterada"; +"lightning__setting_up__step_normal_speed" = "Usando Velocidade Normal"; +"lightning__setting_up__approve" = "Aprovar"; +"lightning__setting_up__success_button" = "Incrível!"; "lightning__node_info" = "Nó Lightning"; "lightning__node_id" = "ID do LDK Node "; "lightning__node_disconnected" = "desconectado"; @@ -455,9 +469,11 @@ "lightning__spark_exit__progress_overview" = "Visão geral do progresso"; "lightning__spark_exit__quote_text" = "Só inicie uma transferência forçada se o seu saldo de gastos não estiver mais funcionando. Seus fundos podem ficar indisponíveis por até 4 semanas."; "lightning__spark_exit__send_to_address" = "Enviar para o endereço"; -"lightning__spark_learn__title" = "Transfer\nspeed"; -"lightning__spark_learn__text" = "Instant pays the provider to add your transfer to your spending balance before it confirms, so it is ready in a few minutes.\n\nLater waits for 3 confirmations, about 30 minutes, and costs less."; -"lightning__spark_learn__label" = "Spending balance after transfer"; +"lightning__spark_learn__title" = "Velocidade de\ntransferência"; +"lightning__spark_learn__fast_text" = "Seus fundos geralmente ficam prontos para gastar em poucos minutos, sem esperar confirmações."; +"lightning__spark_learn__later_text" = "Seus fundos ficam disponíveis após 3 confirmações, geralmente cerca de 30 minutos."; +"lightning__spark_learn__about_title" = "Sobre seu\nsaldo de gastos"; +"lightning__spark_learn__about_text" = "Seu saldo de gastos usa Spark, operado pela Lightspark, Breez e Flashnet.\n\nA segurança dele depende de pelo menos um operador agir com honestidade. Os operadores podem pausar o acesso, e sacar sem a cooperação deles exige que você inicie uma saída on-chain."; "lightning__reserve_balance" = "Saldo de reserva (não utilizável)"; "lightning__total_size" = "Tamanho total do canal"; "lightning__fees" = "Taxas"; diff --git a/Bitkit/Resources/Localization/pt.lproj/Localizable.strings b/Bitkit/Resources/Localization/pt.lproj/Localizable.strings index 59804118a4..985017754d 100644 --- a/Bitkit/Resources/Localization/pt.lproj/Localizable.strings +++ b/Bitkit/Resources/Localization/pt.lproj/Localizable.strings @@ -224,11 +224,11 @@ "fee__custom__shortDescription" = "Depende da taxa"; "fee__custom__range" = "Depende da taxa"; "lightning__transfer_intro__title" = "Saldo de\nGastos"; -"lightning__transfer_intro__text" = "Use seu saldo de gastos para desfrutar de transações instantâneas e baratas com amigos, familiares e comerciantes."; +"lightning__transfer_intro__text" = "Carregue o seu saldo de gastos para desfrutar de pagamentos Lightning instantâneos e baratos."; "lightning__transfer_intro__button" = "Começar"; "lightning__funding__title" = "Transfira para seu saldo de gastos"; "lightning__funding__button1" = "Transferir do Saldo de Poupança"; -"lightning__funding__button2" = "Transferir de Outra Carteira"; +"lightning__funding__button2" = "Usar Outra Carteira"; "lightning__funding__button3" = "Setup Manual"; "lightning__funding_advanced__button_short" = "Configuração Avançada"; "lightning__no_funds__title" = "Não há Fundos Disponíveis"; @@ -243,25 +243,30 @@ "lightning__transfer_hw__reconnect_error_title" = "Voltar a ligar o dispositivo"; "lightning__transfer_hw__sign_title" = "Assine com\no seu dispositivo"; "lightning__transfer_hw__signed_title" = "Transação\nassinada"; +"lightning__transfer_hw__address" = "Endereço (confirme no dispositivo)"; "lightning__transfer_to_savings_button" = "Transferir Para Poupança"; "lightning__transfer_to_spending_button" = "Transferir Para Gastos"; +"lightning__transfer_from_savings_button" = "Transferir do Saldo de Poupança"; "lightning__spending_intro__title" = "Transferir\npara gastos"; "lightning__spending_intro__text" = "Transfira fundos para seu saldo de gastos para desfrutar de transações instantâneas e baratas com amigos, familiares e comerciantes."; "lightning__spending_intro__button" = "Começar"; "lightning__spending_amount__quarter" = "25%"; "lightning__spending_amount__error_max__title" = "Saldo de gastos Máximo"; "lightning__spending_amount__error_max__description" = "O valor que você pode transferir para seu saldo de gastos está atualmente limitado a ₿ {amount}."; -"lightning__spending_amount__error_fee" = "Couldn't get the network fee. Tap to try again."; +"lightning__spending_amount__error_fee" = "Não foi possível obter a taxa de rede. Toque para tentar novamente."; "lightning__spending_confirm__network_fee" = "Taxa da rede"; "lightning__spending_confirm__lsp_fee" = "Taxa de serviço"; "lightning__spending_confirm__amount" = "Para gastos"; "lightning__spending_confirm__total" = "Total"; -"lightning__spending_confirm__spending_fee" = "Spending fee"; -"lightning__spending_confirm__instant_text" = "Ready in a few minutes"; -"lightning__spending_confirm__later" = "Later"; -"lightning__spending_confirm__later_text" = "After 3 confirmations, about 30 minutes"; -"lightning__spending_confirm__error_quote" = "Bitkit couldn't get the fees for this transfer. Check your connection and try again."; +"lightning__spending_confirm__instant_text" = "Pronto em poucos minutos"; +"lightning__spending_confirm__later" = "Mais tarde"; +"lightning__spending_confirm__later_text" = "Pronto em cerca de 30 minutos"; +"lightning__spending_confirm__fee_max" = "máx."; +"lightning__spending_confirm__fee_est" = "est."; +"lightning__spending_confirm__error_quote" = "O Bitkit não conseguiu obter as taxas desta transferência. Verifique a ligação e tente novamente."; "lightning__spending_confirm__fees_changed_title" = "As taxas mudaram"; +"lightning__spending_confirm__max_changed_title" = "Montante alterado"; +"lightning__spending_confirm__max_changed" = "O máximo que pode transferir é agora {amount}, porque as taxas de rede ou o seu saldo de poupança mudaram enquanto estava neste ecrã. Deslize novamente para confirmar."; "lightning__spending_confirm__fees_changed_network" = "As taxas estão {amount} mais altas porque as taxas de rede ou o seu saldo de poupança mudaram enquanto estava neste ecrã. Deslize novamente para confirmar."; "lightning__savings_intro__title" = "Transferir\npara poupança"; "lightning__savings_intro__text" = "Transfira seu saldo de gastos para sua poupança para armazenar seu Bitcoin a longo prazo e garantir seu futuro."; @@ -314,8 +319,17 @@ "lightning__receiving_label" = "Capacidade de recebimento"; "lightning__setting_up_step1" = "Processando Pagamento"; "lightning__setting_up_step2" = "Pagamento Realizado"; -"lightning__setting_up_step_spark" = "Adding To Spending"; +"lightning__setting_up_step_spark" = "A Adicionar ao Saldo de Gastos"; "lightning__setting_up_button" = "Continuar Usando o Bitkit"; +"lightning__setting_up__text_fast" = "Aguarde, a sua transferência de fundos está em curso. Isto deve demorar alguns minutos."; +"lightning__setting_up__text_normal" = "Aguarde, a sua transferência de fundos está em curso. Isto deve demorar cerca de 30 minutos."; +"lightning__setting_up__fee_changed_title" = "Transferência rápida\ntaxa alterada"; +"lightning__setting_up__fee_changed_text" = "A taxa de transferência rápida é agora {fee}. Aprove para aceder rapidamente aos seus fundos, ou aguarde ±30 min."; +"lightning__setting_up__unavailable_title" = "Transferência rápida\nindisponível"; +"lightning__setting_up__step_fee_changed" = "Taxa de Transferência Rápida Alterada"; +"lightning__setting_up__step_normal_speed" = "A Usar Velocidade Normal"; +"lightning__setting_up__approve" = "Aprovar"; +"lightning__setting_up__success_button" = "Fantástico!"; "lightning__node_info" = "Nó Lightning"; "lightning__connections" = "Conexões Lightning"; "lightning__conn_pending" = "Conexões pendentes"; @@ -453,9 +467,11 @@ "lightning__spark_exit__progress_overview" = "Vista geral do progresso"; "lightning__spark_exit__quote_text" = "Só inicie uma transferência forçada se o seu saldo de gastos já não funcionar. Os seus fundos podem ficar indisponíveis até 4 semanas."; "lightning__spark_exit__send_to_address" = "Enviar para o endereço"; -"lightning__spark_learn__title" = "Transfer\nspeed"; -"lightning__spark_learn__text" = "Instant pays the provider to add your transfer to your spending balance before it confirms, so it is ready in a few minutes.\n\nLater waits for 3 confirmations, about 30 minutes, and costs less."; -"lightning__spark_learn__label" = "Spending balance after transfer"; +"lightning__spark_learn__title" = "Velocidade de\ntransferência"; +"lightning__spark_learn__fast_text" = "Os seus fundos ficam normalmente prontos a gastar em poucos minutos, sem esperar por confirmações."; +"lightning__spark_learn__later_text" = "Os seus fundos ficam disponíveis após 3 confirmações, normalmente cerca de 30 minutos."; +"lightning__spark_learn__about_title" = "Sobre o seu\nsaldo de gastos"; +"lightning__spark_learn__about_text" = "O seu saldo de gastos usa Spark, operado pela Lightspark, Breez e Flashnet.\n\nA sua segurança depende de pelo menos um operador agir com honestidade. Os operadores podem pausar o acesso, e levantar fundos sem a cooperação deles requer que inicie uma saída on-chain."; "lightning__reserve_balance" = "Saldo de reserva (não utilizável)"; "lightning__total_size" = "Tamanho total do canal"; "lightning__fees" = "Taxas"; diff --git a/Bitkit/Resources/Localization/ru.lproj/Localizable.strings b/Bitkit/Resources/Localization/ru.lproj/Localizable.strings index b29b8c8976..6d9b4e8981 100644 --- a/Bitkit/Resources/Localization/ru.lproj/Localizable.strings +++ b/Bitkit/Resources/Localization/ru.lproj/Localizable.strings @@ -195,8 +195,8 @@ "fee__custom__range" = "Зависит от комиссии"; "fee__custom__shortRange" = "Зависит от комиссии"; "fee__custom__longRange" = "Зависит от комиссии"; -"lightning__transfer_intro__title" = "Расходы\nБаланс"; -"lightning__transfer_intro__text" = "Пополните свой баланс расходов, чтобы наслаждаться мгновенными и недорогими транзакциями с друзьями, семьёй и продавцами."; +"lightning__transfer_intro__title" = "Баланс\nРасходов"; +"lightning__transfer_intro__text" = "Пополните свой баланс расходов, чтобы совершать мгновенные и недорогие Lightning-платежи."; "lightning__transfer_intro__button" = "Начать"; "lightning__funding__nav_title" = "Баланс Расходов"; "lightning__funding__text" = "Самый простой вариант — использовать ваши сбережения Bitkit или отправить биткоин с другого кошелька."; @@ -218,8 +218,10 @@ "lightning__transfer_hw__reconnect_error_title" = "Переподключите Аппаратное Устройство"; "lightning__transfer_hw__sign_title" = "Подпишите на\nустройстве"; "lightning__transfer_hw__signed_title" = "Транзакция\nподписана"; +"lightning__transfer_hw__address" = "Адрес (подтвердите на устройстве)"; "lightning__transfer_to_savings_button" = "Перевести в Сбережения"; "lightning__transfer_to_spending_button" = "Перевести на Расходы"; +"lightning__transfer_from_savings_button" = "Перевести из Сбережений"; "lightning__spending_intro__title" = "Перевод\nна Расходы"; "lightning__spending_intro__text" = "Переведите средства на свой баланс расходов, чтобы наслаждаться мгновенными и недорогими транзакциями с друзьями, семьёй и продавцами."; "lightning__spending_intro__button" = "Начать"; @@ -231,17 +233,20 @@ "lightning__spending_amount__quarter" = "25%"; "lightning__spending_amount__error_max__title" = "Максимум Баланса Расходов"; "lightning__spending_amount__error_max__description" = "Сумма, которую вы можете перевести на баланс расходов, в настоящее время ограничена ₿ {amount}."; -"lightning__spending_amount__error_fee" = "Couldn't get the network fee. Tap to try again."; +"lightning__spending_amount__error_fee" = "Не удалось получить сетевую комиссию. Нажмите, чтобы повторить."; "lightning__spending_confirm__network_fee" = "Сетевые Комиссии"; "lightning__spending_confirm__lsp_fee" = "Сервисные Комиссии"; "lightning__spending_confirm__amount" = "На Баланс Расходов"; "lightning__spending_confirm__total" = "Итого"; -"lightning__spending_confirm__spending_fee" = "Spending fee"; -"lightning__spending_confirm__instant_text" = "Ready in a few minutes"; -"lightning__spending_confirm__later" = "Later"; -"lightning__spending_confirm__later_text" = "After 3 confirmations, about 30 minutes"; -"lightning__spending_confirm__error_quote" = "Bitkit couldn't get the fees for this transfer. Check your connection and try again."; +"lightning__spending_confirm__instant_text" = "Готово через несколько минут"; +"lightning__spending_confirm__later" = "Позже"; +"lightning__spending_confirm__later_text" = "Готово примерно через 30 минут"; +"lightning__spending_confirm__fee_max" = "макс."; +"lightning__spending_confirm__fee_est" = "прибл."; +"lightning__spending_confirm__error_quote" = "Bitkit не удалось получить комиссии для этого перевода. Проверьте подключение и попробуйте снова."; "lightning__spending_confirm__fees_changed_title" = "Комиссии изменились"; +"lightning__spending_confirm__max_changed_title" = "Сумма изменилась"; +"lightning__spending_confirm__max_changed" = "Теперь вы можете перевести не более {amount}, потому что ставки комиссий или баланс сбережений изменились, пока вы были на этом экране. Проведите ещё раз для подтверждения."; "lightning__spending_confirm__fees_changed_network" = "Комиссии выросли на {amount}, потому что ставки комиссий или баланс сбережений изменились, пока вы были на этом экране. Проведите ещё раз для подтверждения."; "lightning__savings_intro__title" = "Перевод\nв Сбережения"; "lightning__savings_intro__text" = "Переведите свой баланс расходов в сбережения, чтобы хранить свой биткойн в долгосрочной перспективе и обеспечить своё будущее."; @@ -298,8 +303,17 @@ "lightning__setting_up_header" = "В Процессе Перевода"; "lightning__setting_up_step1" = "Обработка Платежа"; "lightning__setting_up_step2" = "Платеж Успешен"; -"lightning__setting_up_step_spark" = "Adding To Spending"; +"lightning__setting_up_step_spark" = "Добавление на Баланс Расходов"; "lightning__setting_up_button" = "Продолжить Использование Bitkit"; +"lightning__setting_up__text_fast" = "Пожалуйста, подождите, ваш перевод средств выполняется. Это займёт несколько минут."; +"lightning__setting_up__text_normal" = "Пожалуйста, подождите, ваш перевод средств выполняется. Это займёт около 30 минут."; +"lightning__setting_up__fee_changed_title" = "Быстрый перевод\nкомиссия изменилась"; +"lightning__setting_up__fee_changed_text" = "Комиссия за быстрый перевод теперь составляет {fee}. Одобрите, чтобы быстро получить доступ к средствам, или подождите ±30 мин."; +"lightning__setting_up__unavailable_title" = "Быстрый перевод\nнедоступен"; +"lightning__setting_up__step_fee_changed" = "Комиссия за Быстрый Перевод Изменилась"; +"lightning__setting_up__step_normal_speed" = "Используется Обычная Скорость Перевода"; +"lightning__setting_up__approve" = "Одобрить"; +"lightning__setting_up__success_button" = "Отлично!"; "lightning__node_info" = "Lightning Узел"; "lightning__node_id" = "ID Узла LDK"; "lightning__node_disconnected" = "Отключено"; @@ -450,9 +464,11 @@ "lightning__spark_exit__progress_overview" = "Обзор выполнения"; "lightning__spark_exit__quote_text" = "Начинайте принудительный перевод, только если баланс расходов перестал работать. Ваши средства могут быть недоступны до 4 недель."; "lightning__spark_exit__send_to_address" = "Отправить на адрес"; -"lightning__spark_learn__title" = "Transfer\nspeed"; -"lightning__spark_learn__text" = "Instant pays the provider to add your transfer to your spending balance before it confirms, so it is ready in a few minutes.\n\nLater waits for 3 confirmations, about 30 minutes, and costs less."; -"lightning__spark_learn__label" = "Spending balance after transfer"; +"lightning__spark_learn__title" = "Скорость\nперевода"; +"lightning__spark_learn__fast_text" = "Ваши средства обычно готовы к использованию в течение нескольких минут, без ожидания подтверждений."; +"lightning__spark_learn__later_text" = "Ваши средства станут доступны после 3 подтверждений, обычно примерно через 30 минут."; +"lightning__spark_learn__about_title" = "О вашем\nбалансе расходов"; +"lightning__spark_learn__about_text" = "Ваш баланс расходов использует Spark, который обслуживают Lightspark, Breez и Flashnet.\n\nЕго безопасность зависит от того, что хотя бы один оператор действует честно. Операторы могут приостановить доступ, а для вывода средств без их участия вам нужно инициировать выход в блокчейн (on-chain)."; "lightning__reserve_balance" = "Резервный Баланс (не доступен для трат)"; "lightning__total_size" = "Общий Размер Канала"; "lightning__fees" = "Комиссии"; diff --git a/Bitkit/ViewModels/AmountInputViewModel.swift b/Bitkit/ViewModels/AmountInputViewModel.swift index c586885eb2..1b6513f1d7 100644 --- a/Bitkit/ViewModels/AmountInputViewModel.swift +++ b/Bitkit/ViewModels/AmountInputViewModel.swift @@ -34,6 +34,24 @@ final class AmountInputViewModel { // MARK: - Private Properties private var rawInputText: String = "" + /// The unit `rawInputText` was written in, so the text is read again only in that unit. + private var rawInputUnit: InputUnit? + + struct InputUnit: Equatable { + let display: PrimaryDisplay + let bitcoinUnit: BitcoinDisplayUnit + + @MainActor + init(_ currency: CurrencyViewModel) { + display = currency.primaryDisplay + bitcoinUnit = currency.displayUnit + } + + init(display: PrimaryDisplay, bitcoinUnit: BitcoinDisplayUnit) { + self.display = display + self.bitcoinUnit = bitcoinUnit + } + } init() {} @@ -44,6 +62,7 @@ final class AmountInputViewModel { /// - key: The key pressed on the number pad /// - currency: The current currency settings func handleNumberPadInput(_ key: String, currency: CurrencyViewModel) { + defer { rawInputUnit = InputUnit(currency) } let maxLength = getMaxLength(currency: currency) let maxDecimals = getMaxDecimals(currency: currency) @@ -53,6 +72,9 @@ final class AmountInputViewModel { maxLength: maxLength, maxDecimals: maxDecimals ) + // A rejected key leaves the text as it was; reading it again would round the kept sats to the text's precision. + // Delete still applies, so it clears an amount kept without text (a preset in fiat with no rate). + guard newText != rawInputText || key == "delete" else { return } // Deletions must always apply, even when the amount is above the cap (e.g. a // prefilled invoice amount over the available balance, or a cap that dropped @@ -118,23 +140,45 @@ final class AmountInputViewModel { /// - newAmountSats: The new amount in satoshis /// - currency: The current currency settings func updateFromSats(_ newAmountSats: UInt64, currency: CurrencyViewModel) { + defer { rawInputUnit = InputUnit(currency) } amountSats = newAmountSats displayText = formatDisplayTextFromAmount(newAmountSats, currency: currency) // Update raw input text based on the formatted display // Remove formatting separators (spaces for modern Bitcoin, commas for fiat) if currency.primaryDisplay == .fiat { - rawInputText = displayText.replacingOccurrences(of: ",", with: "") + rawInputText = Self.asciiDigits(displayText.replacingOccurrences(of: ",", with: "")) } else if currency.displayUnit == .modern { // Modern Bitcoin uses spaces as grouping separators - rawInputText = displayText.replacingOccurrences(of: " ", with: "") + rawInputText = Self.asciiDigits(displayText.replacingOccurrences(of: " ", with: "")) } else { - rawInputText = displayText + rawInputText = Self.asciiDigits(displayText) } } + /// The number pad's raw input reads ASCII digits only, while the display formats them in the device's numbering + /// system (Arabic-Indic digits, say); without this the next key parsed the amount as 0. + nonisolated static func asciiDigits(_ text: String) -> String { + String(text.map { character in + character.isNumber ? character.wholeNumberValue.map { Character(String($0)) } ?? character : character + }) + } + + /// Shows the kept amount in the current display unit, after another screen switched it. Text typed in the unit + /// still shown stays as typed, also when its rate changed meanwhile; after a switch the kept sats are shown, never the + /// old text read in the new unit. + func refreshDisplay(currency: CurrencyViewModel) { + guard Self.redrawsOnReturn(amountSats: amountSats, textUnit: rawInputUnit, currentUnit: InputUnit(currency)) else { return } + updateFromSats(amountSats, currency: currency) + } + + nonisolated static func redrawsOnReturn(amountSats: UInt64, textUnit: InputUnit?, currentUnit: InputUnit) -> Bool { + amountSats > 0 && textUnit != currentUnit + } + /// Toggles between Bitcoin and Fiat display modes while preserving input /// - Parameter currency: The current currency settings func togglePrimaryDisplay(currency: CurrencyViewModel) { + defer { rawInputUnit = InputUnit(currency) } // Store the current raw input before toggling let currentRawInput = rawInputText @@ -146,12 +190,12 @@ final class AmountInputViewModel { // Update raw input text based on the formatted display // Remove formatting separators (spaces for modern Bitcoin, commas for fiat) if currency.primaryDisplay == .fiat { - rawInputText = displayText.replacingOccurrences(of: ",", with: "") + rawInputText = Self.asciiDigits(displayText.replacingOccurrences(of: ",", with: "")) } else if currency.displayUnit == .modern { // Modern Bitcoin uses spaces as grouping separators - rawInputText = displayText.replacingOccurrences(of: " ", with: "") + rawInputText = Self.asciiDigits(displayText.replacingOccurrences(of: " ", with: "")) } else { - rawInputText = displayText + rawInputText = Self.asciiDigits(displayText) } } else if !currentRawInput.isEmpty { // Convert the raw input from the old currency to the new currency @@ -160,7 +204,7 @@ final class AmountInputViewModel { // First convert the Bitcoin input to sats, then to fiat let sats = convertBitcoinToSats(currentRawInput, isModern: currency.displayUnit == .modern) if let converted = currency.convert(sats: sats) { - rawInputText = converted.formatted.replacingOccurrences(of: ",", with: "") + rawInputText = Self.asciiDigits(converted.formatted.replacingOccurrences(of: ",", with: "")) displayText = formatFiatGroupingOnly(rawInputText) } } else { @@ -172,9 +216,9 @@ final class AmountInputViewModel { displayText = formatted // Remove spaces from rawInputText for modern Bitcoin if currency.displayUnit == .modern { - rawInputText = formatted.replacingOccurrences(of: " ", with: "") + rawInputText = Self.asciiDigits(formatted.replacingOccurrences(of: " ", with: "")) } else { - rawInputText = formatted + rawInputText = Self.asciiDigits(formatted) } } } diff --git a/Bitkit/ViewModels/CurrencyViewModel.swift b/Bitkit/ViewModels/CurrencyViewModel.swift index cfd569a642..40c9a2ed72 100644 --- a/Bitkit/ViewModels/CurrencyViewModel.swift +++ b/Bitkit/ViewModels/CurrencyViewModel.swift @@ -141,6 +141,7 @@ extension CurrencyViewModel { return rate.currencySymbol } + /// Nil without a usable rate: a missing ticker, or a price that is zero or unreadable, so no amount reads zero in it. func convert(sats: UInt64, to currency: String? = nil) -> ConvertedAmount? { let targetCurrency = currency ?? selectedCurrency guard let rate = currencyService.getCurrentRate(for: targetCurrency, from: rates) else { @@ -156,17 +157,33 @@ extension CurrencyViewModel { return nil } - // Convert fiat amount to sats - // First convert to BTC using the rate, then to sats - let btc = fiatAmount / Double(truncating: rate.rate as NSNumber) - let sats = (btc * 100_000_000).rounded() + return Self.sats(fiatAmount: fiatAmount, rate: rate.rate) + } + + /// The sats `fiatAmount` buys at `rate`; nil for a rate that is not positive or a result out of range. + nonisolated static func sats(fiatAmount: Double, rate: Decimal) -> UInt64? { + let price = Double(truncating: rate as NSNumber) + guard price > 0 else { return nil } + let sats = (fiatAmount / price * 100_000_000).rounded() + guard sats.isFinite, sats >= 0, sats < Double(UInt64.max) else { return nil } return UInt64(sats) } + + /// Whether the selected currency has a usable rate, so amounts can show in it. + var hasUsableRate: Bool { + guard let rate = currencyService.getCurrentRate(for: selectedCurrency, from: rates) else { return false } + return rate.rate > 0 + } } extension CurrencyViewModel { func primaryAmountText(sats: UInt64) -> String { - Self.primaryAmountText(sats: sats, converted: convert(sats: sats), primaryDisplay: primaryDisplay, displayUnit: displayUnit) + Self.primaryAmountText( + sats: sats, + converted: hasUsableRate ? convert(sats: sats) : nil, + primaryDisplay: primaryDisplay, + displayUnit: displayUnit + ) } /// An amount the user sends from another wallet, always in bitcoin: it must be exact, which a fiat figure converted @@ -181,13 +198,10 @@ extension CurrencyViewModel { primaryDisplay: PrimaryDisplay, displayUnit: BitcoinDisplayUnit ) -> String { - guard let converted else { return "₿ \(CurrencyFormatter.formatSats(sats))" } - switch primaryDisplay { - case .fiat: + if primaryDisplay == .fiat, let converted { return converted.formattedWithSymbol() - case .bitcoin: - let components = converted.bitcoinDisplay(unit: displayUnit) - return "\(components.symbol) \(components.value)" } + let components = ConvertedAmount.bitcoinDisplay(sats: sats, unit: displayUnit) + return "\(components.symbol) \(components.value)" } } diff --git a/Bitkit/ViewModels/SparkTransferFlow.swift b/Bitkit/ViewModels/SparkTransferFlow.swift index 9fc340632b..ed8a6f19bd 100644 --- a/Bitkit/ViewModels/SparkTransferFlow.swift +++ b/Bitkit/ViewModels/SparkTransferFlow.swift @@ -403,6 +403,8 @@ final class SparkTransferFlow { return seenTxid == txid || deposits.contains { $0.isListed && $0.txid.caseInsensitiveCompare(txid) == .orderedSame } } + /// Notes from Spark's deposit list that it saw this transfer's deposit, and ends the transfer once Spark lists the + /// deposit as claimed. func noteSettled(_ deposits: [SparkDeposit]) { if let txid, deposits.contains(where: { $0.isListed && $0.txid.caseInsensitiveCompare(txid) == .orderedSame }) { seenTxid = txid diff --git a/Bitkit/Views/OnboardingView.swift b/Bitkit/Views/OnboardingView.swift index f4f0016ca0..376fb86ee4 100644 --- a/Bitkit/Views/OnboardingView.swift +++ b/Bitkit/Views/OnboardingView.swift @@ -83,7 +83,7 @@ struct OnboardingView: View { .frame(maxWidth: .infinity) .frame(maxHeight: .infinity) .layoutPriority(1) - .padding(.horizontal, 16) + .padding(.horizontal, contentHorizontalPadding) VStack(alignment: .leading, spacing: titleDescriptionSpacing) { DisplayText(title, textColor: titleColor, accentColor: accentColor) diff --git a/Bitkit/Views/Transfer/FundingOptions.swift b/Bitkit/Views/Transfer/FundingOptions.swift index d25a9b1dc0..45e2b05a0e 100644 --- a/Bitkit/Views/Transfer/FundingOptions.swift +++ b/Bitkit/Views/Transfer/FundingOptions.swift @@ -28,6 +28,45 @@ struct FundingOptions: View { } } + private var transferFromSavingsButton: some View { + RectangleButton(icon: "transfer", title: t("lightning__funding__button1"), isDisabled: !canFundWithSpark, testID: "FundTransfer") { + if !SparkManager.shared.canFundFromChain { + sheets.showSheet(.transferUnavailable) + } else if wallet.spendableOnchainBalanceSats == 0 { + showNoFundsAlert = true + } else if app.hasSeenTransferToSpendingIntro { + navigation.navigate(.spendingAmount) + } else { + navigation.navigate(.spendingIntro) + } + } + } + + private var transferFromHardwareButton: some View { + RectangleButton( + icon: "device-tablet-speaker", + title: t("lightning__funding__button_hw"), + // A hardware wallet's deposit goes out on Bitkit's chain, which Spark must read. + isDisabled: !SparkManager.shared.canFundFromChain, + testID: "FundHardware" + ) { + fundWithHardware() + } + } + + private var useOtherWalletButton: some View { + RectangleButton(icon: "qr", title: t("lightning__funding__button2"), isDisabled: !canFundWithSpark, testID: "FundReceive") { + navigation.reset() + sheets.showSheet(.receive) + } + } + + private var manualSetupButton: some View { + RectangleButton(icon: "pencil", title: t("lightning__funding__button3"), testID: "FundManual") { + navigation.navigate(.fundManual(nodeUri: nil)) + } + } + var body: some View { VStack(spacing: 0) { NavigationBar(title: t("lightning__funding__nav_title")) @@ -45,57 +84,29 @@ struct FundingOptions: View { VStack(spacing: 8) { if canFundWithSpark { - RectangleButton(icon: "transfer", title: t("lightning__funding__button1"), testID: "FundTransfer") { - if !SparkManager.shared.canFundFromChain { - sheets.showSheet(.transferUnavailable) - } else if wallet.spendableOnchainBalanceSats == 0 { - showNoFundsAlert = true - } else if app.hasSeenTransferToSpendingIntro { - navigation.navigate(.spendingAmount) - } else { - navigation.navigate(.spendingIntro) - } - } - RectangleButton(icon: "qr", title: t("lightning__funding__button2"), testID: "FundReceive") { - navigation.reset() - sheets.showSheet(.receive) - } - } - - RectangleButton( - icon: "pencil", - title: t("lightning__funding__button3"), - testID: "FundManual" - ) { - navigation.navigate(.fundManual(nodeUri: nil)) - } - - if !canFundWithSpark { - RectangleButton(icon: "transfer", title: t("lightning__funding__button1"), isDisabled: true, testID: "FundTransfer") {} - } - RectangleButton( - icon: "device-tablet-speaker", - title: t("lightning__funding__button_hw"), - // A hardware wallet's deposit goes out on Bitkit's chain, which Spark must read. - isDisabled: !SparkManager.shared.canFundFromChain, - testID: "FundHardware" - ) { - fundWithHardware() - } - if !canFundWithSpark { - RectangleButton(icon: "qr", title: t("lightning__funding__button2"), isDisabled: true, testID: "FundReceive") {} + transferFromSavingsButton + transferFromHardwareButton + useOtherWalletButton + manualSetupButton + } else { + manualSetupButton + transferFromSavingsButton + transferFromHardwareButton + useOtherWalletButton } } Spacer() - CustomButton(title: t("common__learn_more"), variant: .secondary) { - if let url = URL(string: Env.blocktankSunsetUrl) { - UIApplication.shared.open(url) + if !canFundWithSpark { + CustomButton(title: t("common__learn_more"), variant: .secondary) { + if let url = URL(string: Env.blocktankSunsetUrl) { + UIApplication.shared.open(url) + } } + .accessibilityIdentifier("FundLearnMore") + .padding(.bottom, 16) } - .accessibilityIdentifier("FundLearnMore") - .padding(.bottom, 16) } .navigationBarHidden(true) .padding(.horizontal, 16) diff --git a/Bitkit/Views/Transfer/Hardware/SpendingAmountHw.swift b/Bitkit/Views/Transfer/Hardware/SpendingAmountHw.swift index c78f930d47..f93615c164 100644 --- a/Bitkit/Views/Transfer/Hardware/SpendingAmountHw.swift +++ b/Bitkit/Views/Transfer/Hardware/SpendingAmountHw.swift @@ -48,8 +48,6 @@ struct SpendingAmountHw: View { } .padding(.top, 32) - Spacer() - HStack(alignment: .bottom) { availableAmount @@ -57,10 +55,13 @@ struct SpendingAmountHw: View { actionButtons } - .padding(.bottom, 12) + .padding(.top, 32) + .padding(.bottom, 16) Divider() + Spacer() + NumberPad( type: amountViewModel.getNumberPadType(currency: currency), errorKey: amountViewModel.errorKey, @@ -84,6 +85,8 @@ struct SpendingAmountHw: View { .task(id: maxAttempt) { await loadAvailable() } + // The confirm screen's fees switch the display unit, so the kept amount follows it on the way back. + .onAppear { amountViewModel.refreshDisplay(currency: currency) } .onChange(of: maxAllowed, initial: true) { updateInputCap() } .onChange(of: isLoading) { updateInputCap() } .onChange(of: amountViewModel.maxExceededCount) { onMaxExceeded() } diff --git a/Bitkit/Views/Transfer/Hardware/SpendingHwSign.swift b/Bitkit/Views/Transfer/Hardware/SpendingHwSign.swift index 7bf8d4bb5a..feffff0d82 100644 --- a/Bitkit/Views/Transfer/Hardware/SpendingHwSign.swift +++ b/Bitkit/Views/Transfer/Hardware/SpendingHwSign.swift @@ -31,59 +31,65 @@ struct SpendingHwSign: View { .disabled(!hwSend.canLeave) .padding(.bottom, 16) - GeometryReader { geometry in - ScrollView(showsIndicators: false) { - VStack(alignment: .leading, spacing: 0) { - DisplayText( - t(hwSend.hasPendingBroadcast ? "lightning__transfer_hw__signed_title" : "lightning__transfer_hw__sign_title"), - accentColor: .purpleAccent - ) - - SpendingConfirmFees(quote: flow.quote, speed: flow.speed, isLoading: flow.quote == nil && flow.quoteError == nil) - .padding(.top, 16) - - if let error = flow.quoteError { - BodyMText(error, textColor: .redAccent) - .padding(.bottom, 16) - } - - SpendingSpeedPicker(quote: flow.quote, speed: Bindable(flow).speed) + ZStack(alignment: .bottom) { + GeometryReader { geometry in + ScrollView(showsIndicators: false) { + // As in the frame: 32 under the title, 10 between the fee rows and 10 above the speed rows. + VStack(alignment: .leading, spacing: 0) { + DisplayText( + t(hwSend.hasPendingBroadcast ? "lightning__transfer_hw__signed_title" : "lightning__transfer_hw__sign_title"), + accentColor: .purpleAccent + ) + + SpendingConfirmFees( + quote: flow.quote, + speed: flow.speed, + isLoading: flow.quote == nil && flow.quoteError == nil, + address: flow.quote?.address, + rowSpacing: 10 + ) + .padding(.top, 32) + + if let error = flow.quoteError { + BodyMText(error, textColor: .redAccent) + .padding(.top, 10) + } + + SpendingSpeedPicker( + quote: flow.quote, + speed: Bindable(flow).speed, + isLoading: flow.quote == nil && flow.quoteError == nil + ) .disabled(isBusy || hwSend.hasPendingBroadcast) - .padding(.horizontal, -16) - .padding(.bottom, 16) - - CustomButton(title: t("common__learn_more"), size: .small, isDisabled: isBusy || hwSend.hasPendingBroadcast) { - navigation.navigate(.transferLearnMore) + .padding(.top, 10) + + // At least 56 above the device on short screens. + Spacer(minLength: 56) + + // As in the frame: the device's top 187 of 254 points shows, its lower part behind the button. + Image(vendor.transferSignImageName) + .resizable() + .aspectRatio(contentMode: .fit) + .frame(width: 254, height: 254) + .frame(height: 187, alignment: .top) + .clipped() + .frame(maxWidth: .infinity) + .accessibilityHidden(true) } - .accessibilityIdentifier("HardwareTransferSignLearnMore") - - Spacer(minLength: 16) - - Image(vendor.signImageName) - .resizable() - .aspectRatio(contentMode: .fit) - .frame(maxWidth: 200, maxHeight: 200) - .frame(maxWidth: .infinity) - .accessibilityHidden(true) - - Spacer(minLength: 16) + // Fills the free space on tall screens so the device sits at the bottom, and scrolls on short ones. + .frame(minHeight: geometry.size.height) } - // Fills the free space on tall screens so the picture sits centred in it, and scrolls on short ones. - .frame(minHeight: geometry.size.height) - // The speed rows run edge to edge, so the scroll spans the screen and pads its own content. - .padding(.horizontal, 16) } - .padding(.horizontal, -16) - } - CustomButton( - title: hwSend.hasPendingBroadcast ? t("common__retry") : vendor.sendSignButtonTitle, - isDisabled: isBusy || flow.quote == nil, - isLoading: isBusy - ) { - startSigning() + CustomButton( + title: hwSend.hasPendingBroadcast ? t("common__retry") : vendor.sendSignButtonTitle, + isDisabled: isBusy || flow.quote == nil, + isLoading: isBusy + ) { + startSigning() + } + .accessibilityIdentifier("HardwareTransferOpenTrezorConnect") } - .accessibilityIdentifier("HardwareTransferOpenTrezorConnect") } .accessibilityElement(children: .contain) .accessibilityIdentifier("HardwareTransferSign") diff --git a/Bitkit/Views/Transfer/Hardware/SpendingHwSigned.swift b/Bitkit/Views/Transfer/Hardware/SpendingHwSigned.swift index 749df76efd..d677a6d81b 100644 --- a/Bitkit/Views/Transfer/Hardware/SpendingHwSigned.swift +++ b/Bitkit/Views/Transfer/Hardware/SpendingHwSigned.swift @@ -17,14 +17,14 @@ struct SpendingHwSigned: View { DisplayText(t("lightning__transfer_hw__signed_title"), accentColor: .purpleAccent) SpendingConfirmFees(quote: flow.quote, speed: flow.speed) - .padding(.top, 16) + .padding(.top, 24) Image("check") .resizable() .aspectRatio(contentMode: .fit) .frame(width: 256, height: 256) - .padding() - .frame(maxWidth: .infinity, maxHeight: .infinity) + .frame(maxWidth: .infinity) + .padding(.top, 32) .accessibilityIdentifier("HardwareTransferSigned") Spacer() diff --git a/Bitkit/Views/Transfer/SpendingAmount.swift b/Bitkit/Views/Transfer/SpendingAmount.swift index 215dedb0b6..675667a0a8 100644 --- a/Bitkit/Views/Transfer/SpendingAmount.swift +++ b/Bitkit/Views/Transfer/SpendingAmount.swift @@ -47,8 +47,6 @@ struct SpendingAmount: View { } .padding(.top, 32) - Spacer() - HStack(alignment: .bottom) { availableAmount @@ -56,10 +54,13 @@ struct SpendingAmount: View { actionButtons } - .padding(.bottom, 12) + .padding(.top, 32) + .padding(.bottom, 16) Divider() + Spacer() + NumberPad( type: amountViewModel.getNumberPadType(currency: currency), errorKey: amountViewModel.errorKey, @@ -91,6 +92,8 @@ struct SpendingAmount: View { isCalculatingMax = false } } + // The confirm screen's fees switch the display unit, so the kept amount follows it on the way back. + .onAppear { amountViewModel.refreshDisplay(currency: currency) } .onChange(of: maxTransferAmount) { updateInputCap() } .onChange(of: amountViewModel.maxExceededCount) { onMaxExceeded() } } diff --git a/Bitkit/Views/Transfer/SpendingConfirm.swift b/Bitkit/Views/Transfer/SpendingConfirm.swift index 1e433db8f5..f338dffcb8 100644 --- a/Bitkit/Views/Transfer/SpendingConfirm.swift +++ b/Bitkit/Views/Transfer/SpendingConfirm.swift @@ -13,9 +13,6 @@ struct SpendingConfirm: View { @State private var isPaying = false @State private var hideSwipeButton = false - /// The coin drawing fills 72% of its square image, so this draws it about 134 pt wide, Android's third of the screen. - private static let coinsSize: CGFloat = 186 - /// Fee rates move while the screen is open, so the quote is redone this often as well as on every change. private static let requoteInterval: Duration = .seconds(60) @@ -31,49 +28,31 @@ struct SpendingConfirm: View { .disabled(isPaying) .padding(.bottom, 16) - // The coins sit in the space left above the swipe, as on Android; on a short screen the content scrolls. - GeometryReader { geo in - ScrollView(showsIndicators: false) { - VStack(alignment: .leading, spacing: 0) { - DisplayText(t("lightning__transfer__confirm"), accentColor: .purpleAccent) - - SpendingConfirmFees(quote: flow.quote, speed: flow.speed, isLoading: flow.quote == nil && flow.quoteError == nil) - .padding(.top, 16) - - if let error = flow.quoteError { - quoteError(error) - .padding(.bottom, 16) - } - - SpendingSpeedPicker(quote: flow.quote, speed: Bindable(flow).speed) - .disabled(isPaying) - .padding(.top, 8) - .padding(.horizontal, -16) - .padding(.bottom, 10) + ScrollView(showsIndicators: false) { + VStack(alignment: .leading, spacing: 24) { + DisplayText(t("lightning__transfer__confirm"), accentColor: .purpleAccent) - CustomButton(title: t("common__learn_more"), size: .small) { - navigation.navigate(.transferLearnMore) - } - .disabled(isPaying) - .accessibilityIdentifier("SpendingConfirmMore") + SpendingConfirmFees(quote: flow.quote, speed: flow.speed, isLoading: flow.quote == nil && flow.quoteError == nil) - Spacer(minLength: 0) + if let error = flow.quoteError { + quoteError(error) + } - Image("coin-stack-x") - .resizable() - .aspectRatio(contentMode: .fit) - .frame(width: Self.coinsSize, height: Self.coinsSize) - .frame(maxWidth: .infinity) + SpendingSpeedPicker( + quote: flow.quote, + speed: Bindable(flow).speed, + isLoading: flow.quote == nil && flow.quoteError == nil + ) + .disabled(isPaying) - Spacer(minLength: 0) + CustomButton(title: t("common__learn_more"), size: .small) { + navigation.navigate(.transferLearnMore) } - // The speed rows run edge to edge, so the scroll spans the screen and pads its own content. - .padding(.horizontal, 16) - .padding(.bottom, 16) - .frame(minHeight: geo.size.height) + .disabled(isPaying) + .accessibilityIdentifier("SpendingConfirmMore") } + .padding(.bottom, 16) } - .padding(.horizontal, -16) if !hideSwipeButton { SwipeButton( @@ -249,14 +228,21 @@ extension SpendingConfirm { /// The swipe reset after the fees went up while the screen was open; the toast says by how much. struct SpendingFeesIncreasedError: Error {} -/// Network fee, spending fee, what reaches spending and what leaves savings, in the confirm screen's grid. +/// Network fee, service fee, what reaches spending and what leaves savings, in the confirm screen's grid; a tap switches +/// every amount on the screen between bitcoin and the local currency. struct SpendingConfirmFees: View { let quote: SparkTransferQuote? let speed: SparkTransferSpeed var isLoading = false + /// The Spark deposit address a hardware wallet asks to confirm on the device. + var address: String? + /// 24 as the Review frame draws it; the hardware wallet's Review & Sign frame draws 10. + var rowSpacing: CGFloat = 24 + + @EnvironmentObject var currency: CurrencyViewModel var body: some View { - VStack(spacing: 16) { + VStack(alignment: .leading, spacing: rowSpacing) { HStack { FeeDisplayRow( label: t("lightning__spending_confirm__network_fee"), @@ -264,11 +250,9 @@ struct SpendingConfirmFees: View { isLoading: isLoading ) .frame(maxWidth: .infinity) - FeeDisplayRow( - label: t("lightning__spending_confirm__spending_fee"), + label: t("lightning__spending_confirm__lsp_fee"), amount: quote?.claimFeeSats(for: speed) ?? 0, - prefix: SpendingSpeedPicker.feePrefix(for: speed), isLoading: isLoading ) .frame(maxWidth: .infinity) @@ -278,12 +262,9 @@ struct SpendingConfirmFees: View { FeeDisplayRow( label: t("lightning__spending_confirm__amount"), amount: quote?.toSpendingSats(for: speed) ?? 0, - // What reaches spending is net of the estimated claim fee, so it is an estimate too. - prefix: SpendingSpeedPicker.feePrefix(for: speed), isLoading: isLoading ) .frame(maxWidth: .infinity) - FeeDisplayRow( label: t("lightning__spending_confirm__total"), amount: quote?.totalSats ?? 0, @@ -291,49 +272,67 @@ struct SpendingConfirmFees: View { ) .frame(maxWidth: .infinity) } + + if let address { + VStack(alignment: .leading, spacing: 8) { + CaptionMText(t("lightning__transfer_hw__address")) + BodySSBText(address) + .lineLimit(1) + .truncationMode(.tail) + .padding(.bottom, 8) + Divider() + } + .accessibilityElement(children: .contain) + .accessibilityIdentifier("SpendingConfirmAddress") + } + } + .contentShape(Rectangle()) + .onTapGesture { + guard Self.togglesDisplay(from: currency.primaryDisplay, hasRate: currency.hasUsableRate) else { return } + withAnimation { currency.togglePrimaryDisplay() } } .accessibilityElement(children: .contain) .accessibilityIdentifier("SpendingConfirmFees") } + + /// Without a positive rate for the local currency every amount would read zero in it, so the tap stays in bitcoin. + nonisolated static func togglesDisplay(from display: PrimaryDisplay, hasRate: Bool) -> Bool { + display == .fiat || hasRate + } } -/// Instant or Later, in the style of the send flow's fee-speed rows. +/// Fast or Normal, each with its claim fee: Fast's is its ceiling ("max"), Normal's the current rate ("est"). struct SpendingSpeedPicker: View { let quote: SparkTransferQuote? @Binding var speed: SparkTransferSpeed - - /// Both claim fees are estimates: Instant's is its ceiling, Later's the current rate. - static func feePrefix(for _: SparkTransferSpeed) -> String { - "±" - } + /// Shimmers the fees while the quote is loading; stops once it fails, so the rows don't look stuck. + var isLoading = false var body: some View { VStack(spacing: 0) { - FeeItem( - title: t("fee__instant__title"), + SpendingSpeedRow( + title: t("fee__fast__title"), subtitle: t("lightning__spending_confirm__instant_text"), iconName: TransactionSpeed.fast.iconName, - iconColor: .purpleAccent, - amount: quote?.claimFees.instantMaxSats ?? 0, - amountPrefix: Self.feePrefix(for: .instant), - isSelected: speed == .instant, - isDisabled: false, - dividerAtBottom: true + amount: quote?.claimFees.instantMaxSats, + amountCaption: t("lightning__spending_confirm__fee_max"), + isLoading: isLoading, + isSelected: speed == .instant ) { speed = .instant } .accessibilityIdentifier("SpendingConfirmInstant") - FeeItem( - title: t("lightning__spending_confirm__later"), + Divider() + + SpendingSpeedRow( + title: t("fee__normal__title"), subtitle: t("lightning__spending_confirm__later_text"), - iconName: TransactionSpeed.normal.iconName, - iconColor: .purpleAccent, - amount: quote?.claimFees.laterSats ?? 0, - amountPrefix: Self.feePrefix(for: .later), - isSelected: speed == .later, - isDisabled: false, - dividerAtBottom: true + iconName: "clock", + amount: quote?.claimFees.laterSats, + amountCaption: t("lightning__spending_confirm__fee_est"), + isLoading: isLoading, + isSelected: speed == .later ) { speed = .later } @@ -342,6 +341,56 @@ struct SpendingSpeedPicker: View { } } +private struct SpendingSpeedRow: View { + let title: String + let subtitle: String + let iconName: String + let amount: UInt64? + let amountCaption: String + let isLoading: Bool + let isSelected: Bool + let onPress: () -> Void + + @Environment(\.isEnabled) private var isEnabled + + var body: some View { + Button(action: onPress) { + HStack(spacing: 12) { + HStack(spacing: 16) { + Image(iconName) + .resizable() + .foregroundColor(isEnabled ? .purpleAccent : .gray) + .frame(width: 32, height: 32) + + VStack(alignment: .leading, spacing: 0) { + BodyMSBText(title) + BodySSBText(subtitle, textColor: .textSecondary) + } + .frame(maxWidth: .infinity, alignment: .leading) + } + + if isLoading || amount != nil { + VStack(alignment: .trailing, spacing: 0) { + MoneyText(sats: Int(amount ?? 0), size: .bodyMSB, symbol: true, fillsWidth: false, shimmer: isLoading) + BodySSBText(amountCaption, textColor: .textSecondary) + } + .fixedSize() + } + + Image("check-mark") + .resizable() + .foregroundColor(.purpleAccent) + .frame(width: 22, height: 22) + .opacity(isSelected ? 1 : 0) + } + .padding(.vertical, 16) + .contentShape(Rectangle()) + } + .buttonStyle(PlainButtonStyle()) + .accessibilityAddTraits(isSelected ? .isSelected : []) + } +} + private extension SparkTransferQuote { static let preview = SparkTransferQuote( address: "bcrt1qpreview", diff --git a/Bitkit/Views/Transfer/SpendingIntroView.swift b/Bitkit/Views/Transfer/SpendingIntroView.swift index 5b9ea5f007..d5abf6b55e 100644 --- a/Bitkit/Views/Transfer/SpendingIntroView.swift +++ b/Bitkit/Views/Transfer/SpendingIntroView.swift @@ -24,6 +24,7 @@ struct SpendingIntroView: View { }, accentColor: .purpleAccent, imagePosition: .center, + contentHorizontalPadding: 0, testID: "SpendingIntro" ) .navigationBarHidden(true) diff --git a/Bitkit/Views/Transfer/TransferIntroView.swift b/Bitkit/Views/Transfer/TransferIntroView.swift index d5d077c08c..f5c64c9042 100644 --- a/Bitkit/Views/Transfer/TransferIntroView.swift +++ b/Bitkit/Views/Transfer/TransferIntroView.swift @@ -6,7 +6,7 @@ struct TransferIntroView: View { var body: some View { OnboardingView( - navTitle: t("lightning__transfer__nav_title"), + navTitle: t("lightning__funding__nav_title"), title: t("lightning__transfer_intro__title"), description: t("lightning__transfer_intro__text"), imageName: "lightning", @@ -17,6 +17,7 @@ struct TransferIntroView: View { }, accentColor: .purpleAccent, imagePosition: .center, + contentHorizontalPadding: 0, testID: "TransferIntro" ) .navigationBarHidden(true) diff --git a/Bitkit/Views/Transfer/TransferLearnMoreView.swift b/Bitkit/Views/Transfer/TransferLearnMoreView.swift index e034902817..3dbfb47737 100644 --- a/Bitkit/Views/Transfer/TransferLearnMoreView.swift +++ b/Bitkit/Views/Transfer/TransferLearnMoreView.swift @@ -1,50 +1,39 @@ import SwiftUI struct TransferLearnMoreView: View { - @Environment(SparkTransferFlow.self) private var flow @Environment(\.dismiss) var dismiss - private let spark = SparkManager.shared - - /// The spending balance once Spark adds this transfer at the selected speed. - private var spendingAfterSats: UInt64 { - spark.balanceSats.saturatingAdd(flow.quote?.toSpendingSats(for: flow.speed) ?? flow.amountSats) - } - var body: some View { VStack(alignment: .leading, spacing: 0) { NavigationBar(title: t("lightning__transfer__nav_title")) .padding(.bottom, 16) ScrollView(showsIndicators: false) { - VStack(alignment: .leading, spacing: 0) { - DisplayText(t("lightning__spark_learn__title"), accentColor: .purpleAccent) - .padding(.bottom, 16) - - BodyMText(t("lightning__spark_learn__text")) - .padding(.bottom, 16) - - BodyMText(t("lightning__spark_trust")) + VStack(alignment: .leading, spacing: 32) { + VStack(alignment: .leading, spacing: 8) { + DisplayText(t("lightning__spark_learn__title"), accentColor: .purpleAccent) + + VStack(alignment: .leading, spacing: 0) { + BodyMBoldText(t("fee__fast__title"), textColor: .textPrimary) + BodyMText(t("lightning__spark_learn__fast_text")) + .padding(.bottom, 22) + BodyMBoldText(t("lightning__spending_confirm__later"), textColor: .textPrimary) + BodyMText(t("lightning__spark_learn__later_text")) + } + } + + VStack(alignment: .leading, spacing: 8) { + DisplayText(t("lightning__spark_learn__about_title"), accentColor: .purpleAccent) + BodyMText(t("lightning__spark_learn__about_text")) + } } .padding(.bottom, 16) } - VStack(alignment: .leading, spacing: 16) { - SubtitleText(t("lightning__spark_learn__label")) - LightningChannel( - capacity: spendingAfterSats, - localBalance: spendingAfterSats, - remoteBalance: 0, - status: .open, - showLabels: true, - showReceiving: false - ) - } - CustomButton(title: t("common__understood")) { dismiss() } - .padding(.top, 32) + .padding(.top, 16) .accessibilityIdentifier("LiquidityContinue") } .navigationBarHidden(true) @@ -56,9 +45,6 @@ struct TransferLearnMoreView: View { #Preview { NavigationStack { TransferLearnMoreView() - .environmentObject(CurrencyViewModel()) - .environmentObject(SettingsViewModel.shared) - .environment(SparkTransferFlow(amountSats: 100_000)) } .preferredColorScheme(.dark) } diff --git a/Bitkit/Views/Wallets/Send/SendUtxoSelectionView.swift b/Bitkit/Views/Wallets/Send/SendUtxoSelectionView.swift index 0975c112f8..c68babe1c5 100644 --- a/Bitkit/Views/Wallets/Send/SendUtxoSelectionView.swift +++ b/Bitkit/Views/Wallets/Send/SendUtxoSelectionView.swift @@ -113,11 +113,7 @@ struct SendUtxoSelectionView: View { } private func formatSats(_ sats: UInt64) -> String { - if let converted = currency.convert(sats: sats) { - let btcComponents = converted.bitcoinDisplay(unit: currency.displayUnit) - return btcComponents.value - } - return String(sats) + ConvertedAmount.bitcoinDisplay(sats: sats, unit: currency.displayUnit).value } } @@ -169,11 +165,7 @@ struct UtxoRowView: View { } private func formatBtcAmount(_ sats: UInt64) -> String { - if let converted = currency.convert(sats: sats) { - let btcComponents = converted.bitcoinDisplay(unit: currency.displayUnit) - return btcComponents.value - } - return String(sats) + ConvertedAmount.bitcoinDisplay(sats: sats, unit: currency.displayUnit).value } private func formatUsdAmount(_ sats: UInt64) -> String { diff --git a/Bitkit/Views/Wallets/SpendingWalletScreen.swift b/Bitkit/Views/Wallets/SpendingWalletScreen.swift index 90c5815576..7228112b6b 100644 --- a/Bitkit/Views/Wallets/SpendingWalletScreen.swift +++ b/Bitkit/Views/Wallets/SpendingWalletScreen.swift @@ -115,7 +115,7 @@ struct SpendingWalletScreen: View { var transferFromSavingsButton: some View { CustomButton( - title: t("lightning__funding__button1"), + title: t("lightning__transfer_from_savings_button"), variant: .secondary, icon: Image("arrow-up-down") .resizable() diff --git a/BitkitTests/CurrencyTests.swift b/BitkitTests/CurrencyTests.swift index 6bd8a88e85..46231a1932 100644 --- a/BitkitTests/CurrencyTests.swift +++ b/BitkitTests/CurrencyTests.swift @@ -139,6 +139,9 @@ final class CurrencyTests: XCTestCase { func testPrimaryAmountText_FallsBackToBitcoinWithoutARate() { let text = CurrencyViewModel.primaryAmountText(sats: 204, converted: nil, primaryDisplay: .fiat, displayUnit: .classic) - XCTAssertEqual(text, "₿ 204") + XCTAssertEqual(text, "₿ 0.00000204", "A classic amount without a rate read as a sat count") + let modern = CurrencyViewModel.primaryAmountText(sats: 5000, converted: nil, primaryDisplay: .bitcoin, displayUnit: .modern) + XCTAssertEqual(modern, "₿ 5 000") + XCTAssertEqual(ConvertedAmount.bitcoinDisplay(sats: 5000, unit: .classic).value, "0.00005000") } } diff --git a/BitkitTests/NumberPadTests.swift b/BitkitTests/NumberPadTests.swift index a7187f0a4e..66ebe404b4 100644 --- a/BitkitTests/NumberPadTests.swift +++ b/BitkitTests/NumberPadTests.swift @@ -34,6 +34,88 @@ final class NumberPadTests: XCTestCase { XCTAssertEqual(viewModel.displayText, "1.0") } + func testRefreshDisplayFollowsUnitSwitchedElsewhere() { + let viewModel = AmountInputViewModel() + let currency = mockCurrency(primaryDisplay: .bitcoin, displayUnit: .modern) + viewModel.updateFromSats(5000, currency: currency) + XCTAssertEqual(viewModel.displayText, "5 000") + + currency.displayUnit = .classic + viewModel.refreshDisplay(currency: currency) + + XCTAssertEqual(viewModel.amountSats, 5000) + XCTAssertEqual(viewModel.displayText, "0.00005") + } + + func testRefreshDisplayKeepsTypedTextInSameUnit() { + let viewModel = AmountInputViewModel() + let currency = mockCurrency(primaryDisplay: .bitcoin, displayUnit: .classic) + for key in ["0", ".", "0", "0", "0", "1", "0"] { + viewModel.handleNumberPadInput(key, currency: currency) + } + XCTAssertEqual(viewModel.displayText, "0.00010") + + viewModel.refreshDisplay(currency: currency) + + XCTAssertEqual(viewModel.amountSats, 10000) + XCTAssertEqual(viewModel.displayText, "0.00010") + } + + func testReturnRedrawsOnlyAfterTheTextsUnitChanged() { + typealias Unit = AmountInputViewModel.InputUnit + let fiat = Unit(display: .fiat, bitcoinUnit: .classic) + let classic = Unit(display: .bitcoin, bitcoinUnit: .classic) + // Typed fiat stays as typed, also when its rate dropped meanwhile. + XCTAssertFalse(AmountInputViewModel.redrawsOnReturn(amountSats: 5000, textUnit: fiat, currentUnit: fiat)) + // After a switch the kept sats are drawn, never the fiat digits read as bitcoin. + XCTAssertTrue(AmountInputViewModel.redrawsOnReturn(amountSats: 5000, textUnit: fiat, currentUnit: classic)) + XCTAssertTrue(AmountInputViewModel.redrawsOnReturn(amountSats: 5000, textUnit: nil, currentUnit: classic)) + XCTAssertFalse(AmountInputViewModel.redrawsOnReturn(amountSats: 0, textUnit: fiat, currentUnit: classic)) + } + + func testARejectedFiatKeyKeepsTheExactSats() throws { + let ratesKey = "cached_fx_rates" + let saved = UserDefaults.standard.data(forKey: ratesKey) + defer { UserDefaults.standard.set(saved, forKey: ratesKey) } + let rate = FxRate( + symbol: "BTCUSD", lastPrice: "100000", base: "BTC", baseName: "Bitcoin", quote: "USD", quoteName: "US Dollar", + currencySymbol: "$", currencyFlag: "🇺🇸", lastUpdatedAt: 0 + ) + try UserDefaults.standard.set(JSONEncoder().encode([rate]), forKey: ratesKey) + let currency = mockCurrency(primaryDisplay: .fiat) + let viewModel = AmountInputViewModel() + viewModel.updateFromSats(100_001, currency: currency) + XCTAssertEqual(viewModel.displayText, "100.00") + // A third decimal is refused, so the kept sats stay exact instead of the text read back as 100 000. + viewModel.handleNumberPadInput("5", currency: currency) + XCTAssertEqual(viewModel.amountSats, 100_001, "A refused key rounded the amount to its fiat text") + } + + func testDeleteClearsAPresetFiatAmountWithNoRate() { + let ratesKey = "cached_fx_rates" + let saved = UserDefaults.standard.data(forKey: ratesKey) + defer { UserDefaults.standard.set(saved, forKey: ratesKey) } + UserDefaults.standard.removeObject(forKey: ratesKey) + let currency = mockCurrency(primaryDisplay: .fiat) + let viewModel = AmountInputViewModel() + viewModel.updateFromSats(50000, currency: currency) + XCTAssertEqual(viewModel.amountSats, 50000) + XCTAssertEqual(viewModel.displayText, "", "The fiat field had text to delete, so this case was not staged") + viewModel.handleNumberPadInput("delete", currency: currency) + XCTAssertEqual(viewModel.amountSats, 0, "Delete kept a preset amount the fiat field could not show") + } + + func testARedrawnAmountKeepsASCIIDigitsForTheNumberPad() { + XCTAssertEqual(AmountInputViewModel.asciiDigits("٥٠٠٠"), "5000", "Arabic-Indic digits reached the raw input") + XCTAssertEqual(AmountInputViewModel.asciiDigits("۱۲.۵۰"), "12.50") + XCTAssertEqual(AmountInputViewModel.asciiDigits("0.00012"), "0.00012") + let currency = mockCurrency(primaryDisplay: .bitcoin) + let viewModel = AmountInputViewModel() + viewModel.updateFromSats(5000, currency: currency) + viewModel.handleNumberPadInput("0", currency: currency) + XCTAssertEqual(viewModel.amountSats, 50000, "The next key after a redraw did not extend the amount") + } + // MARK: - Modern Bitcoin Tests func testModernBitcoinInput() { diff --git a/BitkitTests/SparkTransferFlowTests.swift b/BitkitTests/SparkTransferFlowTests.swift index ec112cda54..dfa68e491d 100644 --- a/BitkitTests/SparkTransferFlowTests.swift +++ b/BitkitTests/SparkTransferFlowTests.swift @@ -527,4 +527,28 @@ final class SparkTransferFlowTests: XCTestCase { claimFees: SparkClaimFees(instantMaxSats: 1093, laterSats: 198) ) } + + func testFeeGridTapStaysInBitcoinWithoutARate() { + XCTAssertFalse(SpendingConfirmFees.togglesDisplay(from: .bitcoin, hasRate: false)) + XCTAssertTrue(SpendingConfirmFees.togglesDisplay(from: .bitcoin, hasRate: true)) + XCTAssertTrue(SpendingConfirmFees.togglesDisplay(from: .fiat, hasRate: false)) + } + + func testFiatConversionRejectsUnusableRates() { + XCTAssertNil(CurrencyViewModel.sats(fiatAmount: 10, rate: 0)) + XCTAssertNil(CurrencyViewModel.sats(fiatAmount: 10, rate: -1)) + XCTAssertNil(CurrencyViewModel.sats(fiatAmount: -10, rate: 100_000)) + XCTAssertNil(CurrencyViewModel.sats(fiatAmount: .greatestFiniteMagnitude, rate: 1)) + XCTAssertEqual(CurrencyViewModel.sats(fiatAmount: 50, rate: 100_000), 50000) + } + + func testPrimaryAmountsStayInBitcoinWithoutAUsableRate() { + XCTAssertEqual(MoneyText.primaryUnit(.fiat, hasUsableRate: false), .bitcoin) + XCTAssertEqual(MoneyText.primaryUnit(.fiat, hasUsableRate: true), .fiat) + XCTAssertEqual(MoneyText.primaryUnit(.bitcoin, hasUsableRate: false), .bitcoin) + // The paired line shows the other unit, never bitcoin twice. + XCTAssertEqual(MoneyText.secondaryUnit(.fiat, hasUsableRate: false), .fiat) + XCTAssertEqual(MoneyText.secondaryUnit(.fiat, hasUsableRate: true), .bitcoin) + XCTAssertEqual(MoneyText.secondaryUnit(.bitcoin, hasUsableRate: false), .fiat) + } } diff --git a/changelog.d/next/1357.changed.md b/changelog.d/next/1357.changed.md new file mode 100644 index 0000000000..a928367dcc --- /dev/null +++ b/changelog.d/next/1357.changed.md @@ -0,0 +1 @@ +Updated the transfer to spending screens to the new design, with clearer fees, Fast and Normal speeds and a Learn More on the spending balance. diff --git a/journeys/amount-limits/external-amount-over-max.xml b/journeys/amount-limits/external-amount-over-max.xml index aa3b62239b..a2ba02f93e 100644 --- a/journeys/amount-limits/external-amount-over-max.xml +++ b/journeys/amount-limits/external-amount-over-max.xml @@ -14,7 +14,7 @@ Open Settings, then the "Advanced" tab, then "Lightning Connections" Tap "Get Started" to open the funding options screen - Tap "Manual Setup" (id "FundManual") + Tap "Manual setup" (id "FundManual") Type the node id into the node id field (id "NodeIdInput") Type the host into the host field (id "HostInput") Type the port into the port field (id "PortInput") diff --git a/journeys/hardware-wallet/README.md b/journeys/hardware-wallet/README.md index 343896f07a..db135cf620 100644 --- a/journeys/hardware-wallet/README.md +++ b/journeys/hardware-wallet/README.md @@ -134,7 +134,7 @@ Walked as far as a simulator allows, against a wallet with two Trezor identities - Transfer: `HardwareTransferToSpending`, `HardwareTransferAmount`, `HardwareTransferAmountAvailable`/`Quarter`/`Max`/`Continue`/`Retry`, over-max toast `HardwareTransferAmountExceededToast`, `HardwareTransferSign`, - `HardwareTransferSignLearnMore`, speed rows `SpendingConfirmInstant`/`SpendingConfirmLater`, + Spark deposit address `SpendingConfirmAddress`, speed rows `SpendingConfirmInstant`/`SpendingConfirmLater`, `HardwareTransferOpenTrezorConnect`, `HardwareTransferSigned`, `HwTransferPassphraseSheet`/`Input`/`Continue`/`Cancel`. - Activity: `ActivityShowAll` (home only). Rows use **two different schemes** — `ActivityShort-` diff --git a/journeys/hardware-wallet/transfer-to-spending.xml b/journeys/hardware-wallet/transfer-to-spending.xml index 0229ba78f3..21684471e8 100644 --- a/journeys/hardware-wallet/transfer-to-spending.xml +++ b/journeys/hardware-wallet/transfer-to-spending.xml @@ -17,7 +17,7 @@ Verify the transfer amount screen opens (id "HardwareTransferAmount"), titled "TRANSFER TO SPENDING", showing an AVAILABLE row (id "HardwareTransferAmountAvailable"), the 25% and MAX quick buttons, and a number pad Tap the "25%" quick button (id "HardwareTransferAmountQuarter") to set a valid amount below the available limit Tap "Continue" (id "HardwareTransferAmountContinue") and wait for the fee estimate - Verify the sign screen opens (id "HardwareTransferSign"), titled "SIGN WITH YOUR DEVICE", showing the NETWORK FEES, SPENDING FEE, TO SPENDING and TOTAL cells, the Instant and Later rows with Instant selected, the Learn More button, and the Trezor illustration + Verify the sign screen opens (id "HardwareTransferSign"), titled "SIGN WITH YOUR DEVICE", showing the NETWORK FEES, SERVICE FEES, TO SPENDING and TOTAL cells, the deposit address under "ADDRESS (CONFIRM ON DEVICE)" (id "SpendingConfirmAddress"), the Fast and Normal rows with Fast selected, and the Trezor illustration Tap "Open Trezor Connect" (id "HardwareTransferOpenTrezorConnect"). If fees rose since the screen priced them, verify a "Fees changed" toast and refreshed fee cells, and tap "Open Trezor Connect" again; otherwise signing starts immediately Approve the Recipient, Amount, Locktime, and Summary prompts on the Bridge emulator in order Verify the transaction signed screen appears (id "HardwareTransferSigned"), titled "TRANSACTION SIGNED", showing the same fee cells and the checkmark illustration diff --git a/journeys/transfer/spark-transfer-status.xml b/journeys/transfer/spark-transfer-status.xml index 8dc7c66329..259739f6d8 100644 --- a/journeys/transfer/spark-transfer-status.xml +++ b/journeys/transfer/spark-transfer-status.xml @@ -3,10 +3,10 @@ Verifies the transfer status screen after a transfer to spending through Spark, against the Figma section "Funds In Transfer (spark)". Every in-progress frame shows the nav title "Transfer Funds" with the menu and no back button, three steps, the active step's label under them and one bottom-pinned button; headlines show in - capitals. A fast (Instant) transfer moves through "Processing Payment" (step 1, Spark has not listed the + capitals. A Fast transfer moves through "Processing Payment" (step 1, Spark has not listed the deposit), "Payment Successful" (step 1 done, Spark lists it) and "Adding To Spending Balance" (steps 1 and 2 done), all with the transfer arrows in dashed rings, and ends on "Transfer Successful" with the check and - "Awesome!". A normal speed (Later) transfer shows the same steps with "This should take about 30 minutes.". + "Awesome!". A Normal transfer shows the same steps with "This should take about 30 minutes.". Whether Spark reprices the fast transfer or offers none is the provider's call, so those two frames (coins in place of the arrows) are conditional steps here; SparkFundingRecoveryTests cover every frame. On Spark's regtest a fast @@ -19,13 +19,13 @@ Tap the Savings balance card (id "ActivitySavings"), tap "Transfer To Spending" (id "TransferToSpending"), tap "25%" (id "SpendingAmountQuarter") and tap "Continue" (id "SpendingAmountContinue") - Verify "Instant" (id "SpendingConfirmInstant") is selected and swipe to confirm + Verify "Fast" (id "SpendingConfirmInstant") is selected and swipe to confirm Verify the status screen (id "LightningSettingUp") shows "Transfer Funds", the headline "Funds in transfer", the text (id "SettingUpText") "Please wait, your funds transfer is in progress. This should take a few minutes.", step 1 active with "Processing Payment", and "Continue Using Bitkit" (id "TransferSuccess-button") Wait up to 3 minutes for "Payment Successful" with step 1 checked, then, if it shows before the transfer ends, "Adding To Spending Balance" with steps 1 and 2 checked; each keeps the same headline, text and button, and the label never goes back to an earlier step If the fast transfer fee rose, verify the headline "Fast transfer fee changed", the text "The fast transfer fee is now ₿ …. Approve to access your funds quickly, or wait ±30 min.", the coins, the label "Fast Transfer Fee Changed" and "Wait" (id "SparkDepositWait") and "Approve" (id "SparkDepositPay") side by side; tap "Wait" and verify the headline "Funds in transfer", the text ending "about 30 minutes." and the label "Using Normal Transfer Speed" on step 3 If the fast transfer is unavailable, verify the headline "Fast transfer unavailable", the text ending "about 30 minutes.", the coins and the label "Using Normal Transfer Speed" Wait for "Transfer Successful" (id "TransferSuccess"), up to 3 minutes for a fast transfer; after Wait or an unavailable fast transfer, up to 10 minutes for the deposit's 3 confirmations (Spark's regtest mines about once a minute): the headline "Funds moved to spending", "Your funds have been transferred and your spending balance is ready to use.", the check and "Awesome!" (id "TransferSuccess-button") Tap "Awesome!" and verify the wallet home screen shows the higher Spending balance - Start another transfer the same way, tap "Later" (id "SpendingConfirmLater"), swipe to confirm and verify the text ends "about 30 minutes." with step 1 active and "Processing Payment", then "Payment Successful" once Spark lists the deposit + Start another transfer the same way, tap "Normal" (id "SpendingConfirmLater"), swipe to confirm and verify the text ends "about 30 minutes." with step 1 active and "Processing Payment", then "Payment Successful" once Spark lists the deposit diff --git a/journeys/transfer/spark-transfer-to-spending.xml b/journeys/transfer/spark-transfer-to-spending.xml index 8e134e2df3..502c16c630 100644 --- a/journeys/transfer/spark-transfer-to-spending.xml +++ b/journeys/transfer/spark-transfer-to-spending.xml @@ -1,14 +1,14 @@ - Verifies the transfer to spending flow on Spark. With Spark ready, Funding leads with "Transfer From Savings" - (testTag "FundTransfer") and "Use Other Wallet" (testTag "FundReceive") above "Manual Setup" (testTag - "FundManual") and an enabled "Transfer from HW wallet" (testTag "FundHardware"), which opens a paired hardware - wallet's transfer to spending, a funded one first, or the connect sheet when none is paired; and the Savings and - Spending transfer buttons open the spending intro, then the amount screen (testTag "SpendingAmount"), - instead of the Transfer Unavailable sheet. The confirm screen shows the network fee, the spending fee, what reaches - spending and the total, and a choice between Instant and Later. What happens after - the swipe depends on the deposit Spark sees and the provider's quote; the setting-up states are covered by the - previews and unit tests, so this journey stops before the swipe. + Verifies the transfer to spending flow on Spark. With Spark ready, Funding lists "Transfer from Savings" (testTag + "FundTransfer"), an enabled "Transfer from HW wallet" (testTag "FundHardware"), which opens a paired hardware + wallet's transfer to spending, a funded one first, or the connect sheet when none is paired, "Use other wallet" + (testTag "FundReceive") and "Manual setup" (testTag "FundManual"), in that order; and the Savings and Spending + transfer buttons open the spending intro, then the amount screen (testTag "SpendingAmount"), instead of the + Transfer Unavailable sheet. The confirm screen shows the network fee, the service fee, what reaches spending and + the total, and a choice between Fast and Normal. What happens after the swipe depends on the deposit Spark sees and + the provider's quote; the setting-up states are covered by the previews and unit tests, so this journey stops + before the swipe. Precondition: a build whose Spark reads Bitkit's chain (mainnet with a Breez key, or a regtest build launched with SPARK_CHAIN_SERVICE_URL set to the regtest's Esplora URL; Spark's default regtest is its own chain, so without it @@ -19,14 +19,15 @@ Tap the Savings balance card (testTag "ActivitySavings"), tap "Transfer To Spending" (testTag "TransferToSpending") and verify the spending intro (testTag "SpendingIntro") opens, not the Transfer Unavailable sheet Tap "Get Started" (testTag "SpendingIntro-button") and verify the amount screen (testTag "SpendingAmount") opens with the available amount Tap "25%" (testTag "SpendingAmountQuarter") and verify the amount is about a quarter of the Savings balance; tap "Max" (testTag "SpendingAmountMax") and verify the amount equals the available amount - Tap "Continue" (testTag "SpendingAmountContinue") and verify the confirm screen shows "Network fees", "Spending fee", "To spending" and "Total", with "Instant" (testTag "SpendingConfirmInstant") selected and "Later" (testTag "SpendingConfirmLater") below it - Verify "Spending fee" reads "±" an amount equal to the Instant row's fee, and "To spending" equals the amount less that fee - Tap "Later" and verify "Spending fee" shows "±" the Later row's fee and "To spending" grows by the difference, while "Network fees" and "Total" stay the same - Tap "Learn More" (testTag "SpendingConfirmMore"), verify the screen explains Instant and Later and shows a spending-only balance bar, then tap "Understood" (testTag "LiquidityContinue") + Tap "Continue" (testTag "SpendingAmountContinue") and verify the confirm screen shows "Network fees", "Service fees", "To spending" and "Total", with "Fast" (testTag "SpendingConfirmInstant") selected, its fee marked "max", and "Normal" (testTag "SpendingConfirmLater") below it, its fee marked "est" + Verify "Service fees" equals the Fast row's fee, and "To spending" equals the amount less that fee + Tap "Normal" and verify "Service fees" shows the Normal row's fee and "To spending" grows by the difference, while "Network fees" and "Total" stay the same + Tap the fees (testTag "SpendingConfirmFees") and verify every amount on the screen switches to the local currency; tap them again and verify they switch back to bitcoin + Tap "Learn More" (testTag "SpendingConfirmMore"), verify the screen explains the Fast and Later transfer speeds and the spending balance, then tap "Understood" (testTag "LiquidityContinue") Go back to the wallet home, tap the Spending balance card (testTag "ActivitySpending"), tap "Transfer From Savings" (testTag "TransferFromSavings") and verify the amount screen opens without the intro Go back to the wallet home, open Settings › Advanced › Lightning Connections and tap add connection (testTag "add_connection_button") - Verify "Transfer From Savings" (testTag "FundTransfer") and "Use Other Wallet" (testTag "FundReceive") are enabled above "Manual Setup" (testTag "FundManual"), and "Transfer from HW wallet" (testTag "FundHardware") is enabled below it + Verify "Transfer from Savings" (testTag "FundTransfer"), "Transfer from HW wallet" (testTag "FundHardware"), "Use other wallet" (testTag "FundReceive") and "Manual setup" (testTag "FundManual") are listed in that order and enabled With no hardware wallet paired, tap "Transfer from HW wallet" and verify the connect hardware wallet sheet opens; close it - Tap "Transfer From Savings" and verify the amount screen (testTag "SpendingAmount") opens + Tap "Transfer from Savings" and verify the amount screen (testTag "SpendingAmount") opens diff --git a/journeys/transfer/transfer-banner-opens-progress.xml b/journeys/transfer/transfer-banner-opens-progress.xml index 808c182852..2c515bd7dd 100644 --- a/journeys/transfer/transfer-banner-opens-progress.xml +++ b/journeys/transfer/transfer-banner-opens-progress.xml @@ -11,7 +11,7 @@ Tap the Savings balance card (id "ActivitySavings"), then "Transfer To Spending" (id "TransferToSpending"); tap "Get Started" (id "SpendingIntro-button") if the intro appears Tap "25%" (id "SpendingAmountQuarter") and "Continue" (id "SpendingAmountContinue") - Tap "Later" (id "SpendingConfirmLater") and swipe the "Swipe To Transfer" handle (id "GRAB") fully to the right + Tap "Normal" (id "SpendingConfirmLater") and swipe the "Swipe To Transfer" handle (id "GRAB") fully to the right Verify the "Funds in transfer" screen (id "LightningSettingUp") opens, then tap "Continue Using Bitkit" (id "TransferSuccess-button") Verify Home shows the "TRANSFER IN PROGRESS" banner (id "ActivityBanner") Tap the banner and verify "Funds in transfer" (id "LightningSettingUp") opens at its current step: "Processing Payment", or "Payment Successful" once Spark lists the deposit, with "This should take about 30 minutes." (id "SettingUpText") diff --git a/journeys/transfer/transfer-unavailable-sheet.xml b/journeys/transfer/transfer-unavailable-sheet.xml index 0ca412412e..cb61622e0c 100644 --- a/journeys/transfer/transfer-unavailable-sheet.xml +++ b/journeys/transfer/transfer-unavailable-sheet.xml @@ -20,7 +20,7 @@ Tap "Continue" and verify the sheet closes and the "MANUAL SETUP" screen shows the node id (testTag "NodeIdInput"), host (testTag "HostInput") and port (testTag "PortInput") fields Go back to the wallet home, tap the Spending balance card (testTag "ActivitySpending"), tap the transfer button (testTag "TransferFromSavings") and verify the same sheet opens; close it Open Settings › Advanced › Lightning Connections, tap add connection (testTag "add_connection_button") and verify the screen text reads "Automatic transfers to your spending balance are no longer available. Use your own node, or set up a connection with another provider." - Verify "Manual Setup" (testTag "FundManual") is the first option and enabled, and "Transfer From Savings" (testTag "FundTransfer"), "Transfer from HW wallet" (testTag "FundHardware") and "Use Other Wallet" (testTag "FundReceive") below it are disabled; tap "Transfer From Savings" and verify nothing opens + Verify "Manual setup" (testTag "FundManual") is the first option and enabled, and "Transfer from Savings" (testTag "FundTransfer"), "Transfer from HW wallet" (testTag "FundHardware") and "Use other wallet" (testTag "FundReceive") below it are disabled; tap "Transfer from Savings" and verify nothing opens Tap "Learn More" (testTag "FundLearnMore") at the bottom and verify the browser opens blog.bitkit.to, then return to Bitkit and go back to the wallet home Tap "Receive" (testTag "Receive"), select the Spending tab (testTag "Tab-spending") and tap "Receive Lightning funds" Verify the screen titled "Transfer Unavailable" shows "MANUAL SETUP REQUIRED" and "Automatic transfers to your spending balance are no longer available. Use your own node, or set up a connection with another provider.", with a back button