From 3c7737682e8eda9ec4eeb57565a186a053704d7e Mon Sep 17 00:00:00 2001 From: smk762 Date: Tue, 22 Jul 2025 13:01:32 +0800 Subject: [PATCH 1/3] fix translation string name --- assets/translations/en.json | 2 +- lib/generated/codegen_loader.g.dart | 2 +- lib/views/wallets_manager/widgets/custom_seed_checkbox.dart | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/translations/en.json b/assets/translations/en.json index 18ae5dbf82..094b691bb2 100644 --- a/assets/translations/en.json +++ b/assets/translations/en.json @@ -501,7 +501,7 @@ "enterPassphraseHiddenWalletDescription": "Passphrase is required for hidden wallet", "skip": "Skip", "activateToSeeFunds": "Activate to see your funds", - "allowCustomFee": "Allow custom seed", + "allowCustomSeed": "Allow custom seed", "cancelOrder": "Cancel Order", "version": "version", "copyAddressToClipboard": "Copy {} address to clipboard", diff --git a/lib/generated/codegen_loader.g.dart b/lib/generated/codegen_loader.g.dart index 172b32318b..c240093fe5 100644 --- a/lib/generated/codegen_loader.g.dart +++ b/lib/generated/codegen_loader.g.dart @@ -536,7 +536,7 @@ abstract class LocaleKeys { 'enterPassphraseHiddenWalletDescription'; static const skip = 'skip'; static const activateToSeeFunds = 'activateToSeeFunds'; - static const allowCustomFee = 'allowCustomFee'; + static const allowCustomSeed = 'allowCustomSeed'; static const cancelOrder = 'cancelOrder'; static const version = 'version'; static const copyAddressToClipboard = 'copyAddressToClipboard'; diff --git a/lib/views/wallets_manager/widgets/custom_seed_checkbox.dart b/lib/views/wallets_manager/widgets/custom_seed_checkbox.dart index 6bfa22f656..83fca3149e 100644 --- a/lib/views/wallets_manager/widgets/custom_seed_checkbox.dart +++ b/lib/views/wallets_manager/widgets/custom_seed_checkbox.dart @@ -19,7 +19,7 @@ class CustomSeedCheckbox extends StatelessWidget { return UiCheckbox( checkboxKey: const Key('checkbox-custom-seed'), value: value, - text: LocaleKeys.allowCustomFee.tr(), + text: LocaleKeys.allowCustomSeed.tr(), onChanged: (newValue) async { if (!value && newValue) { final confirmed = await customSeedDialog(context); From 36db1b8fc9a35f61c1e0010de0037000d74a71b2 Mon Sep 17 00:00:00 2001 From: smk762 Date: Tue, 22 Jul 2025 15:05:28 +0800 Subject: [PATCH 2/3] `seed` - > `seed phrase` --- assets/translations/en.json | 20 +++++++++---------- lib/generated/codegen_loader.g.dart | 2 +- .../widgets/custom_seed_checkbox.dart | 2 +- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/assets/translations/en.json b/assets/translations/en.json index 094b691bb2..61f24d8130 100644 --- a/assets/translations/en.json +++ b/assets/translations/en.json @@ -114,22 +114,22 @@ "walletsManagerStepBuilderCreationWalletError": "Failed to create wallet, please try again later", "walletCreationTitle": "Create wallet", "walletImportTitle": "Import wallet", - "walletImportByFileTitle": "Importing seed file", + "walletImportByFileTitle": "Importing seed phrase file", "walletImportCreatePasswordTitle": "Create a password for \"{}\" wallet", - "walletImportByFileDescription": "Create a password of your seed file to decrypt it. This password will be used to log in to your wallet", + "walletImportByFileDescription": "Create a password of your seed phrase file to decrypt it. This password will be used to log in to your wallet", "walletLogInTitle": "Log in", "walletCreationNameHint": "Wallet name", "walletCreationPasswordHint": "Wallet password", "walletCreationConfirmPasswordHint": "Confirm password", "walletCreationConfirmPassword": "Confirm password", - "walletCreationUploadFile": "Upload seed file", - "walletCreationEmptySeedError": "Seed should not be empty", + "walletCreationUploadFile": "Upload seed phrase file", + "walletCreationEmptySeedError": "Seed phrase should not be empty", "walletCreationExistNameError": "Wallet name exists", "walletCreationNameLengthError": "Name length should be between 1 and 40", "walletCreationFormatPasswordError": "Password must contain at least 8 characters, with at least one digit, one lower-case, one upper-case and one special symbol. The password can't contain the same character 3 times in a row. The password can't contain the word 'password'", "walletCreationConfirmPasswordError": "Your passwords do not match. Please try again.", "incorrectPassword": "Incorrect password", - "importSeedEnterSeedPhraseHint": "Enter seed", + "importSeedEnterSeedPhraseHint": "Enter seed phrase", "passphraseCheckingTitle": "Let's double check your seed phrase", "passphraseCheckingDescription": "Your seed phrase is important - that's why it is important to make sure it is saved correctly. We'll ask you to confirm the position of three words in your seed phrase to make sure it has been saved, so you'll be able to easily restore your wallet wherever and whenever you want.", "passphraseCheckingEnterWord": "Enter the {} word of your seed phrase:", @@ -140,7 +140,7 @@ "settingsMenuSecurity": "Security", "settingsMenuAbout": "About", "seedPhraseSettingControlsViewSeed": "View seed phrase", - "seedPhraseSettingControlsDownloadSeed": "Download seed file", + "seedPhraseSettingControlsDownloadSeed": "Download seed phrase file", "debugSettingsResetActivatedCoins": "Reset activated coins", "debugSettingsDownloadButton": "Download logs", "or": "Or", @@ -201,8 +201,8 @@ "transactionDetailsTitle": "Transaction completed", "customSeedWarningText": "Custom seed phrases are generally less secure and easier to crack than a generated BIP39-compliant seed phrase. To confirm you understand and are aware of the risk, type \"I understand\" in the box below.", "customSeedIUnderstand": "i understand", - "walletCreationBip39SeedError": "BIP39 seed validation failed, try again or select 'Allow custom seed'", - "walletCreationHdBip39SeedError": "Your input seed is not BIP39 compliant, and can not be used in multi-address wallet mode. Please try again, or disable multi-address wallet mode and select 'Allow custom seed' to proceed.", + "walletCreationBip39SeedError": "BIP39 seed phrase validation failed, try again or select 'Allow custom seed'", + "walletCreationHdBip39SeedError": "Your input seed phrase is not BIP39 compliant, and can not be used in multi-address wallet mode. Please try again, or disable multi-address wallet mode and select 'Allow custom seed' to proceed.", "walletPageNoSuchAsset": "No assets match search criteria", "swapCoin": "Swap", "fiatBalance": "Fiat balance", @@ -333,7 +333,7 @@ "viewSeedPhrase": "View seed phrase", "backupSeedPhrase": "Backup seed phrase", "seedOr": "OR", - "seedDownload": "Download seed file", + "seedDownload": "Download seed phrase file", "seedSaveAndRemember": "Save and remember", "seedIntroWarning": "This phrase is the main access to your\nassets, save and never share this phrase", "seedSettings": "Seed phrase", @@ -501,7 +501,7 @@ "enterPassphraseHiddenWalletDescription": "Passphrase is required for hidden wallet", "skip": "Skip", "activateToSeeFunds": "Activate to see your funds", - "allowCustomSeed": "Allow custom seed", + "useCustomSeedOrWif": "Use custom seed phrase / private key (WIF)", "cancelOrder": "Cancel Order", "version": "version", "copyAddressToClipboard": "Copy {} address to clipboard", diff --git a/lib/generated/codegen_loader.g.dart b/lib/generated/codegen_loader.g.dart index c240093fe5..379e3c0ecb 100644 --- a/lib/generated/codegen_loader.g.dart +++ b/lib/generated/codegen_loader.g.dart @@ -536,7 +536,7 @@ abstract class LocaleKeys { 'enterPassphraseHiddenWalletDescription'; static const skip = 'skip'; static const activateToSeeFunds = 'activateToSeeFunds'; - static const allowCustomSeed = 'allowCustomSeed'; + static const useCustomSeedOrWif = 'useCustomSeedOrWif'; static const cancelOrder = 'cancelOrder'; static const version = 'version'; static const copyAddressToClipboard = 'copyAddressToClipboard'; diff --git a/lib/views/wallets_manager/widgets/custom_seed_checkbox.dart b/lib/views/wallets_manager/widgets/custom_seed_checkbox.dart index 83fca3149e..554ade87c7 100644 --- a/lib/views/wallets_manager/widgets/custom_seed_checkbox.dart +++ b/lib/views/wallets_manager/widgets/custom_seed_checkbox.dart @@ -19,7 +19,7 @@ class CustomSeedCheckbox extends StatelessWidget { return UiCheckbox( checkboxKey: const Key('checkbox-custom-seed'), value: value, - text: LocaleKeys.allowCustomSeed.tr(), + text: LocaleKeys.useCustomSeedOrWif.tr(), onChanged: (newValue) async { if (!value && newValue) { final confirmed = await customSeedDialog(context); From dc4e271ab94fc8fe5f4a9949a0037ec00fc5b217 Mon Sep 17 00:00:00 2001 From: smk762 Date: Tue, 22 Jul 2025 15:10:50 +0800 Subject: [PATCH 3/3] removes "seed" in connect button --- assets/translations/en.json | 1 - lib/generated/codegen_loader.g.dart | 1 - lib/views/wallets_manager/widgets/wallet_type_list_item.dart | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/assets/translations/en.json b/assets/translations/en.json index 61f24d8130..147185a655 100644 --- a/assets/translations/en.json +++ b/assets/translations/en.json @@ -322,7 +322,6 @@ "exchange": "Exchange", "connectSomething": "Connect {}", "hardwareWallet": "Hardware wallet", - "komodoWalletSeed": "Komodo Wallet seed", "metamask": "Metamask", "comingSoon": "Coming soon", "walletsTypeListTitle": "Start using Komodo Wallet", diff --git a/lib/generated/codegen_loader.g.dart b/lib/generated/codegen_loader.g.dart index 379e3c0ecb..a87287b9dc 100644 --- a/lib/generated/codegen_loader.g.dart +++ b/lib/generated/codegen_loader.g.dart @@ -349,7 +349,6 @@ abstract class LocaleKeys { static const exchange = 'exchange'; static const connectSomething = 'connectSomething'; static const hardwareWallet = 'hardwareWallet'; - static const komodoWalletSeed = 'komodoWalletSeed'; static const metamask = 'metamask'; static const comingSoon = 'comingSoon'; static const walletsTypeListTitle = 'walletsTypeListTitle'; diff --git a/lib/views/wallets_manager/widgets/wallet_type_list_item.dart b/lib/views/wallets_manager/widgets/wallet_type_list_item.dart index 8c9bfef54b..5230031e6e 100644 --- a/lib/views/wallets_manager/widgets/wallet_type_list_item.dart +++ b/lib/views/wallets_manager/widgets/wallet_type_list_item.dart @@ -86,7 +86,7 @@ class WalletTypeListItem extends StatelessWidget { switch (type) { case WalletType.iguana: case WalletType.hdwallet: - return LocaleKeys.komodoWalletSeed.tr(); + return LocaleKeys.komodoWallet.tr(); case WalletType.metamask: return LocaleKeys.metamask.tr(); case WalletType.keplr: