Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Crowdin updates #590

Merged
merged 7 commits into from
Jun 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
242 changes: 122 additions & 120 deletions Sources/Core/Resources/Generated/L10n.generated.swift

Large diffs are not rendered by default.

97 changes: 49 additions & 48 deletions Sources/Core/Resources/Resources/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,6 @@
"personas_subtitle" = "Here are all of your current Personas.";
"personas_whatIsPersona" = "What is a Persona?";
"personas_createNewPersona" = "Create a New Persona";
"backup_disabledText" = "Back up is turned off";
"backup_lastBackedUp" = "Last Backed up: %@";
"backup_noLastBackUp" = "Not Backed up yet";
"backup_openSystemBackupSettings" = "Open System Backup Settings";
"backup_backupWalletData_title" = "Backup Wallet Data";
"backup_backupWalletData_message" = "Warning: If disabled you might lose access to your Accounts and Personas.";
"importLegacyWallet_title" = "Legacy Wallet Import";
"importLegacyWallet_scanQRCodeInstructions" = "Use the export feature of your Radix Olympia Desktop Wallet to choose the accounts to export and generate an export QR code.";
"importLegacyWallet_scannedLabel" = "Scanned: %d/%d";
Expand Down Expand Up @@ -474,17 +468,7 @@
"transactionSigning_preparingTransaction" = "Preparing transaction…";
"transactionSigning_signTransactionButtonTitle" = "Approve Transaction";
"transactionSigning_signingAndSubmittingTransaction" = "Submitting transaction…";
"addLedger_alreadyAddedAlert_title" = "Ledger Already Added";
"addLedger_alreadyAddedAlert_message" = "You have already added this Ledger as: %@";
"addLedger_addDevice_title" = "Add Ledger Device";
"addLedger_addDevice_body1" = "Let’s set up a Ledger hardware wallet device. You will be able to use it to create new Ledger-secured Accounts, or import Ledger-secured Accounts from the Radix Olympia Desktop Wallet.";
"addLedger_addDevice_body2" = "Connect your Ledger to a computer running a linked Radix Connector browser extension, and make sure the Radix Babylon app is running on the Ledger device.";
"addLedger_addDevice_continue" = "Continue";
"addLedger_nameLedger_title" = "Name Your Ledger";
"addLedger_nameLedger_body" = "Enter a label for this Ledger device";
"addLedger_nameLedger_detectedType" = "Detected type: %@";
"addLedger_nameLedger_namePlaceholder" = "Green Ledger Nano S+";
"addLedger_nameLedger_continueButtonTitle" = "Save and Continue";
"importMnemonic_navigationTitle" = "Import Seed Phrase";
"importMnemonic_wordHeading" = "word #%d";
"importMnemonic_passphrase" = "Passphrase";
"importMnemonic_passphrasePlaceholder" = "Passphrase";
Expand All @@ -506,22 +490,6 @@
"importMnemonic_tempAndroid_heading" = "Recover Mnemonic";
"misc_remoteThumbnails_vectorImageFailure" = "Can\'t displays image of vector type";
"misc_remoteThumbnails_loadingFailure" = "Can\'t load image";
"generalSettings_title" = "App Settings";
"generalSettings_subtitle" = "Customize your Radix Wallet";
"generalSettings_developerMode_title" = "Developer Mode";
"generalSettings_developerMode_subtitle" = "Warning: Disables website validity checks";
"generalSettings_profileSync_title" = "Sync Wallet Data to iCloud";
"generalSettings_profileSync_subtitle" = "Warning: If disabled you might lose access to your Accounts and Personas.";
"generalSettings_verboseLedgerMode_title" = "Verbose Ledger transaction signing";
"generalSettings_verboseLedgerMode_subtitle" = "When signing with your Ledger hardware wallet, should all instructions be displayed?";
"generalSettings_confirmCloudSyncDisableAlert_title" = "Disabling iCloud sync will delete the iCloud backup data, are you sure you want to disable iCloud sync?";
"generalSettings_resetWallet_title" = "Reset Wallet";
"generalSettings_resetWallet_subtitle" = "Clear all data in this Wallet";
"generalSettings_resetWallet_buttonTitle" = "Reset";
"generalSettings_resetWalletDialog_title" = "Reset Wallet?";
"generalSettings_resetWalletDialog_resetButtonTitle" = "Reset Wallet";
"generalSettings_resetWalletDialog_resetAndDeleteBackupButtonTitle" = "Reset and Delete iCloud Backup";
"generalSettings_resetWalletDialog_message" = "WARNING. This will clear all contents of your Wallet. If you have no backup, you will lose access to your Accounts and Personas permanently.";
"assetTransfer_transactionMessage" = "Message";
"assetTransfer_qrScanInstructions" = "Scan a QR code of a Radix Account address from another wallet or an exchange.";
"assetTransfer_sendTransferButton" = "Continue";
Expand All @@ -546,20 +514,6 @@
"assetTransfer_fungibleResource_balance" = "Balance: %@";
"assetTransfer_receivingAccount_chooseAccountButton" = "Choose Account";
"assetTransfer_receivingAccount_addAssetsButton" = "Add Assets";
"restoreFromBackup_navigationTitle" = "Wallet Data Backup";
"restoreFromBackup_importBackupWallet" = "Import From Backup";
"restoreFromBackup_cloudBackupWallet" = "Available backups:";
"restoreFromBackup_useICloudBackup" = "Use iCloud Backup Data";
"restoreFromBackup_noCloudBackup" = "No backups found in iCloud";
"restoreFromBackup_thisDevice" = "This Device";
"restoreFromBackup_creatingDevice" = "Backup created by: %@";
"restoreFromBackup_creationDateLabel" = "Creation date: %@";
"restoreFromBackup_lastUsedOnDeviceLabel" = "Last used on device: %@";
"restoreFromBackup_lastModifedDateLabel" = "Last modified date: %@";
"restoreFromBackup_numberOfNetworksLabel" = "Number of networks: %d";
"restoreFromBackup_totalAccountsNumberLabel" = "Number of Accounts: %d";
"restoreFromBackup_totalPersonasNumberLabel" = "Number of Personas: %d";
"restoreFromBackup_incompatibleWalletDataLabel" = "Incompatible Wallet data";
"importOlympiaLedgerAccounts_unverifiedAccountsLeft" = "#%d accounts left to import";
"importOlympiaLedgerAccounts_importLedgersAndAccounts" = "Imported ledgers and accounts";
"importOlympiaLedgerAccounts_accountCount" = "%@ - #%d accounts";
Expand Down Expand Up @@ -609,4 +563,51 @@ Install the Connector extension, open it to see the linking QR code, and tap con
"seedPhrases_warning" = "You are responsible for the security of your Seed Phrase";
"seedPhrases_seedPhrase_reveal" = "Reveal Seed Phrase";
"seedPhrases_seedPhrase_oneConnectedAccount" = "Connected to 1 account";
"seedPhrases_seedPhrase_multipleConnectedAccounts" = "Connected to %d accounts";
"seedPhrases_seedPhrase_multipleConnectedAccounts" = "Connected to %d accounts";
"appSettings_title" = "App Settings";
"appSettings_subtitle" = "Customize your Radix Wallet";
"appSettings_developerMode_title" = "Developer Mode";
"appSettings_developerMode_subtitle" = "Warning: Disables website validity checks";
"appSettings_verboseLedgerMode_title" = "Verbose Ledger transaction signing";
"appSettings_verboseLedgerMode_subtitle" = "When signing with your Ledger hardware wallet, should all instructions be displayed?";
"appSettings_confirmCloudSyncDisableAlert_title" = "Disabling iCloud sync will delete the iCloud backup data, are you sure you want to disable iCloud sync?";
"appSettings_resetWallet_title" = "Reset Wallet";
"appSettings_resetWallet_subtitle" = "Clear all data in this Wallet";
"appSettings_resetWallet_buttonTitle" = "Reset";
"appSettings_resetWalletDialog_title" = "Reset Wallet?";
"appSettings_resetWalletDialog_resetButtonTitle" = "Reset Wallet";
"appSettings_resetWalletDialog_resetAndDeleteBackupButtonTitle" = "Reset and Delete iCloud Backup";
"appSettings_resetWalletDialog_message" = "WARNING. This will clear all contents of your Wallet. If you have no backup, you will lose access to your Accounts and Personas permanently.";
"addLedgerDevice_alreadyAddedAlert_title" = "Ledger Already Added";
"addLedgerDevice_alreadyAddedAlert_message" = "You have already added this Ledger as: %@";
"addLedgerDevice_addDevice_title" = "Add Ledger Device";
"addLedgerDevice_addDevice_body1" = "Let’s set up a Ledger hardware wallet device. You will be able to use it to create new Ledger-secured Accounts, or import Ledger-secured Accounts from the Radix Olympia Desktop Wallet.";
"addLedgerDevice_addDevice_body2" = "Connect your Ledger to a computer running a linked Radix Connector browser extension, and make sure the Radix Babylon app is running on the Ledger device.";
"addLedgerDevice_addDevice_continue" = "Continue";
"addLedgerDevice_nameLedger_title" = "Name Your Ledger";
"addLedgerDevice_nameLedger_body" = "Enter a label for this Ledger device";
"addLedgerDevice_nameLedger_detectedType" = "Detected type: %@";
"addLedgerDevice_nameLedger_namePlaceholder" = "Green Ledger Nano S+";
"addLedgerDevice_nameLedger_continueButtonTitle" = "Save and Continue";
"androidProfileBackup_disabledText" = "Back up is turned off";
"androidProfileBackup_lastBackedUp" = "Last Backed up: %@";
"androidProfileBackup_noLastBackUp" = "Not Backed up yet";
"androidProfileBackup_openSystemBackupSettings" = "Open System Backup Settings";
"androidProfileBackup_backupWalletData_title" = "Backup Wallet Data";
"androidProfileBackup_backupWalletData_message" = "Warning: If disabled you might lose access to your Accounts and Personas.";
"iOSProfileBackup_profileSync_title" = "Sync Wallet Data to iCloud";
"iOSProfileBackup_profileSync_subtitle" = "Warning: If disabled you might lose access to your Accounts and Personas.";
"iOSProfileBackup_navigationTitle" = "Wallet Data Backup";
"iOSProfileBackup_importBackupWallet" = "Import From Backup";
"iOSProfileBackup_cloudBackupWallet" = "Available backups:";
"iOSProfileBackup_useICloudBackup" = "Use iCloud Backup Data";
"iOSProfileBackup_noCloudBackup" = "No backups found in iCloud";
"iOSProfileBackup_thisDevice" = "This Device";
"iOSProfileBackup_creatingDevice" = "Backup created by: %@";
"iOSProfileBackup_creationDateLabel" = "Creation date: %@";
"iOSProfileBackup_lastUsedOnDeviceLabel" = "Last used on device: %@";
"iOSProfileBackup_lastModifedDateLabel" = "Last modified date: %@";
"iOSProfileBackup_numberOfNetworksLabel" = "Number of networks: %d";
"iOSProfileBackup_totalAccountsNumberLabel" = "Number of Accounts: %d";
"iOSProfileBackup_totalPersonasNumberLabel" = "Number of Personas: %d";
"iOSProfileBackup_incompatibleWalletDataLabel" = "Incompatible Wallet data";
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,23 @@ extension AddLedgerFactorSource {
NavigationStack {
WithViewStore(store, observe: \.viewState, send: { .view($0) }) { viewStore in
VStack {
Text(L10n.AddLedger.AddDevice.title)
Text(L10n.AddLedgerDevice.AddDevice.title)
.textStyle(.sheetTitle)
.padding(.top, .small1)
.padding(.bottom, .large1)

Text(L10n.AddLedger.AddDevice.body1)
Text(L10n.AddLedgerDevice.AddDevice.body1)
.textStyle(.body1Regular)
.padding(.bottom, .large1)
.padding(.horizontal, .medium3)

Text(L10n.AddLedger.AddDevice.body2)
Text(L10n.AddLedgerDevice.AddDevice.body2)
.textStyle(.body1Regular)
.padding(.horizontal, .medium3)

Spacer()

Button(L10n.AddLedger.AddDevice.continue) {
Button(L10n.AddLedgerDevice.AddDevice.continue) {
viewStore.send(.sendAddLedgerRequestButtonTapped)
}
.controlState(viewStore.continueButtonControlState)
Expand Down Expand Up @@ -123,18 +123,18 @@ extension NameLedgerFactorSource {
NavigationStack {
WithViewStore(store, observe: \.viewState, send: { .view($0) }) { viewStore in
VStack {
Text(L10n.AddLedger.NameLedger.title)
Text(L10n.AddLedgerDevice.NameLedger.title)
.textStyle(.sheetTitle)
.padding(.top, .small1)
.padding(.bottom, .medium3)

Text(L10n.AddLedger.NameLedger.body)
Text(L10n.AddLedgerDevice.NameLedger.body)
.textStyle(.body1Regular)
.padding(.bottom, .medium1)
.multilineTextAlignment(.center)

AppTextField(
placeholder: L10n.AddLedger.NameLedger.namePlaceholder,
placeholder: L10n.AddLedgerDevice.NameLedger.namePlaceholder,
text: Binding(
get: { viewStore.ledgerName },
set: { viewStore.send(.ledgerNameChanged($0)) }
Expand All @@ -146,7 +146,7 @@ extension NameLedgerFactorSource {
.padding(.horizontal, .medium1)
.foregroundColor(.app.gray1)
.footer {
Button(L10n.AddLedger.NameLedger.continueButtonTitle) {
Button(L10n.AddLedgerDevice.NameLedger.continueButtonTitle) {
viewStore.send(.confirmNameButtonTapped)
}
.controlState(viewStore.confirmButtonControlState)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ public struct AddLedgerFactorSource: Sendable, FeatureReducer {
extension AlertState<Never> {
static func ledgerAlreadyExists(_ ledger: LedgerHardwareWalletFactorSource) -> AlertState {
AlertState {
TextState(L10n.AddLedger.AlreadyAddedAlert.title)
TextState(L10n.AddLedgerDevice.AlreadyAddedAlert.title)
} message: {
TextState(L10n.AddLedger.AlreadyAddedAlert.message(ledger.hint.name))
TextState(L10n.AddLedgerDevice.AlreadyAddedAlert.message(ledger.hint.name))
}
}
}
Expand Down
16 changes: 8 additions & 8 deletions Sources/Features/GeneralSettings/GeneralSettings+View.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ extension GeneralSettings {
WithViewStore(store, observe: \.viewState, send: { .view($0) }) { viewStore in
ScrollView {
coreView(with: viewStore)
.navigationTitle(L10n.GeneralSettings.title)
.navigationTitle(L10n.AppSettings.title)
.onAppear { viewStore.send(.appeared) }
}
}
Expand Down Expand Up @@ -67,8 +67,8 @@ extension GeneralSettings {

private func isUsingVerboseLedgerMode(with viewStore: ViewStoreOf<GeneralSettings>) -> some SwiftUI.View {
ToggleView(
title: L10n.GeneralSettings.VerboseLedgerMode.title,
subtitle: L10n.GeneralSettings.VerboseLedgerMode.subtitle,
title: L10n.AppSettings.VerboseLedgerMode.title,
subtitle: L10n.AppSettings.VerboseLedgerMode.subtitle,
isOn: viewStore.binding(
get: \.useVerboseLedgerDisplayMode,
send: { .useVerboseModeToggled($0) }
Expand All @@ -78,8 +78,8 @@ extension GeneralSettings {

private func isDeveloperModeEnabled(with viewStore: ViewStoreOf<GeneralSettings>) -> some SwiftUI.View {
ToggleView(
title: L10n.GeneralSettings.DeveloperMode.title,
subtitle: L10n.GeneralSettings.DeveloperMode.subtitle,
title: L10n.AppSettings.DeveloperMode.title,
subtitle: L10n.AppSettings.DeveloperMode.subtitle,
isOn: viewStore.binding(
get: \.isDeveloperModeEnabled,
send: { .developerModeToggled(.init($0)) }
Expand Down Expand Up @@ -120,19 +120,19 @@ extension GeneralSettings {
private func resetWallet(with viewStore: ViewStoreOf<GeneralSettings>) -> some SwiftUI.View {
HStack {
VStack(alignment: .leading, spacing: 0) {
Text(L10n.GeneralSettings.ResetWallet.title)
Text(L10n.AppSettings.ResetWallet.title)
.foregroundColor(.app.gray1)
.textStyle(.body1HighImportance)

Text(L10n.GeneralSettings.ResetWallet.subtitle)
Text(L10n.AppSettings.ResetWallet.subtitle)
.foregroundColor(.app.gray2)
.textStyle(.body2Regular)
.fixedSize()
}

Spacer(minLength: 0)

Button(L10n.GeneralSettings.ResetWallet.buttonTitle) {
Button(L10n.AppSettings.ResetWallet.buttonTitle) {
viewStore.send(.deleteProfileAndFactorSourcesButtonTapped)
}
.buttonStyle(.secondaryRectangular(isDestructive: true))
Expand Down
8 changes: 4 additions & 4 deletions Sources/Features/GeneralSettings/GeneralSettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -169,18 +169,18 @@ public struct GeneralSettings: Sendable, FeatureReducer {

extension ConfirmationDialogState<GeneralSettings.Destinations.Action.DeleteProfileConfirmationDialogAction> {
static let deleteProfileConfirmationDialog = ConfirmationDialogState {
TextState(L10n.GeneralSettings.ResetWalletDialog.title)
TextState(L10n.AppSettings.ResetWalletDialog.title)
} actions: {
ButtonState(role: .destructive, action: .deleteProfileLocalKeepInICloudIfPresent) {
TextState(L10n.GeneralSettings.ResetWalletDialog.resetButtonTitle)
TextState(L10n.AppSettings.ResetWalletDialog.resetButtonTitle)
}
ButtonState(role: .destructive, action: .deleteProfile) {
TextState(L10n.GeneralSettings.ResetWalletDialog.resetAndDeleteBackupButtonTitle)
TextState(L10n.AppSettings.ResetWalletDialog.resetAndDeleteBackupButtonTitle)
}
ButtonState(role: .cancel, action: .cancel) {
TextState(L10n.Common.cancel)
}
} message: {
TextState(L10n.GeneralSettings.ResetWalletDialog.message)
TextState(L10n.AppSettings.ResetWalletDialog.message)
}
}
Loading