CW-686-polyseed-language-issues (#2098)

* feat: Fix space for japanese seed

* feat: Fix space for japanese seed

* feat: Upgrade Polyseed version with improved jp support

* feat: Fix monero legacy seed language falling back to english
This commit is contained in:
Konstantin Ullrich
2025-03-21 05:32:40 +02:00
committed by GitHub
parent 626e532fce
commit 597a716f9d
8 changed files with 37 additions and 21 deletions
@@ -92,7 +92,8 @@ class ValidatableAnnotatedEditableTextState extends EditableTextState {
List<Annotation> getRanges() {
final result = <Annotation>[];
final text = textEditingValue.text;
// Replace Ideographic Space (U+3000) with a normal space
final text = textEditingValue.text.replaceAll("\u3000", " ");
final source = text
.split(' ')
.map((word) {
+1 -1
View File
@@ -60,7 +60,7 @@ abstract class WalletCreationVMBase with Store {
final SeedSettingsViewModel seedSettingsViewModel;
bool isPolyseed(String seed) =>
(type == WalletType.monero || type == WalletType.wownero) &&
[WalletType.monero, WalletType.wownero].contains(type) &&
(Polyseed.isValidSeed(seed) || (seed.split(" ").length == 14));
bool nameExists(String name) => walletCreationService.exists(name);