Compare commits

...
Author SHA1 Message Date
Forte11Cuba 9ab78e0ab8 fix: add startup recovery for lost proofs and pending operations 2026-03-20 11:32:16 -06:00
Forte11andGitHub d13b5e8782 Merge pull request #66 from Forte11Cuba/feature/nfc-support
feat: NFC support for Cashu token read/write
2026-03-13 17:34:47 -06:00
Forte11Cuba 76931f7b1d fix: parse URI fragment as key-value pairs instead of substring 2026-03-13 14:09:56 -06:00
Forte11Cuba 115843ce51 fix: guard against infinite loop on zero-data IsoDep response 2026-03-13 12:43:35 -06:00
Forte11Cuba 713f13a46d fix: address CodeRabbit review — await NFC sessions, log errors, validate tokens 2026-03-13 12:30:46 -06:00
Forte11Cuba 560d6fc683 feat: phone-to-phone NFC via HCE with proprietary AID 2026-03-13 12:05:36 -06:00
Forte11Cuba c0f8b166ea feat: NFC support for Cashu token read/write 2026-03-12 10:53:50 -06:00
Forte11andGitHub 6b68367c0d Merge pull request #64 from Forte11Cuba/feature/peanut-emoji-encoding
feat: add peanut emoji encoding for Cashu tokens
2026-03-12 08:33:05 -06:00
Forte11Cuba d80ed4caa7 fix: handle malformed peanut tokens with explicit error message 2026-03-12 08:20:52 -06:00
Forte11Cuba a627ed39f2 fix: guard clipboard callback with mounted check in ReceiveScreen 2026-03-12 08:06:24 -06:00
Forte11Cuba 5d00213d95 fix: peanut decode trimLeft consistency and auto-decode on receive 2026-03-12 07:30:52 -06:00
Forte11Cuba 2e3bb5dcc3 feat: add peanut emoji encoding for Cashu tokens 2026-03-12 06:54:50 -06:00
Forte11andGitHub 749d44650d Merge pull request #63 from Forte11Cuba/cleanup/css-duplicates-and-i18n
fix: auto version from pubspec, remove Cuba Bitcoin badge, LaChispa tappable link
2026-02-26 03:09:30 -06:00
Forte11Cuba 3ff2d6ef84 fix: defensive error handling for version load and LaChispa link 2026-02-26 03:04:58 -06:00
Forte11Cuba 18c72ebf1d fix: auto version from pubspec, remove Cuba Bitcoin badge, LaChispa tappable link 2026-02-26 02:50:40 -06:00
Forte11Cuba f9a70bf1ed ci: add universal APK and stable download URL
Release APK / build (push) Canceled after 0s
2026-02-25 05:27:34 -06:00
Forte11Cuba 22434245f2 bump version to v0.1.0 2026-02-25 04:48:05 -06:00
Forte11Cuba fb76bde5b7 fix: remove stale precompiled .so and ignore jniLibs 2026-02-25 04:46:44 -06:00
Forte11andGitHub 365047e73c Merge pull request #62 from Forte11Cuba/feature/p2pk-qr-scan
feat: add QR scan button for P2PK pubkey input (#59)
2026-02-23 16:31:48 -06:00
Forte11Cuba c374c042c7 fix: add user feedback for invalid QR and camera errors in P2PK scanner 2026-02-23 16:30:30 -06:00
Forte11Cuba 0f7e89a687 feat: add QR scan button for P2PK pubkey input (#59) 2026-02-23 16:21:29 -06:00
Forte11andGitHub 73582c4a69 Merge pull request #61 from Forte11Cuba/fix/cancel-send-on-failure
fix: release reserved proofs when confirmSend fails (#58)
2026-02-23 15:51:19 -06:00
Forte11Cuba 3e9fea34eb fix: guard cancelSend to avoid masking original send error 2026-02-23 15:48:46 -06:00
Forte11Cuba 348ef1d987 fix: release reserved proofs when confirmSend fails (#58) 2026-02-23 15:42:02 -06:00
Forte11andGitHub fc72bb33b2 Merge pull request #57 from Forte11Cuba/feature/enable-p2pk-send
feat: enable P2PK send with CDK 0.15 includeFee support
2026-02-23 14:29:52 -06:00
Forte11Cuba 7a9ce65e55 fix: guard against short pubkey in debug log and async paste disposal 2026-02-23 14:17:22 -06:00
Forte11Cuba 604dd65266 feat: enable P2PK send with CDK 0.15 includeFee support 2026-02-23 13:52:25 -06:00
Forte11andGitHub 42f59e877f Merge pull request #56 from Forte11Cuba/fix/pending-invoice-error-handling
fix: add try/catch to _loadPendingMintInvoice to prevent stuck loading state
2026-02-23 13:20:07 -06:00
Forte11Cuba 8b0e0dcd15 fix: log error in _loadPendingMintInvoice catch block 2026-02-23 13:18:28 -06:00
Forte11Cuba 0ac2a8b3ad fix: add try/catch to _loadPendingMintInvoice to prevent stuck loading state 2026-02-23 13:12:16 -06:00
Forte11andGitHub a97d7d45bc Merge pull request #55 from Forte11Cuba/fix/invoice-placeholder-flash
ui: suppress invoice placeholder flash while loading pending mint invoice
2026-02-21 01:38:33 -06:00
Forte11Cuba bf2c4771dd ui: suppress invoice placeholder flash while loading pending mint invoice 2026-02-21 01:30:53 -06:00
Forte11andGitHub 5821ea2be5 Merge pull request #54 from Forte11Cuba/ui/offline-send-select-all-label
ui: add label to select all checkbox in offline send screen
2026-02-21 01:25:01 -06:00
Forte11Cuba 36b900113f ui: add label to select all checkbox in offline send screen 2026-02-21 01:21:08 -06:00
Forte11Cuba 91078729aa ui: add label to select all checkbox in offline send screen 2026-02-21 00:53:53 -06:00
Forte11andGitHub 61293d991a Merge pull request #52 from Forte11Cuba/fix/transaction-detail-late-final-crash
fix: crash on Lightning incoming transaction detail without saved metadata
2026-02-21 00:44:13 -06:00
Forte11Cuba 4cb37a8de2 fix: crash on Lightning incoming transaction detail without saved metadata 2026-02-21 00:21:28 -06:00
Forte11andGitHub 1b5045b5ef Merge pull request #51 from Forte11Cuba/fix/normalize-mnemonic-whitespace
fix: normalize mnemonic whitespace before saving to secure storage
2026-02-21 00:18:28 -06:00
Forte11Cuba 7a1cb21d35 fix: normalize mnemonic whitespace and validate before persisting 2026-02-21 00:15:51 -06:00
Forte11Cuba b8649348c8 fix: normalize mnemonic whitespace before saving to secure storage 2026-02-21 00:06:27 -06:00
Forte11andGitHub d9de23b425 Merge pull request #46 from Forte11Cuba/fix/restore-wallet-nut13-scan
fix: trigger NUT-13 proof recovery scan on wallet restore
2026-02-17 01:56:38 -06:00
Forte11Cuba 28d95fdae0 fix: align Chinese mint term and center status text 2026-02-17 01:52:51 -06:00
Forte11Cuba 3b72367ff1 fix: trigger NUT-13 proof recovery scan on wallet restore 2026-02-17 01:39:15 -06:00
Forte11Cuba a8251c433c fix: split APK per ABI to reduce size (~40MB vs 125MB)
Release APK / build (push) Canceled after 0s
2026-02-14 21:02:26 -06:00
Forte11Cuba 812f28d3b9 Fix l10n imports for CI compatibility 2026-02-14 20:01:46 -06:00
Forte11Cuba 0465034a2b Add release workflow 2026-02-14 19:30:10 -06:00
Forte11andGitHub 9abb2c03e1 Merge pull request #44 from Forte11Cuba/fix/lightning-invoice-ux
fix: improve Lightning deposit UX and global confetti
2026-02-14 01:38:22 -06:00
Forte11Cuba f842561864 fix: improve Lightning deposit UX and global confetti 2026-02-14 01:36:52 -06:00
Forte11andGitHub 5fe1ec5c90 Merge pull request #43 from Forte11Cuba/fix/disable-p2pk-send-ui
fix: disable P2PK send UI pending CDK fix
2026-02-13 23:20:25 -06:00
Forte11Cuba 336f4316aa fix 2026-02-13 23:18:02 -06:00
Forte11Cuba 7f902f7f75 fix: disable P2PK send UI pending CDK fix 2026-02-13 23:08:31 -06:00
Forte11andGitHub bb07a8f2da Merge pull request #42 from Forte11Cuba/fix/p2pk-send-workaround
fix: workaround P2PK send bug (cdk-flutter#3)
2026-02-12 22:31:28 -06:00
Forte11Cuba cb33924a75 fix 2026-02-12 04:52:37 -06:00
Forte11Cuba 390af394b9 fix: workaround P2PK send bug (cdk-flutter#3) 2026-02-12 04:44:49 -06:00
Forte11andGitHub 64430191f4 Merge pull request #41 from Forte11Cuba/feature/p2pk-receive-multi-unit
feat: Add P2PK (Pay to Public Key) support
2026-02-12 03:18:56 -06:00
Forte11Cuba 0952bda73b fix(p2pk): show error border on nsec input in all focus states 2026-02-12 03:17:46 -06:00
Forte11Cuba 7da8181022 fix(p2pk): handle hexToNpub exception and unsafe substring in key card 2026-02-12 03:11:09 -06:00
Forte11Cuba 13de1456c8 feat: Add P2PK (Pay to Public Key) support 2026-02-12 02:35:06 -06:00
Forte11andGitHub b1777f32a2 Merge pull request #40 from Forte11Cuba/feature/p2pk-send
feat(p2pk): implement P2PK token locking (send)
2026-02-11 21:30:43 -06:00
Forte11Cuba d9144e74d1 fix: address CodeRabbit review feedback (round 3) 2026-02-11 16:19:21 -06:00
Forte11Cuba bfca3da6e5 fix(p2pk): address CodeRabbit review feedback (round 2) 2026-02-11 16:10:12 -06:00
Forte11Cuba 235dc29b08 feat(p2pk): implement P2PK token locking (send) 2026-02-11 15:42:17 -06:00
Forte11Cuba 3840929d5e feat(p2pk): implement P2PK token locking (send) 2026-02-11 15:11:11 -06:00
Forte11andGitHub 705916d42c Merge pull request #38 from Forte11Cuba/feature/language-screen
feat(ui): add dedicated language selection screen
2026-02-11 04:15:08 -06:00
Forte11Cuba 6189af6200 feat(ui): add dedicated language selection screen 2026-02-11 03:59:18 -06:00
Forte11andGitHub c4e35e93fe Merge pull request #37 from Forte11Cuba/feature/i18n-swahili
feat(i18n): add Swahili (Kiswahili) translation
2026-02-11 03:44:51 -06:00
Forte11Cuba 369c634217 feat(i18n): add Swahili (Kiswahili) translation 2026-02-11 03:43:56 -06:00
Forte11andGitHub 69ae41b201 Merge pull request #36 from Forte11Cuba/feature/i18n-japanese
feat(i18n): add Japanese (日本語) translation
2026-02-11 03:37:50 -06:00
Forte11Cuba bacdff8a32 feat(i18n): add Japanese (日本語) translation 2026-02-11 03:36:46 -06:00
Forte11andGitHub 35d3338030 Merge pull request #35 from Forte11Cuba/feature/i18n-chinese
feat(i18n): add Chinese (中文) translation
2026-02-11 03:31:03 -06:00
Forte11Cuba b2c365b8f1 feat(i18n): add Chinese (中文) translation 2026-02-11 03:28:56 -06:00
Forte11andGitHub 339da91e20 Merge pull request #34 from Forte11Cuba/feature/i18n-korean
feat(i18n): add Korean (한국어) translation
2026-02-11 03:17:55 -06:00
Forte11Cuba 13a442696e feat(i18n): add Korean (한국어) translation 2026-02-11 03:17:04 -06:00
Forte11andGitHub 5b255e3b88 Merge pull request #33 from Forte11Cuba/feature/i18n-italian
feat(i18n): add Italian translation
2026-02-11 03:11:02 -06:00
Forte11Cuba 07567fea59 feat(i18n): add Italian translation 2026-02-11 03:10:08 -06:00
Forte11andGitHub 54cb785310 Merge pull request #32 from Forte11Cuba/feature/i18n-german
feat(i18n): add German translation
2026-02-11 03:06:11 -06:00
Forte11Cuba d4e5e1ce70 feat(i18n): add German translation 2026-02-11 03:05:39 -06:00
Forte11andGitHub 9b3d72fae3 Merge pull request #31 from Forte11Cuba/feature/i18n-russian
feat(i18n): add Russian translation
2026-02-11 02:56:00 -06:00
Forte11Cuba 3e86de397d feat(i18n): add Russian translation 2026-02-11 02:55:27 -06:00
Forte11andGitHub 8bd95dd9a4 Merge pull request #30 from Forte11Cuba/feature/i18n-french
feat(i18n): add French translation
2026-02-11 02:51:04 -06:00
Forte11Cuba 20c513b5fc feat(i18n): add French translation 2026-02-11 02:49:09 -06:00
Forte11andGitHub aeb26158ef Merge pull request #29 from Forte11Cuba/feature/i18n-portuguese
feat(i18n): add Portuguese translation
2026-02-11 02:42:25 -06:00
Forte11Cuba 796f488c15 fix(i18n): register Portuguese locale in supportedLocales 2026-02-11 02:40:54 -06:00
Forte11Cuba a64a09adeb feat(i18n): add Portuguese translation 2026-02-11 02:35:41 -06:00
Forte11andGitHub 905981c3c3 Merge pull request #28 from Forte11Cuba/improve/ux-copy-and-loading-messages
Improve UX copy and add dynamic loading messages
2026-02-11 01:11:12 -06:00
Forte11Cuba a4a1b929a0 Improve UX copy and add dynamic loading messages 2026-02-11 01:05:47 -06:00
Forte11andGitHub c6209b9c9f Merge pull request #27 from Forte11Cuba/fix/show-full-lightning-address
Fix: show full lightning address instead of username only
2026-02-11 00:33:19 -06:00
Forte11Cuba 73a4afe3c2 Fix: show full lightning address instead of username only 2026-02-11 00:31:16 -06:00
Forte11andGitHub c650ec2159 Merge pull request #26 from Forte11Cuba/fix/safe-area-bottom-sheet-overlap
fix: add SafeArea to screens and fix bottom sheet overlap
2026-02-11 00:21:26 -06:00
Forte11Cuba 72691dbafb fix: añadir SafeArea a pantallas y corregir overlapping en bottom sheet 2026-02-11 00:17:06 -06:00
Forte11andGitHub bdafde7512 Update README.md 2026-02-10 18:14:29 -06:00
Forte11andGitHub b9b24de611 Merge pull request #25 from Forte11Cuba/feature/numpad-and-lnurl-ux
feat: add reusable numpad widget and improve LNURL UX
2026-02-10 18:06:13 -06:00
Forte11Cuba 10114445cd fix: additional CodeRabbit review fixes 2026-02-10 18:04:30 -06:00
Forte11Cuba aef0eb414e fix: address CodeRabbit review comments 2026-02-10 17:56:52 -06:00
Forte11Cuba 9bf4aa1e81 feat: add price service for USD/EUR to sats conversion in LNURL payments 2026-02-10 17:45:44 -06:00
Forte11Cuba ccbc143eb9 feat: add reusable numpad widget and improve LNURL UX 2026-02-10 16:27:06 -06:00
Forte11andGitHub b33270a719 Merge pull request #24 from Forte11Cuba/fix/qr-scanner-animated-ur
fix: full support for animated QR scanning (UR)
2026-02-10 15:15:57 -06:00
Forte11Cuba ae06d83cea fix: full support for animated QR scanning (UR) 2026-02-10 15:13:54 -06:00
Forte11andGitHub 9de89fe9c1 Merge pull request #21 from Forte11Cuba/feature/qr-scanner
feat: add QR scanner with UR multipart support
2026-02-07 23:46:10 -06:00
Forte11Cuba 7ee12dc044 fix errors 2026-02-07 23:45:26 -06:00
Forte11Cuba 66abf3b3c2 fix: address CodeRabbit review feedback 2026-02-07 23:38:11 -06:00
Forte11Cuba 9ec585d9a2 feat: add QR scanner with UR multipart support 2026-02-07 23:20:22 -06:00
Forte11andGitHub a25fb9d7c1 Merge pull request #20 from Forte11Cuba/feat/receive-single-button-connectivity
feat(receive): single button with mint connectivity check
2026-02-07 22:55:16 -06:00
Forte11Cuba 9e3622435b fix(receive): use localized string for invalid token error 2026-02-07 22:54:54 -06:00
Forte11Cuba b6c5b42cf2 fix(receive): add catch block for save-for-later errors 2026-02-07 22:44:46 -06:00
Forte11Cuba 835f5205c7 feat(receive): single button with mint connectivity check 2026-02-07 22:35:13 -06:00
Forte11andGitHub 0629c00c90 Merge pull request #18 from Forte11Cuba/fix/onboarding-ui-polish
fix: improve onboarding UI with language selector and icon consistency
2026-02-06 21:49:40 -06:00
Forte11Cuba f49e6a9c59 fix flags 2026-02-06 21:43:33 -06:00
Forte11Cuba a0821429dd fix: improve onboarding UI with language selector and icon consistency 2026-02-06 21:33:47 -06:00
Forte11andGitHub 2e0f360ff0 Merge pull request #17 from Forte11Cuba/feature/receive-later
feat: add Receive Later functionality for offline token storage
2026-02-06 20:58:34 -06:00
Forte11Cuba cbddc5aff0 fix some files 2026-02-06 20:56:41 -06:00
Forte11Cuba 9fee4c7ef4 feat: add Receive Later functionality for offline token storage 2026-02-06 20:47:03 -06:00
Forte11andGitHub 7035e2ef00 Merge pull request #16 from Forte11Cuba/feature/i18n
feat: complete i18n implementation for all screens
2026-02-06 20:11:01 -06:00
Forte11Cuba 989fd19dc8 fix some files 2026-02-06 20:07:31 -06:00
Forte11Cuba 5dff3bcf24 feat: complete i18n implementation for all screens 2026-02-06 19:57:17 -06:00
Forte11andGitHub f30d6bac2e Merge pull request #14 from Forte11Cuba/fix/scroll-layout-overlapping
fix: resolve overlapping in screens with keyboard
2026-02-06 18:58:51 -06:00
Forte11Cuba 55560a28fc fix: resolve overlapping in screens with keyboard 2026-02-06 18:53:40 -06:00
Forte11Cuba db2f393ff0 feat: Add Android build support 2026-02-06 17:32:57 -06:00
Forte11andGitHub 9691dda1bc Correct gender reference for ElCaju description 2026-02-06 16:17:55 -06:00
Forte11Cuba be72926a25 Merge branch 'main' of github.com:Forte11Cuba/elcaju 2026-02-06 16:12:14 -06:00
Forte11Cuba ce4ef20177 LICENSE 2026-02-06 16:11:09 -06:00
Forte11andGitHub f101f7098b Fix directory path in README for cloning 2026-02-06 16:07:47 -06:00
Forte11Cuba 6cf9e5b69c readme 2026-02-06 16:06:24 -06:00
Forte11andGitHub b14acba5b7 Merge pull request #13 from Forte11Cuba/feature/mint-info-screen
feat: add mint detail screen and show mint logo in dashboard
2026-02-06 15:46:10 -06:00
Forte11Cuba 0a932bdd8e feat: add mint detail screen and show mint logo in dashboard 2026-02-06 15:44:41 -06:00
Forte11andGitHub 5934a1db8a Merge pull request #12 from Forte11Cuba/feature/balance-tap-toggle
feat: improve balance interaction UX
2026-02-06 15:14:22 -06:00
Forte11Cuba 9d643af39d feat: improve balance interaction UX 2026-02-06 15:13:29 -06:00
Forte11andGitHub a5dc4d6160 Merge pull request #11 from Forte11Cuba/feature/unit-labels-cashu-style
feat: update unit display to match cashu.me style
2026-02-06 14:55:40 -06:00
Forte11Cuba 922fabc784 feat: update unit display to match cashu.me style 2026-02-06 14:54:46 -06:00
Forte11andGitHub 7540e7e413 Merge pull request #10 from Forte11Cuba/feature/history-screen-qr-dynamic
feat: add dedicated history screen with dynamic QR codes
2026-02-06 14:23:04 -06:00
Forte11Cuba 9ee020ccb2 feat: add dedicated history screen with dynamic QR codes 2026-02-06 14:22:25 -06:00
Forte11andGitHub aeaebee37b Merge pull request #9 from Forte11Cuba/feature/animated-action-buttons
feature/animated-action-buttons
2026-02-06 13:11:12 -06:00
Forte11Cuba 52812c85c6 feature/animated-action-buttons 2026-02-06 13:10:27 -06:00
Forte11andGitHub dac5693d5c Merge pull request #8 from Forte11Cuba/feature/app-icon-splash
Add app icon and native splash screen
2026-02-06 12:46:04 -06:00
Forte11Cuba 0e6f06bf7f Add app icon and native splash screen 2026-02-06 12:44:52 -06:00
Forte11andGitHub 5b70ca3773 Merge pull request #7 from Forte11Cuba/feat/addofflinesend
feat: add offline send with manual proof selection
2026-02-06 03:44:49 -06:00
Forte11Cuba f0236df966 feat: add offline send with manual proof selection 2026-02-06 03:43:43 -06:00
Forte11andGitHub 6b1cdabf14 Merge pull request #6 from Forte11Cuba/feat/mint-persistence-and-ordering
feat: persist mints and prioritize Cuba Bitcoin
2026-02-06 02:30:13 -06:00
Forte11Cuba 48ab3d8c4d feat: persist mints and prioritize Cuba Bitcoin 2026-02-06 02:28:57 -06:00
Forte11andGitHub ac6af4b883 Merge pull request #5 from Forte11Cuba/feat/auto-detect-token-unit
feat(receive): auto-detect token unit from V3/V4 tokens
2026-02-06 02:07:58 -06:00
Forte11Cuba 0a935193c2 feat(receive): auto-detect token unit from V3/V4 tokens 2026-02-06 02:05:52 -06:00
Forte11andGitHub a0d55df497 Merge pull request #4 from Forte11Cuba/feature/multi-unit-support
feat: add multi-unit currency support (sat, usd, eur)
2026-02-06 01:20:26 -06:00
Forte11Cuba 8ce9ed37bd feat: add multi-unit currency support (sat, usd, eur) 2026-02-06 01:19:34 -06:00
Forte11andGitHub 862d9e36ac Merge pull request #3 from Forte11Cuba/fix/balance-mint-activo
fix: show active mint balance instead of total balance
2026-02-05 21:26:18 -06:00
Forte11Cuba a3f17210bc fix: show active mint balance instead of total balance 2026-02-05 21:25:49 -06:00
Forte11andGitHub 6a1d956bef Merge pull request #2 from Forte11Cuba/feature/animated-ur-qr-codes
feat: implement animated UR QR codes for token sharing
2026-02-05 21:11:54 -06:00
Forte11Cuba 8896bc83f7 feat: implement animated UR QR codes for token sharing 2026-02-05 21:09:36 -06:00
Forte11andGitHub e607148cca Merge pull request #1 from Forte11Cuba/nut13
feat: implement NUT-13 restore to recover tokens
2026-02-05 20:50:32 -06:00
135 changed files with 36102 additions and 2536 deletions
+68
View File
@@ -0,0 +1,68 @@
name: Release APK
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- name: Setup Java 17
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '17'
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: aarch64-linux-android,armv7-linux-androideabi,x86_64-linux-android
- name: Install Android NDK
run: echo "y" | $ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager "ndk;27.0.12077973"
- name: Install dependencies
run: flutter pub get
- name: Generate localizations
run: flutter gen-l10n
- name: Build release APKs (split per ABI)
run: flutter build apk --release --split-per-abi
- name: Build universal APK
run: flutter build apk --release
- name: Rename APKs
run: |
cd build/app/outputs/flutter-apk
mv app-arm64-v8a-release.apk elcaju-${{ github.ref_name }}-arm64.apk
mv app-armeabi-v7a-release.apk elcaju-${{ github.ref_name }}-armeabi-v7a.apk
mv app-x86_64-release.apk elcaju-${{ github.ref_name }}-x86_64.apk
mv app-release.apk elcaju-${{ github.ref_name }}-universal.apk
cp elcaju-${{ github.ref_name }}-universal.apk elcaju-universal.apk
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: |
build/app/outputs/flutter-apk/elcaju-${{ github.ref_name }}-arm64.apk
build/app/outputs/flutter-apk/elcaju-${{ github.ref_name }}-armeabi-v7a.apk
build/app/outputs/flutter-apk/elcaju-${{ github.ref_name }}-x86_64.apk
build/app/outputs/flutter-apk/elcaju-${{ github.ref_name }}-universal.apk
build/app/outputs/flutter-apk/elcaju-universal.apk
generate_release_notes: true
+3
View File
@@ -44,3 +44,6 @@ app.*.map.json
/android/app/debug
/android/app/profile
/android/app/release
# Rust/CargoKit compiled native libraries
android/app/src/main/jniLibs/
+21
View File
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2026 Forte11
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+344 -11
View File
@@ -1,17 +1,350 @@
# elcaju
## ElCaju 🥜
A new Flutter project.
[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/Forte11Cuba/elcaju)
*Ask questions about this project using DeepWiki AI*
## Getting Started
<p align="center">
<img src="assets/img/elcajucubano.png" alt="ElCaju Logo" width="200"/>
</p>
This project is a starting point for a Flutter application.
<p align="center">
<strong>Your private ecash wallet on Bitcoin</strong>
</p>
A few resources to get you started if this is your first Flutter project:
<p align="center">
<img src="https://img.shields.io/badge/Flutter-02569B?style=for-the-badge&logo=flutter&logoColor=white" alt="Flutter"/>
<img src="https://img.shields.io/badge/Dart-0175C2?style=for-the-badge&logo=dart&logoColor=white" alt="Dart"/>
<img src="https://img.shields.io/badge/Rust-000000?style=for-the-badge&logo=rust&logoColor=white" alt="Rust"/>
<img src="https://img.shields.io/badge/Bitcoin-F7931A?style=for-the-badge&logo=bitcoin&logoColor=white" alt="Bitcoin"/>
<img src="https://img.shields.io/badge/Cashu-4A1259?style=for-the-badge" alt="Cashu"/>
</p>
- [Lab: Write your first Flutter app](https://docs.flutter.dev/get-started/codelab)
- [Cookbook: Useful Flutter samples](https://docs.flutter.dev/cookbook)
<p align="center">
<a href="https://elcaju.me">elcaju.me</a> •
<a href="#-installation">Installation</a> •
<a href="#-features">Features</a> •
<a href="#-technologies">Technologies</a>
</p>
For help getting started with Flutter development, view the
[online documentation](https://docs.flutter.dev/), which offers tutorials,
samples, guidance on mobile development, and a full API reference.
# elcaju
---
## 📱 About ElCaju
**ElCaju** is a [Cashu](https://cashu.space) wallet (ecash on Bitcoin) with Cuban identity, brother of [LaChispa](https://github.com/lachispame/) (Lightning). Designed to offer privacy, offline transactions, and a warm tropical experience.
### What is Cashu?
Cashu is an ecash protocol that enables Bitcoin transactions with maximum privacy. Cashu tokens are:
- **Private**: Fungible and untraceable
- **Offline**: Store and send tokens without internet connection
- **Instant**: No waiting for blockchain confirmations
---
## ✨ Features
| Feature | Description |
|---------|-------------|
| 🔐 **Total Privacy** | Fungible ecash tokens, no traceable history |
| 📴 **Works Offline** | Store and share tokens without internet |
| ⚡ **Lightning Bridge** | Deposit and withdraw sats via Lightning Network |
| 🏦 **Multi-Mint** | Connect to multiple Cashu mints simultaneously |
| 💱 **Multi-Unit** | Support for sat, USD, EUR and more |
| 🔑 **Your Seed, Your Money** | Backup with 12 words (BIP39) |
| 🔒 **Optional PIN** | Protect access to your wallet |
| 🌐 **Bilingual** | Spanish and English |
| 🎉 **Friendly UX** | Visual effects and confetti when receiving funds |
---
## 🚀 Screenshots
<p align="center">
<img src="assets/img/Captura1.png" width="180"/>
<img src="assets/img/Captura2.png" width="180"/>
<img src="assets/img/Captura3.png" width="180"/>
<img src="assets/img/Captura4.png" width="180"/>
<img src="assets/img/Captura5.png" width="180"/>
</p>
---
## 🔧 Technologies
### Frontend
- **Flutter 3.27+**: Cross-platform framework
- **Dart**: Programming language
- **Provider**: State management
- **QR Flutter**: QR code generation
### Backend & Core
- **[cdk-flutter](https://github.com/cashubtc/cdk_flutter)**: Cashu Development Kit (Rust FFI)
- **SQLite**: Local persistence via cdk-sqlite
- **Flutter Secure Storage**: Secure storage for seed and PIN
### Protocols
- **Cashu**: NUT-00 to NUT-13 (ecash protocol)
- **Lightning Network**: Deposits and withdrawals via BOLT11
- **BIP39**: Seed phrase generation
---
## 📦 Installation
### Prerequisites
- Flutter SDK (>=3.27.0)
- Dart SDK (>=3.6.0)
- Android Studio with Android SDK
- Android NDK 26.3+ (install via Android Studio > SDK Manager > SDK Tools)
- Rust toolchain (>=1.85.0)
### Clone the Repository
```bash
git clone https://github.com/Forte11Cuba/elcaju.git
cd elcaju
```
### Install Dependencies
```bash
flutter pub get
```
### Configure Rust for Android (Linux/macOS)
```bash
# Install Rust if not already installed
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Update to latest stable (requires >= 1.85.0)
rustup update stable
# Install Android targets
rustup target add aarch64-linux-android # arm64-v8a (modern devices)
rustup target add armv7-linux-androideabi # armeabi-v7a (older devices)
rustup target add x86_64-linux-android # x86_64 (emulators)
```
### Configure Android NDK Linkers
Create or edit `~/.cargo/config.toml` with your NDK path:
```toml
[target.x86_64-unknown-linux-gnu]
linker = "gcc"
rustflags = ["-C", "link-arg=-fuse-ld=bfd"]
[target.aarch64-linux-android]
linker = "/path/to/Android/Sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang"
[target.armv7-linux-androideabi]
linker = "/path/to/Android/Sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi24-clang"
[target.x86_64-linux-android]
linker = "/path/to/Android/Sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android24-clang"
[env]
CC_armv7-linux-androideabi = "/path/to/Android/Sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi24-clang"
AR_armv7-linux-androideabi = "/path/to/Android/Sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar"
CC_x86_64-linux-android = "/path/to/Android/Sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android24-clang"
AR_x86_64-linux-android = "/path/to/Android/Sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar"
CC_aarch64-linux-android = "/path/to/Android/Sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang"
AR_aarch64-linux-android = "/path/to/Android/Sdk/ndk/26.3.11579264/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-ar"
```
> **Note**: Replace `/path/to/Android/Sdk` with your actual Android SDK path (usually `~/Android/Sdk` on Linux or `~/Library/Android/sdk` on macOS).
### Compile Native Libraries
The cdk_flutter native libraries must be compiled manually:
```bash
# Navigate to cdk_flutter rust directory
cd ~/.pub-cache/git/cdk_flutter-*/rust
# Build for each architecture
cargo build --release --target aarch64-linux-android
cargo build --release --target armv7-linux-androideabi
cargo build --release --target x86_64-linux-android
# Copy libraries to project
mkdir -p /path/to/elcaju/android/app/src/main/jniLibs/{arm64-v8a,armeabi-v7a,x86_64}
cp target/aarch64-linux-android/release/libcdk_flutter.so \
/path/to/elcaju/android/app/src/main/jniLibs/arm64-v8a/
cp target/armv7-linux-androideabi/release/libcdk_flutter.so \
/path/to/elcaju/android/app/src/main/jniLibs/armeabi-v7a/
cp target/x86_64-linux-android/release/libcdk_flutter.so \
/path/to/elcaju/android/app/src/main/jniLibs/x86_64/
```
### Run in Development
```bash
flutter run
```
### Build for Production
```bash
# Android APK (includes all architectures, ~55MB)
flutter build apk --release
# Android App Bundle (recommended for Play Store)
flutter build appbundle --release
```
### Quick Build (arm64 only)
For faster builds targeting only modern devices:
```bash
# Build only arm64 library
cargo build --release --target aarch64-linux-android
# Copy to project
cp target/aarch64-linux-android/release/libcdk_flutter.so \
android/app/src/main/jniLibs/arm64-v8a/
# Build APK (~40MB)
flutter build apk --release
```
---
## 🏗️ Architecture
```
┌─────────────────────────────────────────┐
│ Flutter UI (Dart) │
│ Provider + Streams + Intl │
├─────────────────────────────────────────┤
│ WalletProvider / SettingsProvider │
│ (Multi-unit: Map<mintUrl:unit>) │
├─────────────────────────────────────────┤
│ cdk-flutter (FFI) │
│ flutter_rust_bridge v2.11.1 │
├─────────────────────────────────────────┤
│ Rust Core (CDK) │
│ Cashu 0.13.4 + SQLite + Bitcoin │
└─────────────────────────────────────────┘
```
### Project Structure
```
elcaju/
├── lib/
│ ├── main.dart # Entry point
│ ├── core/
│ │ ├── constants/ # Colors, dimensions
│ │ ├── theme/ # App theme
│ │ └── utils/ # Formatters, validators
│ ├── providers/
│ │ ├── wallet_provider.dart # Wallet logic
│ │ └── settings_provider.dart# Preferences and PIN
│ ├── screens/
│ │ ├── 1_splash/ # Loading screen
│ │ ├── 2_onboarding/ # Create/restore wallet
│ │ ├── 3_home/ # Main screen
│ │ ├── 4_receive/ # Receive tokens
│ │ ├── 5_send/ # Send tokens
│ │ ├── 6_mint/ # Deposit via Lightning
│ │ ├── 7_melt/ # Withdraw to Lightning
│ │ └── 8_settings/ # Settings
│ ├── widgets/
│ │ ├── common/ # Buttons, cards, etc.
│ │ └── effects/ # Confetti and animations
│ └── l10n/ # Translations ES/EN
└── assets/
└── img/ # Logo and assets
```
---
## 🔐 Security
| Feature | Implementation |
|---------|----------------|
| **Seed Phrase** | Stored with Flutter Secure Storage (native encryption) |
| **PIN** | Secure hash, local verification |
| **Local Data** | SQLite with proofs encrypted by Cashu protocol |
| **No Tracking** | We don't collect user data |
| **Open Source** | 100% auditable |
### Important
> ⚠️ **Backup your seed phrase (12 words)**. Without it, you won't be able to recover your funds if you lose your device.
---
## 📱 Compatibility
| Platform | Status | Minimum Version |
|----------|--------|-----------------|
| ✅ Android | Supported | API 24 (Android 7.0) |
| 🚧 iOS | Coming soon | iOS 12.0+ |
| 🚧 Web | Coming soon | - |
---
## 🌐 Default Mint
ElCaju comes preconfigured with the Cuba Bitcoin mint:
```
https://mint.cubabitcoin.org
```
You can add other Cashu mints from the settings.
---
## 🤝 Contributing
Contributions are welcome!
1. Fork the repository
2. Create a branch for your feature (`git checkout -b feature/new-feature`)
3. Commit your changes (`git commit -m 'Add new feature'`)
4. Push to the branch (`git push origin feature/new-feature`)
5. Open a Pull Request
### Report Bugs
Open an [issue](https://github.com/Forte11Cuba/elcaju/issues) with:
- Problem description
- Steps to reproduce
- Android version/device
- Relevant logs
---
## 📄 License
This project is under the MIT License - see the [LICENSE](LICENSE) file for more details.
---
## 🙏 Credits
- **[Cashu](https://cashu.space)** - Ecash protocol
- **[cdk-flutter](https://github.com/cashubtc/cdk_flutter)** - Cashu Development Kit
- **[Cashu4Community](https://cashu4community.xyz)** - Global Cashu community
- **[Cuba Bitcoin](https://cubabitcoin.org)** - Cuban Bitcoin community
---
<p align="center">
<strong>Made with 🧡 by <a href="https://github.com/Forte11Cuba">Forte11</a></strong>
</p>
<p align="center">
<a href="https://cashu4community.xyz">Cashu4Community</a> •
<a href="https://cubabitcoin.org">Cuba Bitcoin</a> •
<a href="https://elcaju.me">elcaju.me</a>
</p>
+41
View File
@@ -0,0 +1,41 @@
plugins {
id "com.android.application"
id "kotlin-android"
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id "dev.flutter.flutter-gradle-plugin"
}
android {
namespace "me.elcaju"
compileSdk flutter.compileSdkVersion
ndkVersion "27.0.12077973"
compileOptions {
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}
defaultConfig {
applicationId "me.elcaju"
minSdkVersion flutter.minSdkVersion // Required for FlutterSecureStorage (EncryptedSharedPreferences)
targetSdk flutter.targetSdkVersion
versionCode flutter.versionCode
versionName flutter.versionName
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig signingConfigs.debug
}
}
}
flutter {
source "../.."
}
-43
View File
@@ -1,43 +0,0 @@
plugins {
id("com.android.application")
id("kotlin-android")
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id("dev.flutter.flutter-gradle-plugin")
}
android {
namespace = "org.cubabitcoin.elcaju"
compileSdk = flutter.compileSdkVersion
ndkVersion = "27.0.12077973"
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_11.toString()
}
defaultConfig {
applicationId = "org.cubabitcoin.elcaju"
// You can update the following values to match your application needs.
// For more information, see: https://flutter.dev/to/review-gradle-config.
minSdk = flutter.minSdkVersion
targetSdk = flutter.targetSdkVersion
versionCode = flutter.versionCode
versionName = flutter.versionName
}
buildTypes {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.getByName("debug")
}
}
}
flutter {
source = "../.."
}
+26 -1
View File
@@ -1,6 +1,18 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Permisos de red requeridos para conectar con mints Cashu -->
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<!-- Permiso de cámara para escanear QR codes -->
<uses-permission android:name="android.permission.CAMERA"/>
<!-- Cámara opcional: la app funciona sin ella (pegando desde portapapeles) -->
<uses-feature android:name="android.hardware.camera" android:required="false"/>
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false"/>
<!-- NFC para compartir tokens Cashu -->
<uses-permission android:name="android.permission.NFC"/>
<uses-feature android:name="android.hardware.nfc" android:required="false"/>
<application
android:label="elcaju"
android:label="ElCaju"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
<activity
@@ -25,6 +37,19 @@
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<!-- HCE service: phone emulates NFC tag for phone-to-phone transfers -->
<service
android:name=".NfcHceService"
android:exported="true"
android:permission="android.permission.BIND_NFC_SERVICE">
<intent-filter>
<action android:name="android.nfc.cardemulation.action.HOST_APDU_SERVICE" />
</intent-filter>
<meta-data
android:name="android.nfc.cardemulation.host_apdu_service"
android:resource="@xml/hce_nfc" />
</service>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
@@ -1,5 +0,0 @@
package com.example.elcaju
import io.flutter.embedding.android.FlutterActivity
class MainActivity : FlutterActivity()
@@ -0,0 +1,60 @@
package me.elcaju
import android.content.ComponentName
import android.nfc.NfcAdapter
import android.nfc.cardemulation.CardEmulation
import android.util.Log
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.plugin.common.MethodChannel
class MainActivity : FlutterActivity() {
private val CHANNEL = "me.elcaju/nfc_hce"
override fun configureFlutterEngine(flutterEngine: FlutterEngine) {
super.configureFlutterEngine(flutterEngine)
MethodChannel(flutterEngine.dartExecutor.binaryMessenger, CHANNEL).setMethodCallHandler { call, result ->
when (call.method) {
"setPayload" -> {
val payload = call.argument<ByteArray>("payload")
NfcHceService.ndefPayload = payload
// Force Android to route the NDEF AID to our service
// instead of manufacturer services (Xiaomi Mi Share, etc.)
try {
val adapter = NfcAdapter.getDefaultAdapter(this)
if (adapter != null) {
val cardEmulation = CardEmulation.getInstance(adapter)
cardEmulation.setPreferredService(
this,
ComponentName(this, NfcHceService::class.java)
)
}
} catch (e: Exception) {
Log.w("MainActivity", "setPreferredService failed (non-critical)", e)
}
result.success(true)
}
"clearPayload" -> {
NfcHceService.ndefPayload = null
// Release preferred service routing
try {
val adapter = NfcAdapter.getDefaultAdapter(this)
if (adapter != null) {
val cardEmulation = CardEmulation.getInstance(adapter)
cardEmulation.unsetPreferredService(this)
}
} catch (e: Exception) {
Log.w("MainActivity", "unsetPreferredService failed (non-critical)", e)
}
result.success(true)
}
else -> result.notImplemented()
}
}
}
}
@@ -0,0 +1,140 @@
package me.elcaju
import android.nfc.cardemulation.HostApduService
import android.os.Bundle
import android.util.Log
/**
* Host Card Emulation service that makes the phone act as an NFC Forum Type 4 tag.
* Another phone in reader mode can tap and read the NDEF message we serve.
*
* The payload is set from Flutter via MainActivity's MethodChannel.
*/
class NfcHceService : HostApduService() {
companion object {
private const val TAG = "NfcHceService"
// Shared payload - set by Flutter via MethodChannel
@Volatile
var ndefPayload: ByteArray? = null
private val OK = byteArrayOf(0x90.toByte(), 0x00.toByte())
private val NOT_FOUND = byteArrayOf(0x6A.toByte(), 0x82.toByte())
// Capability Container (CC) file - fixed structure
// MLe=0xFF (255), MLc=0xFF (255), max NDEF=0x70FF (28671)
// Compatible with Numo
private val CC_FILE = byteArrayOf(
0x00, 0x0F, // CC length (15)
0x20, // Mapping version 2.0
0x00, 0xFF.toByte(), // MLe: max read 255 bytes
0x00, 0xFF.toByte(), // MLc: max write 255 bytes
0x04, 0x06, // NDEF File Control TLV
0xE1.toByte(), 0x04, // NDEF file ID
0x70, 0xFF.toByte(), // Max NDEF size: 28671 bytes
0x00, // Read access: open
0xFF.toByte() // Write access: denied
)
}
private var selectedFile: String = "none"
private var ndefFileCache: ByteArray? = null
override fun processCommandApdu(commandApdu: ByteArray, extras: Bundle?): ByteArray {
if (commandApdu.size < 4) return NOT_FOUND
val ins = commandApdu[1]
// SELECT command
if (ins == 0xA4.toByte()) {
return handleSelect(commandApdu)
}
// READ BINARY command
if (ins == 0xB0.toByte()) {
return handleRead(commandApdu)
}
return NOT_FOUND
}
private fun handleSelect(apdu: ByteArray): ByteArray {
// Select ElCaju proprietary AID (F04543414A5500)
// Avoids conflicts with Xiaomi Mi Share / Samsung Beam
if (apdu.size >= 12 && apdu[5] == 0xF0.toByte() && apdu[6] == 0x45.toByte()) {
selectedFile = "app"
Log.d(TAG, "Selected ElCaju Application (proprietary AID)")
return OK
}
// Select NDEF Application (AID: D2760000850101)
if (apdu.size >= 12 && apdu[5] == 0xD2.toByte() && apdu[6] == 0x76.toByte()) {
selectedFile = "app"
Log.d(TAG, "Selected NDEF Application")
return OK
}
// Select by file ID
if (apdu.size >= 7) {
val fileId = ((apdu[5].toInt() and 0xFF) shl 8) or (apdu[6].toInt() and 0xFF)
when (fileId) {
0xE103 -> {
selectedFile = "cc"
Log.d(TAG, "Selected CC file")
return OK
}
0xE104 -> {
selectedFile = "ndef"
// Cache the NDEF file when selected
val payload = ndefPayload
if (payload != null) {
val file = ByteArray(2 + payload.size)
file[0] = (payload.size shr 8).toByte()
file[1] = (payload.size and 0xFF).toByte()
System.arraycopy(payload, 0, file, 2, payload.size)
ndefFileCache = file
Log.d(TAG, "Selected NDEF file (${payload.size} bytes payload)")
} else {
ndefFileCache = null
Log.w(TAG, "Selected NDEF file but no payload set")
}
return OK
}
}
}
return NOT_FOUND
}
private fun handleRead(apdu: ByteArray): ByteArray {
if (apdu.size < 5) return NOT_FOUND
val offset = ((apdu[2].toInt() and 0xFF) shl 8) or (apdu[3].toInt() and 0xFF)
// Le=0x00 means 256 bytes in short APDU encoding
var length = apdu[4].toInt() and 0xFF
if (length == 0) length = 256
val data = when (selectedFile) {
"cc" -> CC_FILE
"ndef" -> ndefFileCache ?: return NOT_FOUND
else -> return NOT_FOUND
}
if (offset >= data.size) {
Log.w(TAG, "Read offset $offset beyond data size ${data.size}")
return NOT_FOUND
}
val end = minOf(offset + length, data.size)
val response = data.copyOfRange(offset, end)
Log.d(TAG, "Read $selectedFile: offset=$offset len=$length returned=${response.size} bytes")
return response + OK
}
override fun onDeactivated(reason: Int) {
Log.d(TAG, "Deactivated (reason=$reason)")
selectedFile = "none"
ndefFileCache = null
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 188 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 536 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 786 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 B

@@ -1,12 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="?android:colorBackground" />
<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
<item>
<bitmap android:gravity="fill" android:src="@drawable/background"/>
</item>
<item>
<bitmap android:gravity="center" android:src="@drawable/splash"/>
</item>
</layer-list>
Binary file not shown.

After

Width:  |  Height:  |  Size: 300 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 300 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 536 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 536 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 786 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 786 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 B

@@ -1,12 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@android:color/white" />
<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
<item>
<bitmap android:gravity="fill" android:src="@drawable/background"/>
</item>
<item>
<bitmap android:gravity="center" android:src="@drawable/splash"/>
</item>
</layer-list>
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground>
<inset
android:drawable="@drawable/ic_launcher_foreground"
android:inset="16%" />
</foreground>
</adaptive-icon>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 544 B

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 442 B

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 721 B

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 20 KiB

@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is on -->
<style name="LaunchTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:forceDarkAllowed">false</item>
<item name="android:windowFullscreen">false</item>
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
<item name="android:windowSplashScreenBackground">#1A0B2E</item>
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Black.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>
@@ -5,6 +5,10 @@
<!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
<item name="android:forceDarkAllowed">false</item>
<item name="android:windowFullscreen">false</item>
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- Theme applied to the Android Window while the process is starting when the OS's Dark Mode setting is off -->
<style name="LaunchTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:forceDarkAllowed">false</item>
<item name="android:windowFullscreen">false</item>
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
<item name="android:windowSplashScreenBackground">#1A0B2E</item>
<item name="android:windowSplashScreenAnimatedIcon">@drawable/android12splash</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
Flutter UI initializes, as well as behind your Flutter UI while its
running.
This Theme is only used starting with V2 of Flutter's Android embedding. -->
<style name="NormalTheme" parent="@android:style/Theme.Light.NoTitleBar">
<item name="android:windowBackground">?android:colorBackground</item>
</style>
</resources>
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#1A0B2E</color>
</resources>
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="hce_description">ElCaju NFC</string>
</resources>
@@ -5,6 +5,10 @@
<!-- Show a splash screen on the activity. Automatically removed when
the Flutter engine draws its first frame -->
<item name="android:windowBackground">@drawable/launch_background</item>
<item name="android:forceDarkAllowed">false</item>
<item name="android:windowFullscreen">false</item>
<item name="android:windowDrawsSystemBarBackgrounds">false</item>
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
</style>
<!-- Theme applied to the Android Window as soon as the process has started.
This theme determines the color of the Android Window while your
+12
View File
@@ -0,0 +1,12 @@
<host-apdu-service xmlns:android="http://schemas.android.com/apk/res/android"
android:description="@string/hce_description"
android:requireDeviceUnlock="false">
<aid-group
android:category="other"
android:description="@string/hce_description">
<!-- ElCaju proprietary AID (avoids Xiaomi/Samsung NFC service conflicts) -->
<aid-filter android:name="F04543414A5500" />
<!-- NDEF Tag Application AID (NFC Forum Type 4) -->
<aid-filter android:name="D2760000850101" />
</aid-group>
</host-apdu-service>
@@ -5,17 +5,18 @@ allprojects {
}
}
val newBuildDir: Directory = rootProject.layout.buildDirectory.dir("../../build").get()
def newBuildDir = rootProject.layout.buildDirectory.dir("../../build").get()
rootProject.layout.buildDirectory.value(newBuildDir)
subprojects {
val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name)
def newSubprojectBuildDir = newBuildDir.dir(project.name)
project.layout.buildDirectory.value(newSubprojectBuildDir)
}
subprojects {
project.evaluationDependsOn(":app")
}
tasks.register<Delete>("clean") {
delete(rootProject.layout.buildDirectory)
tasks.register("clean", Delete) {
delete rootProject.layout.buildDirectory
}
+25
View File
@@ -0,0 +1,25 @@
pluginManagement {
def flutterSdkPath = {
def properties = new Properties()
file("local.properties").withInputStream { properties.load(it) }
def flutterSdkPath = properties.getProperty("flutter.sdk")
assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
return flutterSdkPath
}()
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
id "com.android.application" version "8.7.3" apply false
id "org.jetbrains.kotlin.android" version "2.1.0" apply false
}
include ":app"
-25
View File
@@ -1,25 +0,0 @@
pluginManagement {
val flutterSdkPath = run {
val properties = java.util.Properties()
file("local.properties").inputStream().use { properties.load(it) }
val flutterSdkPath = properties.getProperty("flutter.sdk")
require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" }
flutterSdkPath
}
includeBuild("$flutterSdkPath/packages/flutter_tools/gradle")
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
}
plugins {
id("dev.flutter.flutter-plugin-loader") version "1.0.0"
id("com.android.application") version "8.7.3" apply false
id("org.jetbrains.kotlin.android") version "2.1.0" apply false
}
include(":app")
Binary file not shown.

After

Width:  |  Height:  |  Size: 197 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 441 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 257 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 283 KiB

+148
View File
@@ -0,0 +1,148 @@
import 'dart:typed_data';
/// Modelo de un proof Cashu local.
/// Representa una "nota" de ecash con una denominación específica.
class LocalProof {
/// Primary key (Y point)
final Uint8List y;
/// URL del mint que emitió este proof
final String mintUrl;
/// Estado del proof
final ProofState state;
/// Unidad (sat, usd, eur)
final String unit;
/// Denominación (1, 2, 4, 8, 16, 32, 64, 128, 256, 512...)
final BigInt amount;
/// ID del keyset
final String keysetId;
/// Secret del proof
final String secret;
/// Signature (C point)
final Uint8List c;
/// Witness (opcional, para P2PK)
final String? witness;
/// DLEQ proof components (opcional)
final Uint8List? dleqE;
final Uint8List? dleqS;
final Uint8List? dleqR;
LocalProof({
required this.y,
required this.mintUrl,
required this.state,
required this.unit,
required this.amount,
required this.keysetId,
required this.secret,
required this.c,
this.witness,
this.dleqE,
this.dleqS,
this.dleqR,
});
/// Crea un LocalProof desde un row de SQLite.
factory LocalProof.fromSqlite(Map<String, dynamic> row) {
return LocalProof(
y: row['y'] as Uint8List,
mintUrl: row['mint_url'] as String,
state: ProofState.fromString(row['state'] as String),
unit: row['unit'] as String,
amount: BigInt.from(row['amount'] as int),
keysetId: row['keyset_id'] as String,
secret: row['secret'] as String,
c: row['c'] as Uint8List,
witness: row['witness'] as String?,
dleqE: row['dleq_e'] as Uint8List?,
dleqS: row['dleq_s'] as Uint8List?,
dleqR: row['dleq_r'] as Uint8List?,
);
}
/// Convierte a formato JSON para token V3.
Map<String, dynamic> toTokenProof() {
final proof = <String, dynamic>{
'id': keysetId,
'amount': amount.toInt(),
'secret': secret,
'C': _bytesToHex(c),
};
// Agregar DLEQ si existe
if (dleqE != null && dleqS != null) {
proof['dleq'] = {
'e': _bytesToHex(dleqE!),
's': _bytesToHex(dleqS!),
if (dleqR != null) 'r': _bytesToHex(dleqR!),
};
}
// Agregar witness si existe
if (witness != null && witness!.isNotEmpty) {
proof['witness'] = witness;
}
return proof;
}
/// Convierte bytes a hex string.
static String _bytesToHex(Uint8List bytes) {
return bytes.map((b) => b.toRadixString(16).padLeft(2, '0')).join();
}
/// Convierte Y a hex para identificación.
String get yHex => _bytesToHex(y);
@override
String toString() => 'LocalProof(amount: $amount, unit: $unit, state: $state)';
}
/// Estados posibles de un proof.
enum ProofState {
unspent,
spent,
pending,
reserved,
pendingSpent;
static ProofState fromString(String s) {
switch (s.toUpperCase()) {
case 'UNSPENT':
return ProofState.unspent;
case 'SPENT':
return ProofState.spent;
case 'PENDING':
return ProofState.pending;
case 'RESERVED':
return ProofState.reserved;
case 'PENDING_SPENT':
return ProofState.pendingSpent;
default:
return ProofState.unspent;
}
}
String toSqlite() {
switch (this) {
case ProofState.unspent:
return 'UNSPENT';
case ProofState.spent:
return 'SPENT';
case ProofState.pending:
return 'PENDING';
case ProofState.reserved:
return 'RESERVED';
case ProofState.pendingSpent:
return 'PENDING_SPENT';
}
}
}
+318
View File
@@ -0,0 +1,318 @@
import 'dart:convert';
import 'package:http/http.dart' as http;
import 'package:bech32/bech32.dart';
/// Tipo de input detectado
enum LnInputType {
bolt11Invoice, // lnbc..., lntb..., lnbcrt...
lnurl, // lnurl1...
lightningAddress, // user@domain.com
unknown,
}
/// Parámetros de LNURL-pay
class LnurlPayParams {
final String callback;
final BigInt minSendable; // millisats
final BigInt maxSendable; // millisats
final String? metadata;
final String? description;
final String? domain;
LnurlPayParams({
required this.callback,
required this.minSendable,
required this.maxSendable,
this.metadata,
this.description,
this.domain,
});
/// Monto mínimo en sats
BigInt get minSats => minSendable ~/ BigInt.from(1000);
/// Monto máximo en sats
BigInt get maxSats => maxSendable ~/ BigInt.from(1000);
/// Verifica si un monto (en sats) está dentro del rango permitido
bool isAmountValid(BigInt amountSats) {
final amountMsats = amountSats * BigInt.from(1000);
return amountMsats >= minSendable && amountMsats <= maxSendable;
}
}
/// Resultado de obtener invoice desde LNURL
class LnurlInvoiceResult {
final String invoice;
final String? successAction;
LnurlInvoiceResult({
required this.invoice,
this.successAction,
});
}
/// Servicio para resolver LNURL y Lightning Address
class LnurlService {
static const _timeout = Duration(seconds: 10);
/// Detecta el tipo de input
static LnInputType detectType(String input) {
final trimmed = input.trim();
final lower = trimmed.toLowerCase();
// Invoice BOLT11
if (lower.startsWith('lnbc') ||
lower.startsWith('lntb') ||
lower.startsWith('lnbcrt') ||
lower.startsWith('lightning:lnbc') ||
lower.startsWith('lightning:lntb') ||
lower.startsWith('lightning:lnbcrt')) {
return LnInputType.bolt11Invoice;
}
// LNURL
if (lower.startsWith('lnurl1') ||
lower.startsWith('lightning:lnurl1')) {
return LnInputType.lnurl;
}
// Lightning Address (user@domain.com)
if (_isLightningAddress(trimmed)) {
return LnInputType.lightningAddress;
}
return LnInputType.unknown;
}
/// Verifica si es una Lightning Address válida
static bool _isLightningAddress(String input) {
// Formato: user@domain.com
if (!input.contains('@')) return false;
final parts = input.split('@');
if (parts.length != 2) return false;
final user = parts[0];
final domain = parts[1];
// Validación básica
if (user.isEmpty || domain.isEmpty) return false;
if (!domain.contains('.')) return false;
// No debe tener espacios
if (user.contains(' ') || domain.contains(' ')) return false;
return true;
}
/// Limpia el input removiendo prefijos
static String cleanInput(String input) {
var cleaned = input.trim();
// Remover prefijo lightning:
if (cleaned.toLowerCase().startsWith('lightning:')) {
cleaned = cleaned.substring(10);
}
return cleaned;
}
/// Decodifica LNURL (bech32) a URL
static String? decodeLnurl(String lnurl) {
try {
final cleaned = cleanInput(lnurl).toLowerCase();
final decoded = const Bech32Codec().decode(cleaned);
if (decoded.hrp != 'lnurl') return null;
// Convertir de 5-bit a 8-bit
final bytes = _convertBits(decoded.data, 5, 8, false);
return utf8.decode(bytes);
} catch (e) {
return null;
}
}
/// Convierte bits (usado para decodificar bech32)
static List<int> _convertBits(List<int> data, int fromBits, int toBits, bool pad) {
var acc = 0;
var bits = 0;
final result = <int>[];
final maxv = (1 << toBits) - 1;
for (final value in data) {
acc = (acc << fromBits) | value;
bits += fromBits;
while (bits >= toBits) {
bits -= toBits;
result.add((acc >> bits) & maxv);
}
}
if (pad && bits > 0) {
result.add((acc << (toBits - bits)) & maxv);
} else if (!pad && (bits >= fromBits || ((acc << (toBits - bits)) & maxv) != 0)) {
throw FormatException('Invalid padding in bech32 conversion');
}
return result;
}
/// Resuelve LNURL a parámetros de pago
static Future<LnurlPayParams> resolveLnurl(String lnurl) async {
final url = decodeLnurl(lnurl);
if (url == null) {
throw Exception('LNURL inválido');
}
return _fetchLnurlPayParams(url);
}
/// Resuelve Lightning Address a parámetros de pago
static Future<LnurlPayParams> resolveLightningAddress(String address) async {
final cleaned = cleanInput(address);
final parts = cleaned.split('@');
if (parts.length != 2) {
throw Exception('Lightning Address inválida');
}
final user = parts[0];
final domain = parts[1];
// Construir URL .well-known/lnurlp
final url = 'https://$domain/.well-known/lnurlp/$user';
return _fetchLnurlPayParams(url, domain: domain);
}
/// Obtiene parámetros LNURL-pay desde URL
static Future<LnurlPayParams> _fetchLnurlPayParams(String url, {String? domain}) async {
try {
final response = await http.get(
Uri.parse(url),
headers: {'Accept': 'application/json'},
).timeout(_timeout);
if (response.statusCode != 200) {
throw Exception('Error HTTP: ${response.statusCode}');
}
final json = jsonDecode(response.body) as Map<String, dynamic>;
// Verificar errores
if (json.containsKey('status') && json['status'] == 'ERROR') {
throw Exception(json['reason'] ?? 'Error desconocido');
}
// Verificar que es LNURL-pay (tag = payRequest)
final tag = json['tag'] as String?;
if (tag != null && tag != 'payRequest') {
throw Exception('No es LNURL-pay (tag: $tag)');
}
// Extraer parámetros
final callback = json['callback'] as String?;
if (callback == null || callback.isEmpty) {
throw Exception('Respuesta LNURL-pay inválida: falta callback');
}
final minRaw = json['minSendable'] as num?;
final maxRaw = json['maxSendable'] as num?;
if (minRaw == null || maxRaw == null) {
throw Exception('Respuesta LNURL-pay inválida: falta minSendable/maxSendable');
}
final minSendable = BigInt.from(minRaw.toInt());
final maxSendable = BigInt.from(maxRaw.toInt());
final metadata = json['metadata'] as String?;
// Extraer descripción del metadata
String? description;
if (metadata != null) {
try {
final metadataList = jsonDecode(metadata) as List;
for (final item in metadataList) {
if (item is List && item.length >= 2 && item[0] == 'text/plain') {
description = item[1] as String;
break;
}
}
} catch (_) {}
}
// Extraer dominio del callback si no se proporcionó
final callbackUri = Uri.parse(callback);
final effectiveDomain = domain ?? callbackUri.host;
return LnurlPayParams(
callback: callback,
minSendable: minSendable,
maxSendable: maxSendable,
metadata: metadata,
description: description,
domain: effectiveDomain,
);
} catch (e) {
if (e is Exception) rethrow;
throw Exception('Error resolviendo LNURL: $e');
}
}
/// Obtiene invoice BOLT11 desde callback LNURL-pay
static Future<LnurlInvoiceResult> fetchInvoice(
String callback,
BigInt amountSats,
) async {
try {
// Convertir a millisats
final amountMsats = amountSats * BigInt.from(1000);
// Construir URL con parámetros
final uri = Uri.parse(callback);
final queryParams = Map<String, String>.from(uri.queryParameters);
queryParams['amount'] = amountMsats.toString();
final requestUri = uri.replace(queryParameters: queryParams);
final response = await http.get(
requestUri,
headers: {'Accept': 'application/json'},
).timeout(_timeout);
if (response.statusCode != 200) {
throw Exception('Error HTTP: ${response.statusCode}');
}
final json = jsonDecode(response.body) as Map<String, dynamic>;
// Verificar errores
if (json.containsKey('status') && json['status'] == 'ERROR') {
throw Exception(json['reason'] ?? 'Error obteniendo invoice');
}
// Extraer invoice
final pr = json['pr'] as String?;
if (pr == null || pr.isEmpty) {
throw Exception('No se recibió invoice');
}
// Success action (opcional)
String? successAction;
if (json.containsKey('successAction')) {
final sa = json['successAction'] as Map<String, dynamic>?;
if (sa != null && sa['message'] != null) {
successAction = sa['message'] as String;
}
}
return LnurlInvoiceResult(
invoice: pr,
successAction: successAction,
);
} catch (e) {
if (e is Exception) rethrow;
throw Exception('Error obteniendo invoice: $e');
}
}
}
+483
View File
@@ -0,0 +1,483 @@
import 'dart:io' show Platform;
import 'dart:typed_data';
import 'package:flutter/services.dart';
import 'package:nfc_manager/nfc_manager.dart';
import 'package:nfc_manager/nfc_manager_android.dart';
import 'package:ndef_record/ndef_record.dart';
/// NFC availability state for UI rendering.
enum NfcState {
/// Device does not have NFC hardware.
unsupported,
/// Device has NFC but it is disabled in settings.
disabled,
/// NFC is supported and enabled.
enabled,
}
/// Service for reading and writing Cashu tokens via NFC.
///
/// Writes tokens as NDEF Text Records for maximum compatibility
/// with cashu.me and Numo. Reads both Text and URI records.
class NfcService {
static const _hceChannel = MethodChannel('me.elcaju/nfc_hce');
// ─── HCE (phone-to-phone) ───
/// Start emulating an NFC tag with the given text payload.
/// The phone will appear as an NFC tag to other devices.
static Future<void> startEmulating(String text) async {
final ndefMessage = _buildNdefTextMessage(text);
await _hceChannel.invokeMethod('setPayload', {'payload': ndefMessage});
}
/// Stop emulating an NFC tag.
static Future<void> stopEmulating() async {
await _hceChannel.invokeMethod('clearPayload');
}
/// Build an NDEF message with a Text Record.
/// Uses Short Record (SR) for payloads ≤ 255 bytes,
/// Long Record for > 255 bytes (compatible with Numo).
static Uint8List _buildNdefTextMessage(String text) {
final textBytes = Uint8List.fromList(text.codeUnits);
final languageCode = Uint8List.fromList('en'.codeUnits);
// NDEF Text Record payload: [status byte][lang code][text]
final recordPayload = Uint8List(1 + languageCode.length + textBytes.length);
recordPayload[0] = languageCode.length;
recordPayload.setRange(1, 1 + languageCode.length, languageCode);
recordPayload.setRange(1 + languageCode.length, recordPayload.length, textBytes);
final payloadLength = recordPayload.length;
final isShortRecord = payloadLength <= 255;
if (isShortRecord) {
// Short Record: flags(1) + typeLen(1) + payloadLen(1) + type(1) + payload
final record = Uint8List(4 + payloadLength);
record[0] = 0xD1; // MB|ME|SR|TNF=well-known
record[1] = 1; // type length
record[2] = payloadLength;
record[3] = 0x54; // 'T'
record.setRange(4, 4 + payloadLength, recordPayload);
return record;
} else {
// Long Record: flags(1) + typeLen(1) + payloadLen(4) + type(1) + payload
final record = Uint8List(7 + payloadLength);
record[0] = 0xC1; // MB|ME|TNF=well-known (no SR flag)
record[1] = 1; // type length
record[2] = (payloadLength >> 24) & 0xFF;
record[3] = (payloadLength >> 16) & 0xFF;
record[4] = (payloadLength >> 8) & 0xFF;
record[5] = payloadLength & 0xFF;
record[6] = 0x54; // 'T'
record.setRange(7, 7 + payloadLength, recordPayload);
return record;
}
}
// ─── Tag read/write ───
/// Check NFC state on the device.
static Future<NfcState> checkState() async {
if (!Platform.isAndroid) return NfcState.unsupported;
try {
final availability = await NfcManager.instance.checkAvailability();
return switch (availability) {
NfcAvailability.enabled => NfcState.enabled,
NfcAvailability.disabled => NfcState.disabled,
NfcAvailability.unsupported => NfcState.unsupported,
};
} catch (_) {
return NfcState.unsupported;
}
}
/// Write a Cashu token to an NFC tag as NDEF Text Record.
static Future<void> startWrite({
required String token,
required void Function() onSuccess,
required void Function(String error) onError,
}) async {
try {
await NfcManager.instance.startSession(
pollingOptions: {NfcPollingOption.iso14443},
onDiscovered: (NfcTag tag) async {
final ndef = NdefAndroid.from(tag);
if (ndef == null || !ndef.isWritable) {
onError('Tag is not writable');
await NfcManager.instance.stopSession();
return;
}
// Build NDEF Text Record: [status byte][language code][text]
final textBytes = Uint8List.fromList(token.codeUnits);
final languageCode = Uint8List.fromList('en'.codeUnits);
final payload = Uint8List(1 + languageCode.length + textBytes.length);
payload[0] = languageCode.length; // status byte (UTF-8, no length)
payload.setRange(1, 1 + languageCode.length, languageCode);
payload.setRange(1 + languageCode.length, payload.length, textBytes);
// Check size
if (payload.length + 7 > ndef.maxSize) {
onError('Token too large for this NFC tag '
'(${payload.length + 7}B > ${ndef.maxSize}B)');
await NfcManager.instance.stopSession();
return;
}
try {
final message = NdefMessage(records: [
NdefRecord(
typeNameFormat: TypeNameFormat.wellKnown,
type: Uint8List.fromList([0x54]), // 'T' = Text Record
identifier: Uint8List(0),
payload: payload,
),
]);
await ndef.writeNdefMessage(message);
onSuccess();
await NfcManager.instance.stopSession();
} catch (e) {
onError(e.toString());
await NfcManager.instance.stopSession();
}
},
);
} catch (e) {
onError(e.toString());
}
}
/// Stop any active NFC session.
static Future<void> stopWrite() async {
await NfcManager.instance.stopSession();
}
/// Start reading NFC tags for Cashu tokens.
/// Tries IsoDep APDU first (phone-to-phone HCE, bypasses manufacturer
/// NFC services), falls back to NDEF (physical tags).
static Future<void> startRead({
required void Function(String token) onTokenRead,
required void Function(String error) onError,
}) async {
try {
await NfcManager.instance.startSession(
pollingOptions: {NfcPollingOption.iso14443},
onDiscovered: (NfcTag tag) async {
try {
final diagnostics = <String>[];
// 1. Try IsoDep first (HCE phone-to-phone)
final isoDep = IsoDepAndroid.from(tag);
if (isoDep != null) {
final (token, isoInfo) = await _readViaIsoDep(isoDep);
if (token != null) {
onTokenRead(token);
await NfcManager.instance.stopSession();
return;
}
diagnostics.add('IsoDep: $isoInfo');
} else {
diagnostics.add('IsoDep: not available');
}
// 2. Fallback: NDEF (physical tags)
final ndef = NdefAndroid.from(tag);
if (ndef != null) {
final message = ndef.cachedNdefMessage ?? await ndef.getNdefMessage();
if (message != null) {
final token = _extractToken(message);
if (token != null) {
onTokenRead(token);
await NfcManager.instance.stopSession();
return;
}
diagnostics.add('NDEF: ${message.records.length} records, no Cashu token');
} else {
diagnostics.add('NDEF: no message');
}
} else {
diagnostics.add('NDEF: not available');
}
onError('No Cashu token found [${diagnostics.join('; ')}]');
await NfcManager.instance.stopSession();
} catch (e) {
onError(e.toString());
await NfcManager.instance.stopSession();
}
},
);
} catch (e) {
onError(e.toString());
}
}
/// Read NDEF from HCE via IsoDep APDU commands (like Numo).
/// Bypasses manufacturer NFC services (Xiaomi, Samsung, etc).
/// Returns (token, diagnosticInfo) tuple.
static Future<(String?, String)> _readViaIsoDep(IsoDepAndroid isoDep) async {
String _hex(Uint8List bytes) =>
bytes.map((b) => b.toRadixString(16).padLeft(2, '0')).join(' ');
try {
// Set longer timeout (5s) to avoid TagLostException
await isoDep.setTimeout(5000);
// Try ElCaju proprietary AID first (avoids Xiaomi/Samsung conflicts)
final selectElCaju = await isoDep.transceive(Uint8List.fromList([
0x00, 0xA4, 0x04, 0x00, 0x07,
0xF0, 0x45, 0x43, 0x41, 0x4A, 0x55, 0x00,
0x00,
]));
final bool elCajuSelected = _isOk(selectElCaju);
// Fallback: standard NDEF Application AID
if (!elCajuSelected) {
final selectApp = await isoDep.transceive(Uint8List.fromList([
0x00, 0xA4, 0x04, 0x00, 0x07,
0xD2, 0x76, 0x00, 0x00, 0x85, 0x01, 0x01,
0x00,
]));
if (!_isOk(selectApp)) {
return (null, 'SELECT APP failed (both AIDs): elcaju=${_hex(selectElCaju)}, ndef=${_hex(selectApp)}');
}
}
// SELECT NDEF file (E104)
final selectNdef = await isoDep.transceive(Uint8List.fromList([
0x00, 0xA4, 0x00, 0x0C, 0x02,
0xE1, 0x04,
]));
if (!_isOk(selectNdef)) {
return (null, 'SELECT NDEF failed: ${_hex(selectNdef)}');
}
// READ NLEN (first 2 bytes)
final nlenResponse = await isoDep.transceive(Uint8List.fromList([
0x00, 0xB0, 0x00, 0x00, 0x02,
]));
if (nlenResponse.length < 4 || !_isOk(nlenResponse)) {
return (null, 'READ NLEN failed: ${_hex(nlenResponse)}');
}
final ndefLen = (nlenResponse[0] << 8) | nlenResponse[1];
if (ndefLen == 0) {
return (null, 'NLEN=0 (no payload set on emitter)');
}
// READ NDEF message in chunks (max 255 bytes per read)
final ndefBytes = BytesBuilder();
var offset = 2; // skip NLEN
var remaining = ndefLen;
while (remaining > 0) {
final chunkSize = remaining > 255 ? 255 : remaining;
final readCmd = Uint8List.fromList([
0x00, 0xB0,
(offset >> 8) & 0xFF,
offset & 0xFF,
chunkSize,
]);
final chunk = await isoDep.transceive(readCmd);
if (chunk.length < 2 || !_isOk(chunk)) {
return (null, 'READ chunk at offset=$offset failed: ${_hex(chunk)}');
}
// Response = data + SW1 SW2 (last 2 bytes are status)
final bytesRead = chunk.length - 2;
if (bytesRead == 0) {
return (null, 'READ chunk at offset=$offset returned no data');
}
ndefBytes.add(chunk.sublist(0, bytesRead));
offset += bytesRead;
remaining -= bytesRead;
}
// Parse NDEF message from raw bytes
final raw = ndefBytes.toBytes();
if (raw.isEmpty) {
return (null, 'read ${ndefLen}B but empty after parsing');
}
final token = _parseNdefAndExtractToken(Uint8List.fromList(raw));
if (token != null) {
return (token, 'OK');
}
return (null, 'NDEF parsed (${raw.length}B) but no Cashu token, hex: ${_hex(Uint8List.fromList(raw.length > 40 ? raw.sublist(0, 40) : raw))}...');
} catch (e) {
final msg = e.toString();
if (msg.contains('TagLostException')) {
return (null, 'connection lost (hold phones together longer)');
}
return (null, 'error: $msg');
}
}
/// Check if APDU response ends with 90 00 (OK).
static bool _isOk(Uint8List response) {
if (response.length < 2) return false;
return response[response.length - 2] == 0x90 &&
response[response.length - 1] == 0x00;
}
/// Parse raw NDEF bytes and extract Cashu token.
static String? _parseNdefAndExtractToken(Uint8List raw) {
if (raw.isEmpty) return null;
var pos = 0;
while (pos < raw.length) {
if (pos + 3 > raw.length) break;
final flags = raw[pos];
final tnf = flags & 0x07;
final isShortRecord = (flags & 0x10) != 0;
final hasIdLength = (flags & 0x08) != 0;
pos++;
final typeLength = raw[pos]; pos++;
int payloadLength;
if (isShortRecord) {
payloadLength = raw[pos]; pos++;
} else {
if (pos + 4 > raw.length) break;
payloadLength = (raw[pos] << 24) | (raw[pos+1] << 16) |
(raw[pos+2] << 8) | raw[pos+3];
pos += 4;
}
int idLength = 0;
if (hasIdLength) {
idLength = raw[pos]; pos++;
}
// Type
if (pos + typeLength > raw.length) break;
final type = raw.sublist(pos, pos + typeLength); pos += typeLength;
// ID (skip)
pos += idLength;
// Payload
if (pos + payloadLength > raw.length) break;
final payload = raw.sublist(pos, pos + payloadLength);
pos += payloadLength;
// Check: Text Record (TNF=0x01, type='T')
if (tnf == 0x01 && typeLength == 1 && type[0] == 0x54) {
if (payload.isNotEmpty) {
final langLen = payload[0] & 0x3F;
if (payload.length > 1 + langLen) {
final text = String.fromCharCodes(payload.sublist(1 + langLen));
if (_isCashuToken(text)) return text;
}
}
}
// Check: URI Record (TNF=0x01, type='U')
if (tnf == 0x01 && typeLength == 1 && type[0] == 0x55) {
if (payload.isNotEmpty) {
const prefixes = ['', 'http://www.', 'https://www.', 'http://', 'https://'];
final prefixIdx = payload[0];
final prefix = prefixIdx < prefixes.length ? prefixes[prefixIdx] : '';
final rest = String.fromCharCodes(payload.sublist(1));
final uri = '$prefix$rest';
final token = _extractTokenFromUri(uri);
if (token != null) return token;
}
}
// If ME (Message End) flag set, stop
if ((flags & 0x40) != 0) break;
}
return null;
}
/// Stop any active NFC read session.
static Future<void> stopRead() async {
await NfcManager.instance.stopSession();
}
/// Extract a Cashu token from an NDEF message.
static String? _extractToken(NdefMessage message) {
for (final record in message.records) {
// Text Record
if (record.typeNameFormat == TypeNameFormat.wellKnown &&
record.type.length == 1 &&
record.type[0] == 0x54) {
final text = _decodeTextRecord(record);
if (text != null && _isCashuToken(text)) {
return text;
}
}
// URI Record
if (record.typeNameFormat == TypeNameFormat.wellKnown &&
record.type.length == 1 &&
record.type[0] == 0x55) {
final uri = _decodeUriRecord(record);
if (uri != null) {
final token = _extractTokenFromUri(uri);
if (token != null) return token;
}
}
}
return null;
}
/// Decode NDEF Text Record payload.
static String? _decodeTextRecord(NdefRecord record) {
if (record.payload.isEmpty) return null;
final languageCodeLength = record.payload[0] & 0x3F;
if (record.payload.length <= 1 + languageCodeLength) return null;
return String.fromCharCodes(
record.payload.sublist(1 + languageCodeLength));
}
/// Decode NDEF URI Record payload.
static String? _decodeUriRecord(NdefRecord record) {
if (record.payload.isEmpty) return null;
const prefixes = [
'', // 0x00
'http://www.', // 0x01
'https://www.', // 0x02
'http://', // 0x03
'https://', // 0x04
];
final prefixIndex = record.payload[0];
final prefix = prefixIndex < prefixes.length ? prefixes[prefixIndex] : '';
final rest = String.fromCharCodes(record.payload.sublist(1));
return '$prefix$rest';
}
/// Extract token from a URL like https://wallet.com/#token=cashuA...
static String? _extractTokenFromUri(String uri) {
try {
final parsed = Uri.parse(uri);
final fragmentParams = Uri.splitQueryString(parsed.fragment);
final fragmentToken = fragmentParams['token'];
if (fragmentToken != null && _isCashuToken(fragmentToken)) {
return fragmentToken;
}
final tokenParam = parsed.queryParameters['token'];
if (tokenParam != null && _isCashuToken(tokenParam)) {
return tokenParam;
}
} catch (_) {}
return null;
}
/// Check if a string looks like a Cashu token.
static bool _isCashuToken(String text) {
final lower = text.toLowerCase().trim();
return lower.startsWith('cashua') ||
lower.startsWith('cashub') ||
lower.startsWith('creqa');
}
}
+89
View File
@@ -0,0 +1,89 @@
import 'dart:convert';
import 'package:http/http.dart' as http;
/// Servicio para obtener precios de Bitcoin usando Yadio API
class PriceService {
static const _baseUrl = 'https://api.yadio.io';
static const _timeout = Duration(seconds: 10);
/// Obtiene el precio de BTC en una moneda fiat (USD, EUR, etc.)
/// Retorna el precio de 1 BTC en la moneda especificada
static Future<double> getBtcPrice(String currency) async {
try {
// /rate/{quote}/{base} - retorna cuánto del quote por 1 base
// /rate/USD/BTC retorna cuántos USD por 1 BTC
final response = await http.get(
Uri.parse('$_baseUrl/rate/${currency.toUpperCase()}/BTC'),
).timeout(_timeout);
if (response.statusCode != 200) {
throw Exception('Error HTTP: ${response.statusCode}');
}
final json = jsonDecode(response.body) as Map<String, dynamic>;
final rate = json['rate'];
if (rate == null) {
throw Exception('Precio no disponible');
}
return (rate as num).toDouble();
} catch (e) {
throw Exception('Error obteniendo precio BTC: $e');
}
}
/// Convierte una cantidad de una moneda a otra
/// Ejemplo: convert(2.50, 'USD', 'BTC') -> 0.0000244
static Future<double> convert(double amount, String from, String to) async {
try {
final response = await http.get(
Uri.parse('$_baseUrl/convert/$amount/${from.toUpperCase()}/${to.toUpperCase()}'),
).timeout(_timeout);
if (response.statusCode != 200) {
throw Exception('Error HTTP: ${response.statusCode}');
}
final json = jsonDecode(response.body) as Map<String, dynamic>;
final result = json['result'];
if (result == null) {
throw Exception('Conversión no disponible');
}
return (result as num).toDouble();
} catch (e) {
throw Exception('Error en conversión: $e');
}
}
/// Convierte cantidad en unidad fiat (centavos) a sats
/// Ejemplo: 250 cents USD -> X sats
static Future<BigInt> fiatCentsToSats(BigInt cents, String fiatCurrency) async {
// Convertir centavos a unidad mayor (ej: 250 cents -> 2.50 USD)
final fiatAmount = cents.toDouble() / 100;
// Obtener precio BTC en fiat
final btcPrice = await getBtcPrice(fiatCurrency);
// Calcular BTC y luego sats
final btcAmount = fiatAmount / btcPrice;
final sats = (btcAmount * 100000000).round();
return BigInt.from(sats);
}
/// Convierte sats a cantidad en unidad fiat (centavos)
static Future<BigInt> satsToFiatCents(BigInt sats, String fiatCurrency) async {
// Obtener precio BTC en fiat
final btcPrice = await getBtcPrice(fiatCurrency);
// Calcular fiat amount
final btcAmount = sats.toDouble() / 100000000;
final fiatAmount = btcAmount * btcPrice;
// Retornar en centavos
return BigInt.from((fiatAmount * 100).round());
}
}
+181
View File
@@ -0,0 +1,181 @@
import 'dart:convert';
import 'dart:io';
import 'package:flutter/foundation.dart';
import 'package:path_provider/path_provider.dart';
import 'package:sqflite_common_ffi/sqflite_ffi.dart';
import '../models/proof.dart';
/// Servicio para acceder a los proofs locales en SQLite.
/// Permite leer proofs, crear tokens offline y actualizar estados.
class ProofService {
Database? _db;
static bool _ffiInitialized = false;
/// Inicializa sqflite FFI para plataformas desktop (Linux, Windows, macOS).
static void _initFfiIfNeeded() {
if (_ffiInitialized) return;
if (Platform.isLinux || Platform.isWindows || Platform.isMacOS) {
sqfliteFfiInit();
databaseFactory = databaseFactoryFfi;
debugPrint('sqflite FFI initialized for desktop');
}
_ffiInitialized = true;
}
/// Obtiene la instancia de la base de datos.
Future<Database> get database async {
if (_db != null) return _db!;
// Inicializar FFI para desktop
_initFfiIfNeeded();
final dir = await getApplicationDocumentsDirectory();
final dbPath = '${dir.path}/elcaju_wallet.sqlite';
_db = await openDatabase(dbPath);
return _db!;
}
/// Obtiene todos los proofs UNSPENT de un mint y unidad específicos.
/// Ordenados de mayor a menor denominación.
Future<List<LocalProof>> getUnspentProofs({
required String mintUrl,
required String unit,
}) async {
final db = await database;
final rows = await db.query(
'proof',
where: 'mint_url = ? AND unit = ? AND state = ?',
whereArgs: [mintUrl, unit, 'UNSPENT'],
orderBy: 'amount DESC',
);
return rows.map((row) => LocalProof.fromSqlite(row)).toList();
}
/// Agrupa proofs por denominación.
/// Retorna Map ordenado de mayor a menor.
Map<BigInt, List<LocalProof>> groupByDenomination(List<LocalProof> proofs) {
final grouped = <BigInt, List<LocalProof>>{};
for (final proof in proofs) {
grouped.putIfAbsent(proof.amount, () => []).add(proof);
}
// Ordenar por denominación descendente
final sorted = Map.fromEntries(
grouped.entries.toList()..sort((a, b) => b.key.compareTo(a.key)),
);
return sorted;
}
/// Calcula el total de proofs seleccionados.
BigInt calculateTotal(List<LocalProof> proofs) {
return proofs.fold(BigInt.zero, (sum, p) => sum + p.amount);
}
/// Selecciona proofs que sumen exactamente el monto.
/// Retorna null si no hay combinación exacta.
List<LocalProof>? selectExactProofs(
List<LocalProof> available,
BigInt targetAmount,
) {
final selected = <LocalProof>[];
var remaining = targetAmount;
// Ordenar de mayor a menor
final sorted = List<LocalProof>.from(available)
..sort((a, b) => b.amount.compareTo(a.amount));
// Greedy selection
for (final proof in sorted) {
if (remaining >= proof.amount) {
selected.add(proof);
remaining -= proof.amount;
}
if (remaining == BigInt.zero) break;
}
return remaining == BigInt.zero ? selected : null;
}
/// Marca proofs como PENDING_SPENT en la base de datos.
Future<void> markProofsPendingSpent(List<LocalProof> proofs) async {
final db = await database;
await db.transaction((txn) async {
for (final proof in proofs) {
await txn.update(
'proof',
{'state': 'PENDING_SPENT'},
where: 'y = ?',
whereArgs: [proof.y],
);
}
});
debugPrint('Marked ${proofs.length} proofs as PENDING_SPENT');
}
/// Marca proofs como UNSPENT (para revertir si falla el envío).
Future<void> markProofsUnspent(List<LocalProof> proofs) async {
final db = await database;
await db.transaction((txn) async {
for (final proof in proofs) {
await txn.update(
'proof',
{'state': 'UNSPENT'},
where: 'y = ?',
whereArgs: [proof.y],
);
}
});
debugPrint('Reverted ${proofs.length} proofs to UNSPENT');
}
/// Crea un token Cashu V3 desde proofs seleccionados.
/// Formato: cashuA + base64(JSON)
String createTokenV3({
required String mintUrl,
required List<LocalProof> proofs,
String? memo,
String? unit,
}) {
// Estructura del token V3
final tokenData = <String, dynamic>{
'token': [
{
'mint': mintUrl,
'proofs': proofs.map((p) => p.toTokenProof()).toList(),
}
],
};
// Agregar memo si existe
if (memo != null && memo.isNotEmpty) {
tokenData['memo'] = memo;
}
// Agregar unit si existe
if (unit != null && unit.isNotEmpty) {
tokenData['unit'] = unit;
}
// Codificar a JSON y luego base64
final jsonStr = jsonEncode(tokenData);
final base64Str = base64.encode(utf8.encode(jsonStr));
return 'cashuA$base64Str';
}
/// Cierra la conexión a la base de datos.
Future<void> close() async {
await _db?.close();
_db = null;
}
}
+194
View File
@@ -0,0 +1,194 @@
import 'package:intl/intl.dart';
/// Utilidades para formatear montos y unidades en El Caju.
///
/// USD y EUR usan centavos (multiplicador 100).
/// SAT y otras unidades usan valores enteros.
class UnitFormatter {
/// Multiplicador para convertir a unidad base.
/// USD/EUR almacenan centavos, display en unidades.
static int getMultiplier(String unit) {
switch (unit.toLowerCase()) {
case 'usd':
case 'eur':
return 100; // centavos
default:
return 1;
}
}
/// Formatea un balance para display.
/// Ejemplo: 1000 sat → "1,000", 500 usd → "5.00"
static String formatBalance(BigInt amount, String unit) {
final multiplier = getMultiplier(unit);
if (multiplier == 100) {
// USD/EUR: mostrar con 2 decimales
final value = amount.toDouble() / 100;
return value.toStringAsFixed(2);
} else {
// SAT y otros: entero con separador de miles
return NumberFormat('#,###').format(amount.toInt());
}
}
/// Formatea un balance con su unidad.
/// Ejemplo: 1000 sat → "1,000 sat", 500 usd → "5.00 USD"
static String formatBalanceWithUnit(BigInt amount, String unit) {
final formatted = formatBalance(amount, unit);
final label = getUnitLabel(unit);
return '$formatted $label';
}
/// Obtiene la etiqueta de display para una unidad (para balances).
/// Siguiendo el estándar de cashu.me: minúsculas para sat/msat
/// Ejemplo: "855 sat", "5.00 USD"
static String getUnitLabel(String unit) {
switch (unit.toLowerCase()) {
case 'sat':
return 'sat';
case 'usd':
return 'USD';
case 'eur':
return 'EUR';
case 'msat':
return 'msat';
default:
return unit;
}
}
/// Obtiene la etiqueta para el botón toggle de unidad.
/// sat → "BTC" (indica Bitcoin), otros → mayúsculas
static String getToggleLabel(String unit) {
switch (unit.toLowerCase()) {
case 'sat':
return 'BTC';
case 'usd':
return 'USD';
case 'eur':
return 'EUR';
case 'msat':
return 'mSAT';
default:
return unit.toUpperCase();
}
}
/// Obtiene la etiqueta en mayúsculas (para badges, estados).
/// Ejemplo: "PENDING: 536 SAT"
static String getUnitLabelUppercase(String unit) {
switch (unit.toLowerCase()) {
case 'sat':
return 'SAT';
case 'usd':
return 'USD';
case 'eur':
return 'EUR';
case 'msat':
return 'mSAT';
default:
return unit.toUpperCase();
}
}
/// Convierte input del usuario a BigInt para la unidad.
/// Ejemplo: "5.00" USD → BigInt(500)
static BigInt parseUserInput(String input, String unit) {
final multiplier = getMultiplier(unit);
// Limpiar input
final cleaned = input.replaceAll(',', '').replaceAll(' ', '');
if (multiplier == 100) {
// USD/EUR: parsear como decimal
final value = double.tryParse(cleaned) ?? 0.0;
return BigInt.from((value * 100).round());
} else {
// SAT: parsear como entero
return BigInt.from(int.tryParse(cleaned) ?? 0);
}
}
/// Formatea dígitos crudos para display con decimales fijos (estilo POS).
/// Para USD/EUR (2 decimales): "1" → "0.01", "15" → "0.15", "150" → "1.50"
/// Para SAT (0 decimales): "1" → "1", "15" → "15"
static String formatRawDigitsForDisplay(String rawDigits, String unit) {
final multiplier = getMultiplier(unit);
if (rawDigits.isEmpty) {
return multiplier == 100 ? '0.00' : '0';
}
if (multiplier == 100) {
// USD/EUR: 2 decimales fijos
final digits = rawDigits.padLeft(3, '0');
final intPart = digits.substring(0, digits.length - 2);
final decPart = digits.substring(digits.length - 2);
// Formatear parte entera con separador de miles
final intValue = int.tryParse(intPart) ?? 0;
final formattedInt = NumberFormat('#,##0').format(intValue);
return '$formattedInt.$decPart';
} else {
// SAT: sin decimales, con separador de miles
final value = int.tryParse(rawDigits) ?? 0;
return NumberFormat('#,###').format(value);
}
}
/// Convierte dígitos crudos del numpad a BigInt (centavos para USD/EUR, sats para SAT).
/// "150" USD → BigInt(150) (ya son centavos)
/// "150" SAT → BigInt(150)
static BigInt parseRawDigits(String rawDigits, String unit) {
if (rawDigits.isEmpty) return BigInt.zero;
return BigInt.tryParse(rawDigits) ?? BigInt.zero;
}
/// Obtiene el nombre del host de un mint URL.
/// Ejemplo: 'https://mint.cubabitcoin.org' → 'cubabitcoin.org'
static String getMintDisplayName(String mintUrl) {
try {
final uri = Uri.parse(mintUrl);
var host = uri.host;
// Limpiar prefijos comunes
host = host.replaceFirst('mint.', '');
host = host.replaceFirst('www.', '');
return host;
} catch (e) {
return mintUrl;
}
}
/// Formatea una fecha relativa.
/// Ejemplo: hace 5 min, hace 2 h, ayer, 15 ene
static String formatRelativeDate(DateTime date) {
final now = DateTime.now();
final difference = now.difference(date);
if (difference.inSeconds < 60) {
return 'Ahora';
} else if (difference.inMinutes < 60) {
return 'Hace ${difference.inMinutes} min';
} else if (difference.inHours < 24) {
return 'Hace ${difference.inHours} h';
} else if (difference.inDays == 1) {
return 'Ayer';
} else if (difference.inDays < 7) {
return 'Hace ${difference.inDays} días';
} else {
return DateFormat('d MMM').format(date);
}
}
/// Convierte timestamp BigInt (unix seconds) a DateTime.
static DateTime timestampToDateTime(BigInt timestamp) {
return DateTime.fromMillisecondsSinceEpoch(
timestamp.toInt() * 1000,
);
}
}
+199
View File
@@ -0,0 +1,199 @@
// Parser para detectar el tipo de dato entrante (QR, clipboard, etc.)
// Soporta: tokens Cashu (A/B), invoices Lightning, URLs de mint, payment requests, peanut emoji
import 'peanut_codec.dart';
/// Modo de escaneo
enum ScanMode {
any, // Desde HomeScreen - detecta y navega automáticamente
cashuOnly, // Desde ReceiveScreen - solo acepta tokens Cashu
invoiceOnly, // Desde MeltScreen - solo acepta invoices Lightning
}
/// Tipo de dato detectado
enum IncomingDataType {
cashuToken, // cashuA... / cashuB...
lightningInvoice, // lnbc... / lntb... / lnbcrt...
mintUrl, // https://...
paymentRequest, // creqA... (post-MVP, Cashu payment request)
unknown,
}
/// Información de un token parseado (para preview)
class TokenInfo {
final BigInt amount;
final String mintUrl;
final String? unit;
final String? memo;
TokenInfo({
required this.amount,
required this.mintUrl,
this.unit,
this.memo,
});
}
/// Resultado del parsing
class ParsedData {
final IncomingDataType type;
final String raw;
final TokenInfo? tokenInfo;
final String? invoiceBolt11;
final String? mintUrl;
ParsedData({
required this.type,
required this.raw,
this.tokenInfo,
this.invoiceBolt11,
this.mintUrl,
});
/// True si el tipo es conocido y puede ser procesado
bool get isValid => type != IncomingDataType.unknown;
}
/// Parser estático para detectar tipo de dato
class IncomingDataParser {
/// Detecta el tipo de dato y extrae información relevante
static ParsedData parse(String data) {
final trimmed = data.trim();
// Peanut-encoded token (🥜 + variation selectors)
if (PeanutCodec.isPeanut(trimmed)) {
final decoded = PeanutCodec.decode(trimmed);
if (decoded != null) {
return parse(decoded);
}
}
final lower = trimmed.toLowerCase();
// Token Cashu (cashuA... o cashuB...)
if (lower.startsWith('cashua') || lower.startsWith('cashub')) {
return ParsedData(
type: IncomingDataType.cashuToken,
raw: trimmed,
);
}
// UR encoded token (ur:cashu/...)
if (lower.startsWith('ur:cashu')) {
return ParsedData(
type: IncomingDataType.cashuToken,
raw: trimmed,
);
}
// Invoice Lightning (lnbcrt..., lnbc..., lntb...)
// Nota: lnbcrt debe ir primero porque lnbc es prefijo de lnbcrt
if (lower.startsWith('lnbcrt') ||
lower.startsWith('lnbc') ||
lower.startsWith('lntb') ||
lower.startsWith('lightning:')) {
// Remover prefijo lightning: si existe
final invoice = lower.startsWith('lightning:')
? trimmed.substring(10)
: trimmed;
return ParsedData(
type: IncomingDataType.lightningInvoice,
raw: trimmed,
invoiceBolt11: invoice,
);
}
// Payment Request (creqA...)
if (lower.startsWith('creqa')) {
return ParsedData(
type: IncomingDataType.paymentRequest,
raw: trimmed,
);
}
// URL potencial de mint (https://...)
if (lower.startsWith('https://')) {
try {
final uri = Uri.parse(trimmed);
final path = uri.path.toLowerCase();
// Solo clasificar como mint si tiene endpoints conocidos de Cashu
// o es una URL limpia (sin path o solo /)
final isMintEndpoint = path.contains('/v1/info') ||
path.contains('/v1/keys') ||
path.contains('/v1/mint') ||
path.contains('/v1/melt');
final isCleanUrl = path.isEmpty || path == '/';
if (isMintEndpoint || isCleanUrl) {
// Normalizar: quitar trailing slash y paths de API
String mintUrl = '${uri.scheme}://${uri.host}';
if (uri.port != 443) mintUrl += ':${uri.port}';
return ParsedData(
type: IncomingDataType.mintUrl,
raw: trimmed,
mintUrl: mintUrl,
);
}
// URLs con paths no-mint (ej: /about, /login) → unknown
} catch (_) {
// URL malformada → unknown
}
}
// Tipo desconocido
return ParsedData(
type: IncomingDataType.unknown,
raw: trimmed,
);
}
/// Verifica si el dato es un fragmento UR
/// Detectamos cualquier UR (ur:bytes/, ur:cashu/, etc.)
/// cashu.me y minibits usan ur:bytes/ para tokens Cashu
static bool isUrFragment(String data) {
return data.toLowerCase().startsWith('ur:');
}
/// Extrae información del header UR (índice y total)
/// Formato: ur:cashu/1-5/payload...
/// Retorna (currentIndex, totalFragments) o null si no es válido
static (int, int)? parseUrHeader(String data) {
final lower = data.toLowerCase();
if (!lower.startsWith('ur:')) return null;
// Buscar el patrón X-Y después del tipo
final parts = data.split('/');
if (parts.length < 2) return null;
// El segundo segmento debería ser "index-total" o solo el index si es único
final indexPart = parts[1];
// Verificar si es formato multipart (X-Y)
if (indexPart.contains('-')) {
final indices = indexPart.split('-');
if (indices.length == 2) {
final current = int.tryParse(indices[0]);
final total = int.tryParse(indices[1]);
if (current != null && total != null) {
return (current, total);
}
}
}
return null;
}
/// Verifica si un dato es válido para un modo específico
static bool isValidForMode(ParsedData data, ScanMode mode) {
switch (mode) {
case ScanMode.any:
return data.type != IncomingDataType.unknown;
case ScanMode.cashuOnly:
return data.type == IncomingDataType.cashuToken;
case ScanMode.invoiceOnly:
return data.type == IncomingDataType.lightningInvoice;
}
}
}
+108
View File
@@ -0,0 +1,108 @@
/// Utilidad para leer datos del SQLite de CDK.
/// Usado para:
/// - Debug de keyset counters
/// - Leer input_fee_ppk para cálculo de fees
/// - Contar proofs unspent para consolidación P2PK
library;
import 'package:flutter/foundation.dart';
import 'package:sqflite/sqflite.dart';
import 'package:path_provider/path_provider.dart';
class KeysetDebug {
static Database? _db;
/// Abre la DB de CDK en modo solo lectura.
static Future<Database> _getDb() async {
if (_db != null && _db!.isOpen) return _db!;
final dir = await getApplicationDocumentsDirectory();
final dbPath = '${dir.path}/elcaju_wallet.sqlite';
_db = await openDatabase(dbPath, readOnly: true);
return _db!;
}
/// Lee todos los keysets con sus counters y los imprime.
/// Retorna el counter del keyset activo (si hay uno).
static Future<void> logCounters(String label) async {
try {
final db = await _getDb();
final rows = await db.rawQuery(
'SELECT id, unit, active, counter FROM keyset ORDER BY active DESC, unit ASC',
);
debugPrint('[COUNTER DEBUG] ===== $label =====');
debugPrint('[COUNTER DEBUG] Total keysets: ${rows.length}');
for (final row in rows) {
final id = row['id'] as String?;
final unit = row['unit'] as String?;
final active = row['active'] as int?;
final counter = row['counter'] as int?;
final shortId = (id != null && id.length > 12) ? id.substring(0, 12) : id;
debugPrint(
'[COUNTER DEBUG] keyset=$shortId unit=$unit active=$active counter=$counter',
);
}
} catch (e) {
debugPrint('[COUNTER DEBUG] Error leyendo counters: $e');
}
}
/// Lee el input_fee_ppk del keyset activo para un mint y unidad.
///
/// IMPORTANTE: Lee directamente del schema interno de CDK (tabla `keyset`,
/// columna `input_fee_ppk`). Escrito para CDK 0.13.4 (cdk-flutter actual).
/// Si CDK cambia el schema (ej: en 0.14.x con rusqlite), este query puede
/// fallar. En caso de error retorna -1 (asume fees > 0) para bloquear P2PK
/// de forma segura — nunca retornar 0 en error porque permitiria P2PK en
/// mints con fees, causando perdida de fondos.
///
/// TODO: Revisar este codigo al actualizar cdk-flutter a CDK 0.14.x.
/// Idealmente cdk-flutter deberia exponer getActiveKeyset().inputFeePpk
/// via API publica en lugar de leer SQLite directamente.
static Future<int> getInputFeePpk(String mintUrl, String unit) async {
try {
final db = await _getDb();
final rows = await db.rawQuery(
'SELECT input_fee_ppk FROM keyset WHERE active=1 AND unit=? AND mint_url=?',
[unit, mintUrl],
);
if (rows.isEmpty) {
debugPrint('[KEYSET DEBUG] No active keyset found for $mintUrl/$unit');
return -1;
}
return (rows.first['input_fee_ppk'] as int?) ?? 0;
} catch (e) {
debugPrint('[KEYSET DEBUG] Error leyendo input_fee_ppk: $e');
// Fail-safe: asumir fees > 0 para bloquear P2PK ante schema desconocido
return -1;
}
}
/// Cuenta los proofs UNSPENT de un mint y unidad.
/// Retorna 0 si no se encuentra o hay error.
static Future<int> getUnspentProofCount(String mintUrl, String unit) async {
try {
final db = await _getDb();
final rows = await db.rawQuery(
'SELECT COUNT(*) as count FROM proof WHERE state=? AND mint_url=? AND unit=?',
['UNSPENT', mintUrl, unit],
);
if (rows.isEmpty) return 0;
return (rows.first['count'] as int?) ?? 0;
} catch (e) {
debugPrint('[KEYSET DEBUG] Error contando proofs: $e');
return 0;
}
}
/// Cierra la DB (llamar al final si es necesario).
static Future<void> close() async {
await _db?.close();
_db = null;
}
}
+197
View File
@@ -0,0 +1,197 @@
/// Utilidades para conversión de claves Nostr (npub/nsec/hex)
///
/// Formatos soportados:
/// - npub1... (clave pública Nostr en bech32)
/// - nsec1... (clave privada Nostr en bech32)
/// - hex (64 caracteres hexadecimales)
/// - nostr:npub1... (URI de Nostr)
library;
import 'dart:typed_data';
import 'package:bech32/bech32.dart';
class NostrUtils {
static const _npubHrp = 'npub';
static const _nsecHrp = 'nsec';
// ============ HEX -> BECH32 ============
/// Convierte hex a npub
/// Acepta 64 chars (x-only) o 66 chars (SEC1 comprimido con prefijo 02/03)
static String hexToNpub(String hex) {
// Si es SEC1 comprimido (66 chars con prefijo 02 o 03), quitar prefijo
if (RegExp(r'^0[23][0-9a-fA-F]{64}$').hasMatch(hex)) {
hex = hex.substring(2);
} else if (!RegExp(r'^[0-9a-fA-F]{64}$').hasMatch(hex)) {
throw ArgumentError('Expected 64 or 66-char hex string, got ${hex.length} chars');
}
final bytes = _hexToBytes(hex);
final converted = _convertBits(bytes, 8, 5, true);
final bech32Data = Bech32(_npubHrp, converted);
return const Bech32Codec().encode(bech32Data);
}
/// Convierte hex (64 chars) a nsec
static String hexToNsec(String hex) {
if (!RegExp(r'^[0-9a-fA-F]{64}$').hasMatch(hex)) {
throw ArgumentError('Expected 64-char hex string, got ${hex.length} chars');
}
final bytes = _hexToBytes(hex);
final converted = _convertBits(bytes, 8, 5, true);
final bech32Data = Bech32(_nsecHrp, converted);
return const Bech32Codec().encode(bech32Data);
}
// ============ BECH32 -> HEX ============
/// Convierte npub a hex
static String? npubToHex(String npub) {
try {
final decoded = const Bech32Codec().decode(npub);
if (decoded.hrp != _npubHrp) return null;
final bytes = _convertBits(decoded.data, 5, 8, false);
return _bytesToHex(Uint8List.fromList(bytes));
} catch (e) {
return null;
}
}
/// Convierte nsec a hex
static String? nsecToHex(String nsec) {
try {
final decoded = const Bech32Codec().decode(nsec);
if (decoded.hrp != _nsecHrp) return null;
final bytes = _convertBits(decoded.data, 5, 8, false);
return _bytesToHex(Uint8List.fromList(bytes));
} catch (e) {
return null;
}
}
// ============ NORMALIZACIÓN ============
/// Normaliza input a hex (acepta npub, hex, nostr:npub)
/// Retorna null si el input no es válido
static String? normalizeToHex(String input) {
input = input.trim();
// Remover prefijo nostr: si existe
if (input.startsWith('nostr:')) {
input = input.substring(6);
}
// Si es npub → convertir a hex
if (input.startsWith('npub1')) {
return npubToHex(input);
}
// Si es hex válido (64 caracteres) → usar directo
if (RegExp(r'^[0-9a-fA-F]{64}$').hasMatch(input)) {
return input.toLowerCase();
}
return null;
}
// ============ P2PK (SEC1 COMPRESSED) ============
/// Normaliza input a clave pública comprimida SEC1 (66 hex chars)
/// Cashu P2PK usa claves comprimidas de 33 bytes (prefijo 02 o 03)
/// Acepta: npub, hex 64 chars (x-only), hex 66 chars (compressed)
static String? normalizeToCompressedHex(String input) {
input = input.trim();
// Remover prefijo nostr: si existe
if (input.startsWith('nostr:')) {
input = input.substring(6);
}
// Si ya es hex comprimido (66 chars con prefijo 02 o 03)
if (RegExp(r'^0[23][0-9a-fA-F]{64}$').hasMatch(input)) {
return input.toLowerCase();
}
// Si es npub → convertir a hex x-only → añadir prefijo 02
if (input.startsWith('npub1')) {
final xOnlyHex = npubToHex(input);
if (xOnlyHex != null) {
return '02$xOnlyHex';
}
return null;
}
// Si es hex x-only (64 chars) → añadir prefijo 02
if (RegExp(r'^[0-9a-fA-F]{64}$').hasMatch(input)) {
return '02${input.toLowerCase()}';
}
return null;
}
/// Valida si un input es válido para P2PK
static bool isValidP2PKPubkey(String input) {
return normalizeToCompressedHex(input) != null;
}
// ============ VALIDACIÓN ============
/// Valida si un input es una pubkey válida (npub o hex)
static bool isValidPubkey(String input) {
final hex = normalizeToHex(input);
return hex != null && hex.length == 64;
}
/// Valida si es un nsec válido
static bool isValidNsec(String input) {
if (input.startsWith('nostr:')) input = input.substring(6);
return input.startsWith('nsec1') && nsecToHex(input) != null;
}
/// Valida si es un npub válido
static bool isValidNpub(String input) {
if (input.startsWith('nostr:')) input = input.substring(6);
return input.startsWith('npub1') && npubToHex(input) != null;
}
// ============ HELPERS PRIVADOS ============
static Uint8List _hexToBytes(String hex) {
final result = Uint8List(hex.length ~/ 2);
for (var i = 0; i < hex.length; i += 2) {
result[i ~/ 2] = int.parse(hex.substring(i, i + 2), radix: 16);
}
return result;
}
static String _bytesToHex(Uint8List bytes) {
return bytes.map((b) => b.toRadixString(16).padLeft(2, '0')).join();
}
/// Convierte bits entre bases (5 <-> 8) para bech32
static List<int> _convertBits(
List<int> data,
int fromBits,
int toBits,
bool pad,
) {
var acc = 0;
var bits = 0;
final result = <int>[];
final maxv = (1 << toBits) - 1;
for (final value in data) {
acc = (acc << fromBits) | value;
bits += fromBits;
while (bits >= toBits) {
bits -= toBits;
result.add((acc >> bits) & maxv);
}
}
if (pad && bits > 0) {
result.add((acc << (toBits - bits)) & maxv);
}
return result;
}
}
+146
View File
@@ -0,0 +1,146 @@
/// Utilidades para detección de P2PK en tokens Cashu
///
/// Soporta:
/// - Tokens V3 (cashuA - base64 JSON)
/// - Tokens V4 (cashuB - CBOR)
library;
import 'dart:convert';
import 'dart:typed_data';
import 'package:cbor/cbor.dart';
class P2PKUtils {
/// Extrae la pubkey bloqueada de un token P2PK (si existe)
/// Retorna null si el token no es P2PK o no se puede parsear
static String? extractLockedPubkey(String encodedToken) {
try {
String token = encodedToken.trim();
// Remover prefijo cashu: si existe
if (token.startsWith('cashu:')) {
token = token.substring(6);
}
if (token.startsWith('cashuA')) {
return _extractFromV3(token);
} else if (token.startsWith('cashuB')) {
return _extractFromV4(token);
}
return null;
} catch (e) {
return null;
}
}
/// Verifica si un token está bloqueado con P2PK
static bool isP2PKLocked(String encodedToken) {
return extractLockedPubkey(encodedToken) != null;
}
// ============ V3 TOKEN (cashuA - base64 JSON) ============
static String? _extractFromV3(String token) {
try {
final base64Part = token.substring(6);
final jsonStr = utf8.decode(base64.decode(base64Part));
final data = jsonDecode(jsonStr) as Map<String, dynamic>;
// Estructura: { token: [{ proofs: [...] }] }
final tokenList = data['token'] as List?;
if (tokenList == null || tokenList.isEmpty) return null;
final proofs = tokenList[0]['proofs'] as List?;
if (proofs == null || proofs.isEmpty) return null;
final secret = proofs[0]['secret'];
return _parseP2PKSecret(secret);
} catch (e) {
return null;
}
}
// ============ V4 TOKEN (cashuB - CBOR) ============
static String? _extractFromV4(String token) {
try {
final cborPart = token.substring(6);
// V4 usa base64url
final bytes = base64Url.decode(_padBase64(cborPart));
final decoded = cbor.decode(bytes);
if (decoded is! CborMap) return null;
// Estructura CBOR: { t: [{ p: [...] }] } o { p: [...] }
final tokenData = decoded.toObject() as Map<dynamic, dynamic>;
List<dynamic>? proofs;
if (tokenData.containsKey('t')) {
final t = tokenData['t'] as List?;
if (t != null && t.isNotEmpty) {
final firstToken = t[0];
if (firstToken is Map) {
proofs = firstToken['p'] as List?;
}
}
} else if (tokenData.containsKey('p')) {
proofs = tokenData['p'] as List?;
}
if (proofs == null || proofs.isEmpty) return null;
final firstProof = proofs[0];
if (firstProof is! Map) return null;
final secret = firstProof['s'];
return _parseP2PKSecret(secret);
} catch (e) {
return null;
}
}
// ============ PARSER DE SECRET P2PK (NUT-10) ============
/// Parsea el secret de un proof para extraer la pubkey P2PK
/// Estructura P2PK: ["P2PK", { "nonce": "...", "data": "<pubkey>", "tags": [...] }]
static String? _parseP2PKSecret(dynamic secret) {
if (secret == null) return null;
String secretStr;
if (secret is String) {
secretStr = secret;
} else if (secret is List<int>) {
// Uint8List también es List<int>, así que este branch cubre ambos
secretStr = utf8.decode(secret);
} else {
return null;
}
try {
final parsed = jsonDecode(secretStr);
if (parsed is List && parsed.length >= 2 && parsed[0] == 'P2PK') {
final data = parsed[1];
if (data is Map && data.containsKey('data')) {
final pubkey = data['data'];
// Validar que sea hex de 64 chars (x-only) o 66 chars (SEC1 comprimido)
if (pubkey is String &&
(RegExp(r'^[0-9a-fA-F]{64}$').hasMatch(pubkey) ||
RegExp(r'^0[23][0-9a-fA-F]{64}$').hasMatch(pubkey))) {
return pubkey.toLowerCase();
}
}
}
} catch (e) {
// No es P2PK o formato inválido
}
return null;
}
/// Agrega padding a base64url si es necesario
static String _padBase64(String input) {
final remainder = input.length % 4;
if (remainder == 0) return input;
return input + '=' * (4 - remainder);
}
}
+62
View File
@@ -0,0 +1,62 @@
/// Peanut encoding/decoding for Cashu tokens.
///
/// Encodes Cashu tokens into invisible Unicode Variation Selectors
/// appended to a 🥜 emoji, compatible with cashu.me's implementation.
///
/// Each character of the base64 token is mapped to a Variation Selector:
/// - charCode 0-15 → VS1-VS16 (U+FE00 to U+FE0F)
/// - charCode 16-255 → VS17-VS256 (U+E0100 to U+E01EF)
class PeanutCodec {
static const String _peanutEmoji = '🥜';
/// Encodes a Cashu token string into peanut format (🥜 + variation selectors).
static String encode(String token) {
final buffer = StringBuffer(_peanutEmoji);
for (int i = 0; i < token.length; i++) {
final byte = token.codeUnitAt(i);
if (byte < 16) {
// VS1-VS16: U+FE00 to U+FE0F
buffer.writeCharCode(0xFE00 + byte);
} else if (byte < 256) {
// VS17-VS256: U+E0100 to U+E01EF
buffer.writeCharCode(0xE0100 + (byte - 16));
}
}
return buffer.toString();
}
/// Decodes a peanut-encoded string back to the original Cashu token.
/// Returns null if the input is not valid peanut format.
static String? decode(String peanut) {
final trimmed = peanut.trimLeft();
if (!trimmed.startsWith(_peanutEmoji)) return null;
final buffer = StringBuffer();
final runes = trimmed.runes.toList();
// Skip the first rune (🥜 emoji)
for (int i = 1; i < runes.length; i++) {
final codePoint = runes[i];
if (codePoint >= 0xFE00 && codePoint <= 0xFE0F) {
// VS1-VS16 → byte 0-15
buffer.writeCharCode(codePoint - 0xFE00);
} else if (codePoint >= 0xE0100 && codePoint <= 0xE01EF) {
// VS17-VS256 → byte 16-255
buffer.writeCharCode(codePoint - 0xE0100 + 16);
}
// Skip any other characters (whitespace, etc.)
}
final result = buffer.toString();
return result.isNotEmpty ? result : null;
}
/// Returns true if the string starts with the 🥜 emoji.
static bool isPeanut(String data) {
return data.trimLeft().startsWith(_peanutEmoji);
}
}
+126
View File
@@ -0,0 +1,126 @@
/// Modelo de datos para tokens Cashu pendientes de reclamar.
/// Almacena tokens que el usuario quiere guardar para reclamar después.
class PendingToken {
/// UUID único del token pendiente
final String id;
/// Token codificado completo (cashuA... o cashuB...)
final String encoded;
/// Monto del token en la unidad base
final BigInt amount;
/// URL del mint que emitió el token
final String mintUrl;
/// Unidad detectada del token (sat, usd, eur, etc.)
final String? unit;
/// Fecha en que se guardó el token
final DateTime savedAt;
/// Memo opcional del token
final String? memo;
/// Número de intentos fallidos de reclamo
final int retryCount;
/// Último error al intentar reclamar
final String? lastError;
/// Fecha del último intento de reclamo
final DateTime? lastAttempt;
PendingToken({
required this.id,
required this.encoded,
required this.amount,
required this.mintUrl,
this.unit,
required this.savedAt,
this.memo,
this.retryCount = 0,
this.lastError,
this.lastAttempt,
});
/// Verifica si el token ha expirado (30 días)
bool get isExpired =>
savedAt.add(const Duration(days: 30)).isBefore(DateTime.now());
/// Días restantes antes de expirar
int get daysRemaining {
final expiresAt = savedAt.add(const Duration(days: 30));
final remaining = expiresAt.difference(DateTime.now()).inDays;
return remaining < 0 ? 0 : remaining;
}
/// Verifica si el token tiene errores de reclamo
bool get hasError => lastError != null && lastError!.isNotEmpty;
/// Crea una copia con campos actualizados
PendingToken copyWith({
String? id,
String? encoded,
BigInt? amount,
String? mintUrl,
String? unit,
DateTime? savedAt,
String? memo,
int? retryCount,
String? lastError,
DateTime? lastAttempt,
}) {
return PendingToken(
id: id ?? this.id,
encoded: encoded ?? this.encoded,
amount: amount ?? this.amount,
mintUrl: mintUrl ?? this.mintUrl,
unit: unit ?? this.unit,
savedAt: savedAt ?? this.savedAt,
memo: memo ?? this.memo,
retryCount: retryCount ?? this.retryCount,
lastError: lastError ?? this.lastError,
lastAttempt: lastAttempt ?? this.lastAttempt,
);
}
/// Convierte a Map para persistencia SQLite
Map<String, dynamic> toMap() {
return {
'id': id,
'encoded': encoded,
'amount': amount.toString(),
'mint_url': mintUrl,
'unit': unit,
'saved_at': savedAt.millisecondsSinceEpoch,
'memo': memo,
'retry_count': retryCount,
'last_error': lastError,
'last_attempt': lastAttempt?.millisecondsSinceEpoch,
};
}
/// Crea desde Map de SQLite
factory PendingToken.fromMap(Map<String, dynamic> map) {
return PendingToken(
id: map['id'] as String,
encoded: map['encoded'] as String,
amount: BigInt.parse(map['amount'] as String),
mintUrl: map['mint_url'] as String,
unit: map['unit'] as String?,
savedAt: DateTime.fromMillisecondsSinceEpoch(map['saved_at'] as int),
memo: map['memo'] as String?,
retryCount: map['retry_count'] as int? ?? 0,
lastError: map['last_error'] as String?,
lastAttempt: map['last_attempt'] != null
? DateTime.fromMillisecondsSinceEpoch(map['last_attempt'] as int)
: null,
);
}
@override
String toString() {
return 'PendingToken(id: $id, amount: $amount, unit: $unit, mintUrl: $mintUrl, daysRemaining: $daysRemaining)';
}
}
+279
View File
@@ -0,0 +1,279 @@
import 'dart:async';
import 'dart:io';
import 'package:flutter/foundation.dart';
import 'package:path_provider/path_provider.dart';
import 'package:sqflite_common_ffi/sqflite_ffi.dart';
import 'pending_token.dart';
/// Storage para tokens Cashu pendientes de reclamar.
/// Usa SQLite para persistencia robusta con soporte para consultas complejas.
///
/// Características:
/// - Límite máximo de 50 tokens
/// - Expiración automática a 30 días
/// - Cache en memoria para acceso rápido
/// - Singleton para acceso global
class PendingTokenStorage {
static const _dbName = 'pending_tokens.db';
static const _tableName = 'pending_tokens';
static const _maxTokens = 50;
static const _expirationDays = 30;
Database? _db;
final Map<String, PendingToken> _cache = {};
bool _isInitialized = false;
/// Stream controller para notificar cambios
StreamController<void> _changesController = StreamController<void>.broadcast();
/// Stream de cambios para que la UI pueda reaccionar
Stream<void> get changes => _changesController.stream;
/// Singleton
static final PendingTokenStorage _instance = PendingTokenStorage._internal();
factory PendingTokenStorage() => _instance;
PendingTokenStorage._internal();
/// Verifica si está inicializado
bool get isInitialized => _isInitialized;
/// Cantidad de tokens pendientes
int get count => _cache.length;
/// Verifica si hay tokens pendientes
bool get hasPendingTokens => _cache.isNotEmpty;
/// Inicializa el storage. Llamar antes de usar.
Future<void> init() async {
if (_isInitialized) return;
// Inicializar FFI para Linux/Windows
if (Platform.isLinux || Platform.isWindows) {
sqfliteFfiInit();
databaseFactory = databaseFactoryFfi;
}
final dir = await getApplicationDocumentsDirectory();
final dbPath = '${dir.path}/$_dbName';
_db = await openDatabase(
dbPath,
version: 1,
onCreate: (db, version) async {
await db.execute('''
CREATE TABLE $_tableName (
id TEXT PRIMARY KEY,
encoded TEXT NOT NULL,
amount TEXT NOT NULL,
mint_url TEXT NOT NULL,
unit TEXT,
saved_at INTEGER NOT NULL,
memo TEXT,
retry_count INTEGER DEFAULT 0,
last_error TEXT,
last_attempt INTEGER
)
''');
// Índices para consultas eficientes
await db.execute(
'CREATE INDEX idx_mint_url ON $_tableName(mint_url)',
);
await db.execute(
'CREATE INDEX idx_saved_at ON $_tableName(saved_at)',
);
},
);
await _loadFromDb();
await _cleanExpired();
_isInitialized = true;
debugPrint('PendingTokenStorage inicializado con ${_cache.length} tokens');
}
/// Carga todos los tokens desde la base de datos al cache
Future<void> _loadFromDb() async {
if (_db == null) return;
final results = await _db!.query(
_tableName,
orderBy: 'saved_at DESC',
);
_cache.clear();
for (final row in results) {
final token = PendingToken.fromMap(row);
_cache[token.id] = token;
}
}
/// Agrega un token pendiente.
/// Retorna el PendingToken creado o null si se alcanzó el límite.
Future<PendingToken?> add({
required String id,
required String encoded,
required BigInt amount,
required String mintUrl,
String? unit,
String? memo,
}) async {
if (_db == null) {
throw StateError('PendingTokenStorage no inicializado');
}
// Verificar límite
if (_cache.length >= _maxTokens) {
debugPrint('Límite de $_maxTokens tokens pendientes alcanzado');
return null;
}
// Verificar si ya existe (mismo encoded)
for (final existing in _cache.values) {
if (existing.encoded == encoded) {
debugPrint('Token ya existe en pending: ${existing.id}');
return existing;
}
}
final token = PendingToken(
id: id,
encoded: encoded,
amount: amount,
mintUrl: mintUrl,
unit: unit,
savedAt: DateTime.now(),
memo: memo,
);
await _db!.insert(_tableName, token.toMap());
_cache[id] = token;
_notifyChanges();
debugPrint('Token pendiente guardado: $id');
return token;
}
/// Obtiene un token por ID
PendingToken? get(String id) {
return _cache[id];
}
/// Lista todos los tokens pendientes (ordenados por fecha, más reciente primero)
List<PendingToken> listAll() {
final tokens = _cache.values.toList();
tokens.sort((a, b) => b.savedAt.compareTo(a.savedAt));
return tokens;
}
/// Lista solo tokens válidos (no expirados)
List<PendingToken> listValid() {
return listAll().where((t) => !t.isExpired).toList();
}
/// Lista tokens por mint
List<PendingToken> listByMint(String mintUrl) {
return listAll().where((t) => t.mintUrl == mintUrl).toList();
}
/// Actualiza un token (para reintentos, errores, etc.)
Future<void> update(PendingToken token) async {
if (_db == null) return;
if (!_cache.containsKey(token.id)) return;
await _db!.update(
_tableName,
token.toMap(),
where: 'id = ?',
whereArgs: [token.id],
);
_cache[token.id] = token;
_notifyChanges();
}
/// Registra un intento fallido de reclamo
Future<void> recordFailedAttempt(String id, String error) async {
final token = _cache[id];
if (token == null) return;
final updated = token.copyWith(
retryCount: token.retryCount + 1,
lastError: error,
lastAttempt: DateTime.now(),
);
await update(updated);
}
/// Elimina un token por ID
Future<void> remove(String id) async {
if (_db == null) return;
await _db!.delete(
_tableName,
where: 'id = ?',
whereArgs: [id],
);
_cache.remove(id);
_notifyChanges();
debugPrint('Token pendiente eliminado: $id');
}
/// Limpia tokens expirados
Future<int> cleanExpired() async {
return await _cleanExpired();
}
Future<int> _cleanExpired() async {
if (_db == null) return 0;
final cutoff = DateTime.now()
.subtract(const Duration(days: _expirationDays))
.millisecondsSinceEpoch;
final deleted = await _db!.delete(
_tableName,
where: 'saved_at < ?',
whereArgs: [cutoff],
);
if (deleted > 0) {
await _loadFromDb();
_notifyChanges();
debugPrint('Limpiados $deleted tokens expirados');
}
return deleted;
}
/// Elimina todos los tokens pendientes
Future<void> clear() async {
if (_db == null) return;
await _db!.delete(_tableName);
_cache.clear();
_notifyChanges();
debugPrint('Todos los tokens pendientes eliminados');
}
/// Notifica a los listeners de cambios
void _notifyChanges() {
if (!_changesController.isClosed) {
_changesController.add(null);
}
}
/// Cierra la base de datos (llamar al cerrar la app si es necesario)
Future<void> close() async {
await _db?.close();
_db = null;
_isInitialized = false;
await _changesController.close();
// Recrear el controller para permitir re-inicialización del singleton
_changesController = StreamController<void>.broadcast();
}
}
+166
View File
@@ -0,0 +1,166 @@
import 'dart:convert';
import 'package:shared_preferences/shared_preferences.dart';
/// Tipos de transacción
enum TransactionType {
cashu,
lightning,
}
/// Metadata adicional de una transacción.
/// Se usa para guardar datos que el CDK no persiste (token, invoice, tipo).
class TransactionMeta {
final TransactionType type;
final String? token; // Solo para Cashu send
final String? invoice; // Solo para Lightning (mint/melt)
final DateTime createdAt;
TransactionMeta({
required this.type,
this.token,
this.invoice,
DateTime? createdAt,
}) : createdAt = createdAt ?? DateTime.now();
Map<String, dynamic> toJson() => {
'type': type.name,
'token': token,
'invoice': invoice,
'createdAt': createdAt.toIso8601String(),
};
factory TransactionMeta.fromJson(Map<String, dynamic> json) {
return TransactionMeta(
type: TransactionType.values.firstWhere(
(t) => t.name == json['type'],
orElse: () => TransactionType.cashu,
),
token: json['token'] as String?,
invoice: json['invoice'] as String?,
createdAt: json['createdAt'] != null
? DateTime.parse(json['createdAt'] as String)
: DateTime.now(),
);
}
}
/// Storage para metadata de transacciones.
/// Complementa el historial del CDK con datos adicionales.
///
/// Uso:
/// ```dart
/// final storage = TransactionMetaStorage();
/// await storage.init();
///
/// // Guardar metadata
/// await storage.save('tx_123', TransactionMeta(type: TransactionType.cashu, token: 'cashuA...'));
///
/// // Obtener metadata
/// final meta = storage.get('tx_123');
/// ```
class TransactionMetaStorage {
static const _storageKey = 'transaction_meta';
SharedPreferences? _prefs;
final Map<String, TransactionMeta> _cache = {};
/// Singleton
static final TransactionMetaStorage _instance = TransactionMetaStorage._internal();
factory TransactionMetaStorage() => _instance;
TransactionMetaStorage._internal();
/// Inicializa el storage. Llamar antes de usar.
Future<void> init() async {
_prefs = await SharedPreferences.getInstance();
await _loadFromDisk();
}
/// Carga datos desde SharedPreferences al cache en memoria.
Future<void> _loadFromDisk() async {
final jsonStr = _prefs?.getString(_storageKey);
if (jsonStr == null || jsonStr.isEmpty) return;
try {
final decoded = jsonDecode(jsonStr) as Map<String, dynamic>;
_cache.clear();
for (final entry in decoded.entries) {
_cache[entry.key] = TransactionMeta.fromJson(
entry.value as Map<String, dynamic>,
);
}
} catch (e) {
// Si hay error de parsing, empezar limpio
_cache.clear();
}
}
/// Guarda el cache en SharedPreferences.
Future<void> _saveToDisk() async {
final jsonMap = <String, dynamic>{};
for (final entry in _cache.entries) {
jsonMap[entry.key] = entry.value.toJson();
}
await _prefs?.setString(_storageKey, jsonEncode(jsonMap));
}
/// Guarda metadata para una transacción.
Future<void> save(String transactionId, TransactionMeta meta) async {
_cache[transactionId] = meta;
await _saveToDisk();
}
/// Obtiene metadata de una transacción.
TransactionMeta? get(String transactionId) {
return _cache[transactionId];
}
/// Verifica si existe metadata para una transacción.
bool has(String transactionId) {
return _cache.containsKey(transactionId);
}
/// Elimina metadata de una transacción.
Future<void> remove(String transactionId) async {
_cache.remove(transactionId);
await _saveToDisk();
}
/// Elimina todas las metadata.
Future<void> clear() async {
_cache.clear();
await _prefs?.remove(_storageKey);
}
/// Obtiene el tipo de una transacción.
/// Primero busca en metadata del CDK, luego en storage local.
TransactionType getType(String transactionId, Map<String, String>? cdkMetadata) {
// 1. Buscar en metadata del CDK
final cdkType = cdkMetadata?['type'];
if (cdkType == 'cashu') return TransactionType.cashu;
if (cdkType == 'lightning') return TransactionType.lightning;
// 2. Buscar en storage local
final localMeta = get(transactionId);
if (localMeta != null) return localMeta.type;
// 3. Default: cashu (la mayoría de transacciones son cashu)
return TransactionType.cashu;
}
/// Limpia entradas huérfanas (IDs que ya no existen en el CDK).
/// Llamar periódicamente para no acumular basura.
Future<int> cleanupOrphans(Set<String> validIds) async {
final orphans = _cache.keys.where((id) => !validIds.contains(id)).toList();
for (final id in orphans) {
_cache.remove(id);
}
if (orphans.isNotEmpty) {
await _saveToDisk();
}
return orphans.length;
}
}
+538
View File
@@ -0,0 +1,538 @@
{
"@@locale": "de",
"appName": "ElCaju",
"appTagline": "Deine private ecash Wallet",
"loadingMessage1": "Verschlüsselung deiner Münzen...",
"loadingMessage2": "Vorbereitung deiner E-Tokens...",
"loadingMessage3": "Verbindung zum Mint...",
"loadingMessage4": "Privatsphäre standardmäßig.",
"loadingMessage5": "Blind signierte Tokens...",
"loadingMessage6": "Go full Calle...",
"loadingMessage7": "Cashu + Bitchat = Privatsphäre + Freiheit",
"aboutTagline": "Privatsphäre ohne Grenzen.",
"welcomeTitle": "Willkommen bei ElCaju",
"welcomeSubtitle": "Cashu für die Welt. Made in Cuba.",
"createWallet": "Neue Wallet erstellen",
"restoreWallet": "Wallet wiederherstellen",
"createWalletTitle": "Wallet erstellen",
"creatingWallet": "Erstelle deine Wallet...",
"generatingSeed": "Sichere Generierung deiner Seed-Phrase",
"createWalletDescription": "Eine 12-Wort Seed-Phrase wird generiert.\nBewahre sie an einem sicheren Ort auf.",
"generateWallet": "Wallet generieren",
"walletCreated": "Wallet erstellt!",
"walletCreatedDescription": "Deine Wallet ist bereit. Wir empfehlen, jetzt ein Backup deiner Seed-Phrase zu erstellen.",
"backupWarning": "Ohne Backup verlierst du den Zugang zu deinen Mitteln, wenn du das Gerät verlierst.",
"backupNow": "Jetzt sichern",
"backupLater": "Später machen",
"backupTitle": "Backup",
"seedPhraseTitle": "Deine Seed-Phrase",
"seedPhraseDescription": "Speichere diese 12 Wörter in der richtigen Reihenfolge. Sie sind der einzige Weg, deine Wallet wiederherzustellen.",
"revealSeedPhrase": "Seed-Phrase anzeigen",
"tapToReveal": "Tippe auf den Button, um\ndeine Seed-Phrase anzuzeigen",
"copyToClipboard": "In Zwischenablage kopieren",
"seedCopied": "Phrase in Zwischenablage kopiert",
"neverShareSeed": "Teile deine Seed-Phrase niemals mit anderen.",
"confirmBackup": "Ich habe meine Seed-Phrase an einem sicheren Ort gespeichert",
"continue_": "Weiter",
"restoreTitle": "Wallet wiederherstellen",
"enterSeedPhrase": "Gib deine Seed-Phrase ein",
"enterSeedDescription": "Gib die 12 oder 24 Wörter durch Leerzeichen getrennt ein.",
"seedPlaceholder": "wort1 wort2 wort3 ...",
"wordCount": "{count} Wörter",
"@wordCount": {
"placeholders": {
"count": { "type": "int" }
}
},
"needWords": "(du brauchst 12 oder 24)",
"restoreScanningMint": "Mint wird nach vorhandenen Token durchsucht...",
"restoreError": "Wiederherstellungsfehler: {error}",
"@restoreError": {
"placeholders": {
"error": { "type": "String" }
}
},
"homeTitle": "Start",
"receive": "Empfangen",
"send": "Senden",
"sendAction": "Senden ↗",
"receiveAction": "↘ Empfangen",
"deposit": "Einzahlen",
"withdraw": "Abheben",
"lightning": "Lightning",
"cashu": "Cashu",
"ecash": "Ecash",
"history": "Verlauf",
"noTransactions": "Noch keine Transaktionen",
"depositOrReceive": "Zahle ein oder empfange Sats zum Starten",
"noMint": "Kein Mint",
"balance": "Guthaben",
"sats": "sats",
"pasteEcashToken": "Ecash Token einfügen",
"generateInvoiceToDeposit": "Rechnung zum Einzahlen erstellen",
"createEcashToken": "Ecash Token erstellen",
"payLightningInvoice": "Lightning Rechnung bezahlen",
"receiveCashu": "Cashu empfangen",
"pasteTheCashuToken": "Füge den Cashu Token ein:",
"pasteFromClipboard": "Aus Zwischenablage einfügen",
"validToken": "Token gültig",
"invalidToken": "Ungültiger oder fehlerhafter Token",
"amount": "Betrag:",
"mint": "Mint:",
"claiming": "Einlösen...",
"claimTokens": "Tokens einlösen",
"tokensReceived": "Tokens empfangen",
"backToHome": "Zurück zur Startseite",
"tokenAlreadyClaimed": "Dieser Token wurde bereits eingelöst",
"unknownMint": "Token von unbekanntem Mint",
"claimError": "Einlösungsfehler: {error}",
"@claimError": {
"placeholders": {
"error": { "type": "String" }
}
},
"sendCashu": "Cashu senden",
"selectNotesManually": "Notizen manuell auswählen",
"amountToSend": "Zu sendender Betrag:",
"available": "Verfügbar:",
"max": "(Max)",
"memoOptional": "Memo (optional):",
"memoPlaceholder": "Wofür ist diese Zahlung?",
"creatingToken": "Token wird erstellt...",
"createToken": "Token erstellen",
"noActiveMint": "Kein aktiver Mint",
"offlineModeMessage": "Keine Verbindung. Offline-Modus...",
"confirmSend": "Senden bestätigen",
"confirm": "Bestätigen",
"cancel": "Abbrechen",
"insufficientBalance": "Unzureichendes Guthaben",
"tokenCreationError": "Fehler beim Erstellen des Tokens: {error}",
"@tokenCreationError": {
"placeholders": {
"error": { "type": "String" }
}
},
"tokenCreated": "Token erstellt",
"copy": "Kopieren",
"share": "Teilen",
"tokenCashu": "Cashu Token",
"tokenCashuAnimatedQr": "Cashu Token (animierter QR - {fragments} UR-Fragmente)",
"@tokenCashuAnimatedQr": {
"placeholders": {
"fragments": { "type": "int" }
}
},
"keepTokenWarning": "Bewahre diesen Token auf, bis der Empfänger ihn einlöst. Wenn du ihn verlierst, verlierst du die Mittel.",
"tokenCopiedToClipboard": "Token in Zwischenablage kopiert",
"copyAsEmoji": "Als Emoji kopieren",
"emojiCopiedToClipboard": "Token als Emoji kopiert 🥜",
"peanutDecodeError": "Emoji-Token konnte nicht dekodiert werden. Möglicherweise beschädigt.",
"nfcWrite": "Auf NFC-Tag schreiben",
"nfcRead": "NFC-Tag lesen",
"nfcHoldNear": "Gerät an NFC-Tag halten...",
"nfcWriteSuccess": "Token auf NFC-Tag geschrieben",
"nfcWriteError": "NFC-Schreibfehler: {error}",
"@nfcWriteError": { "placeholders": { "error": { "type": "String" } } },
"nfcReadError": "NFC-Lesefehler: {error}",
"@nfcReadError": { "placeholders": { "error": { "type": "String" } } },
"nfcDisabled": "NFC ist deaktiviert. Aktiviere es in den Einstellungen.",
"nfcUnsupported": "Dieses Gerät unterstützt kein NFC",
"amountToDeposit": "Einzuzahlender Betrag:",
"descriptionOptional": "Beschreibung (optional):",
"depositPlaceholder": "Wofür ist diese Einzahlung?",
"generating": "Generiere...",
"generateInvoice": "Rechnung erstellen",
"depositLightning": "Lightning einzahlen",
"payInvoiceTitle": "Rechnung bezahlen",
"generatingInvoice": "Rechnung wird erstellt...",
"waitingForPayment": "Warte auf Zahlung...",
"paymentReceived": "Zahlung empfangen",
"tokensIssued": "Tokens ausgegeben!",
"error": "Fehler",
"unknownError": "Unbekannter Fehler",
"back": "Zurück",
"copyInvoice": "Rechnung kopieren",
"description": "Beschreibung:",
"invoiceCopiedToClipboard": "Rechnung in Zwischenablage kopiert",
"deposited": "{amount} {unit} eingezahlt",
"@deposited": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"pasteLightningInvoice": "Füge die Lightning Rechnung ein:",
"gettingQuote": "Angebot wird geholt...",
"validInvoice": "Rechnung gültig",
"invalidInvoice": "Ungültige Rechnung",
"invalidInvoiceMalformed": "Ungültige oder fehlerhafte Rechnung",
"feeReserved": "Reservierte Gebühr:",
"total": "Gesamt:",
"paying": "Bezahle...",
"payInvoice": "Rechnung bezahlen",
"confirmPayment": "Zahlung bestätigen",
"pay": "Bezahlen",
"fee": "Gebühr",
"invoiceExpired": "Rechnung abgelaufen",
"amountOutOfRange": "Betrag außerhalb des erlaubten Bereichs",
"resolvingType": "Löse {type} auf...",
"@resolvingType": {
"placeholders": {
"type": { "type": "String" }
}
},
"invoiceAlreadyPaid": "Rechnung bereits bezahlt",
"paymentError": "Zahlungsfehler: {error}",
"@paymentError": {
"placeholders": {
"error": { "type": "String" }
}
},
"sent": "{amount} {unit} gesendet",
"@sent": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"filterAll": "Alle",
"filterPending": "Ausstehend",
"filterEcash": "Ecash",
"filterLightning": "Lightning",
"receiveTokensToStart": "Empfange Cashu Tokens zum Starten",
"noPendingTransactions": "Keine ausstehenden Transaktionen",
"allTransactionsCompleted": "Alle deine Transaktionen sind abgeschlossen",
"noEcashTransactions": "Keine Ecash Transaktionen",
"sendOrReceiveTokens": "Sende oder empfange Cashu Tokens",
"noLightningTransactions": "Keine Lightning Transaktionen",
"depositOrWithdrawLightning": "Zahle ein oder hebe ab via Lightning",
"pendingStatus": "Ausstehend",
"receivedStatus": "Empfangen",
"sentStatus": "Gesendet",
"now": "Jetzt",
"agoMinutes": "Vor {minutes} Min",
"@agoMinutes": {
"placeholders": {
"minutes": { "type": "int" }
}
},
"agoHours": "Vor {hours} Std",
"@agoHours": {
"placeholders": {
"hours": { "type": "int" }
}
},
"agoDays": "Vor {days} Tagen",
"@agoDays": {
"placeholders": {
"days": { "type": "int" }
}
},
"lightningInvoice": "Lightning Rechnung",
"receivedEcash": "Ecash empfangen",
"sentEcash": "Ecash gesendet",
"outgoingLightningPayment": "Ausgehende Lightning Zahlung",
"invoiceNotAvailable": "Rechnung nicht verfügbar",
"tokenNotAvailable": "Token nicht verfügbar",
"unit": "Einheit",
"status": "Status",
"pending": "Ausstehend",
"memo": "Memo",
"copyInvoiceButton": "RECHNUNG KOPIEREN",
"copyButton": "KOPIEREN",
"invoiceCopied": "Rechnung kopiert",
"tokenCopied": "Token kopiert",
"speed": "GESCHWINDIGKEIT:",
"settings": "Einstellungen",
"walletSection": "WALLET",
"backupSeedPhrase": "Seed-Phrase sichern",
"viewRecoveryWords": "Deine Wiederherstellungswörter anzeigen",
"connectedMints": "Verbundene Mints",
"manageCashuMints": "Verwalte deine Cashu Mints",
"pinAccess": "PIN-Zugang",
"pinEnabled": "Aktiviert",
"protectWithPin": "App mit PIN schützen",
"recoverTokens": "Tokens wiederherstellen",
"scanMintsWithSeed": "Mints mit Seed-Phrase scannen",
"appearanceSection": "SPRACHE",
"language": "Sprache",
"informationSection": "INFORMATION",
"version": "Version",
"about": "Über",
"deleteWallet": "Wallet löschen",
"spanish": "Español",
"english": "English",
"portuguese": "Português",
"french": "Français",
"russian": "Русский",
"german": "Deutsch",
"italian": "Italiano",
"korean": "한국어",
"chinese": "中文",
"japanese": "日本語",
"swahili": "Kiswahili",
"mnemonicNotFound": "Mnemonic nicht gefunden",
"createPin": "PIN erstellen",
"enterPinDigits": "Gib eine 4-stellige PIN ein",
"confirmPin": "PIN bestätigen",
"enterPinAgain": "PIN erneut eingeben",
"pinMismatch": "PINs stimmen nicht überein",
"pinActivated": "PIN aktiviert",
"pinDeactivated": "PIN deaktiviert",
"verifyPin": "PIN überprüfen",
"enterCurrentPin": "Gib deine aktuelle PIN ein",
"incorrectPin": "Falsche PIN",
"selectLanguage": "Sprache auswählen",
"languageChanged": "Sprache geändert zu {language}",
"@languageChanged": {
"placeholders": {
"language": { "type": "String" }
}
},
"close": "Schließen",
"aboutDescription": "Eine Cashu Wallet mit kubanischer DNA für die ganze Welt. Bruder von LaChispa.",
"couldNotOpenLink": "Link konnte nicht geöffnet werden",
"deleteWalletQuestion": "Wallet löschen?",
"actionIrreversible": "Diese Aktion ist unwiderruflich",
"deleteWalletWarning": "Alle Daten werden gelöscht, einschließlich deiner Seed-Phrase und Tokens. Stelle sicher, dass du ein Backup hast.",
"typeDeleteToConfirm": "Gib \"LÖSCHEN\" zur Bestätigung ein:",
"deleteConfirmWord": "LÖSCHEN",
"deleteError": "Löschfehler: {error}",
"@deleteError": {
"placeholders": {
"error": { "type": "String" }
}
},
"recoverTokensTitle": "Tokens wiederherstellen",
"recoverTokensDescription": "Mints scannen, um Tokens wiederherzustellen, die mit deiner Seed-Phrase verknüpft sind (NUT-13)",
"useCurrentSeedPhrase": "Meine aktuelle Seed-Phrase verwenden",
"scanWithSavedWords": "Mints mit den gespeicherten 12 Wörtern scannen",
"useOtherSeedPhrase": "Andere Seed-Phrase verwenden",
"recoverFromOtherWords": "Tokens von anderen 12 Wörtern wiederherstellen",
"mintsToScan": "Zu scannende Mints:",
"allMints": "Alle Mints ({count})",
"@allMints": {
"placeholders": {
"count": { "type": "int" }
}
},
"specificMint": "Ein bestimmter Mint",
"enterMnemonicWords": "Gib die 12 Wörter durch Leerzeichen getrennt ein...",
"scanMints": "Mints scannen",
"selectMintToScan": "Wähle einen Mint zum Scannen",
"mnemonicMustHaveWords": "Mnemonic muss 12 oder 24 Wörter haben",
"noConnectedMintsToScan": "Keine verbundenen Mints zum Scannen",
"recoveredTokens": "{tokens} von {mints} Mint(s) wiederhergestellt!",
"@recoveredTokens": {
"placeholders": {
"tokens": { "type": "String" },
"mints": { "type": "int" }
}
},
"scanCompleteNoTokens": "Scan abgeschlossen. Keine neuen Tokens gefunden.",
"mintsWithError": "({count} Mint(s) mit Fehler)",
"@mintsWithError": {
"placeholders": {
"count": { "type": "int" }
}
},
"recoveredFromMint": "{tokens} von {mint} wiederhergestellt!",
"@recoveredFromMint": {
"placeholders": {
"tokens": { "type": "String" },
"mint": { "type": "String" }
}
},
"noTokensFoundInMint": "Keine Tokens in {mint} gefunden.",
"@noTokensFoundInMint": {
"placeholders": {
"mint": { "type": "String" }
}
},
"recoveredAndTransferred": "{amount} {unit} wiederhergestellt und in deine Wallet übertragen!",
"@recoveredAndTransferred": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"noTokensForMnemonic": "Keine Tokens mit diesem Mnemonic verknüpft gefunden.",
"noConnectedMints": "Keine verbundenen Mints",
"addMintToStart": "Füge einen Mint hinzu, um zu starten",
"addMint": "Mint hinzufügen",
"mintDeleted": "Mint gelöscht",
"activeMintUpdated": "Aktiver Mint aktualisiert",
"mintUrl": "Mint URL:",
"mintUrlPlaceholder": "https://mint.example.com",
"urlMustStartWithHttps": "URL muss mit https:// beginnen",
"connectingToMint": "Verbinde mit Mint...",
"mintAddedSuccessfully": "Mint erfolgreich hinzugefügt",
"couldNotConnectToMint": "Verbindung zum Mint fehlgeschlagen",
"add": "Hinzufügen",
"success": "Erfolg",
"loading": "Laden...",
"retry": "Erneut versuchen",
"activeMint": "Aktiver Mint",
"mintMessage": "Mint Nachricht",
"url": "URL",
"currency": "Währung",
"unknown": "Unbekannt",
"useThisMint": "Diesen Mint verwenden",
"copyMintUrl": "Mint URL kopieren",
"deleteMint": "Mint löschen",
"copied": "{label} kopiert",
"@copied": {
"placeholders": {
"label": { "type": "String" }
}
},
"deleteMintConfirmTitle": "Mint löschen",
"deleteMintConfirmMessage": "Wenn du Guthaben auf diesem Mint hast, geht es verloren. Bist du sicher?",
"delete": "Löschen",
"offlineSend": "Offline senden",
"selectAll": "Alle",
"deselectAll": "Keine",
"selectNotesToSend": "Wähle die zu sendenden Notizen:",
"totalToSend": "Gesamt zu senden",
"notesSelected": "{count} Notizen ausgewählt",
"@notesSelected": {
"placeholders": {
"count": { "type": "int" }
}
},
"loadingProofsError": "Fehler beim Laden der Beweise: {error}",
"@loadingProofsError": {
"placeholders": {
"error": { "type": "String" }
}
},
"creatingTokenError": "Fehler beim Erstellen des Tokens: {error}",
"@creatingTokenError": {
"placeholders": {
"error": { "type": "String" }
}
},
"unknownState": "Unbekannter Zustand",
"depositAmountTitle": "{amount} {unit} einzahlen",
"@depositAmountTitle": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"receiveNow": "Jetzt empfangen",
"receiveLater": "Später empfangen",
"tokenSavedForLater": "Token zum späteren Einlösen gespeichert",
"noConnectionTokenSaved": "Keine Verbindung. Token zum späteren Einlösen gespeichert.",
"unknownMintOffline": "Dieser Token stammt von einem unbekannten Mint. Verbinde dich mit dem Internet, um ihn hinzuzufügen und den Token einzulösen.",
"noConnectionTryLater": "Keine Verbindung zum Mint. Versuche es später erneut.",
"saveTokenError": "Fehler beim Speichern des Tokens. Bitte erneut versuchen.",
"pendingTokenLimitReached": "Limit für ausstehende Tokens erreicht (max 50)",
"filterToReceive": "Zu empfangen",
"noPendingTokens": "Keine ausstehenden Tokens",
"noPendingTokensHint": "Speichere Tokens zum späteren Einlösen",
"pendingBadge": "AUSSTEHEND",
"expiresInDays": "{days, plural, =1{Läuft in 1 Tag ab} other{Läuft in {days} Tagen ab}}",
"@expiresInDays": {
"placeholders": {
"days": { "type": "int" }
}
},
"retryCount": "{count} Versuche",
"@retryCount": {
"placeholders": {
"count": { "type": "int" }
}
},
"claimNow": "Jetzt einlösen",
"pendingTokenClaimedSuccess": "{amount} {unit} eingelöst",
"@pendingTokenClaimedSuccess": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"pendingTokensClaimed": "{count, plural, =1{1 Token eingelöst ({amount} {unit})} other{{count} Tokens eingelöst ({amount} {unit})}}",
"@pendingTokensClaimed": {
"placeholders": {
"count": { "type": "int" },
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"scan": "Scannen",
"scanQrCode": "QR scannen",
"scanCashuToken": "Cashu Token scannen",
"scanLightningInvoice": "Rechnung scannen",
"scanningAnimatedQr": "Animierten QR scannen...",
"pointCameraAtQr": "Richte die Kamera auf den QR-Code",
"pointCameraAtCashuQr": "Richte die Kamera auf den Cashu Token QR",
"pointCameraAtInvoiceQr": "Richte die Kamera auf den Rechnungs-QR",
"unrecognizedQrCode": "Nicht erkannter QR-Code",
"scanCashuTokenHint": "Scanne einen Cashu Token (cashuA... oder cashuB...)",
"scanLightningInvoiceHint": "Scanne eine Lightning Rechnung (lnbc...)",
"addMintQuestion": "Diesen Mint hinzufügen?",
"cameraPermissionDenied": "Kamera-Berechtigung verweigert",
"paymentRequestNotSupported": "Zahlungsanfragen werden noch nicht unterstützt",
"p2pkTitle": "P2PK-Schlüssel",
"p2pkSettingsDescription": "Gesperrtes ecash empfangen",
"p2pkExperimental": "P2PK ist experimentell. Mit Vorsicht verwenden.",
"p2pkPendingSendWarning": "Du hast einen ausstehenden P2PK-Versand. Gehe zum Verlauf und aktualisiere, nachdem der Empfänger den Token eingelöst hat.",
"p2pkExperimentalShort": "Experimentell",
"p2pkPrimaryKey": "Primärschlüssel",
"p2pkDerived": "Abgeleitet",
"p2pkImported": "Importiert",
"p2pkImportedKeys": "Importierte Schlüssel",
"p2pkNoImportedKeys": "Keine importierten Schlüssel",
"p2pkShowQR": "QR zeigen",
"p2pkCopy": "Kopieren",
"p2pkImportNsec": "nsec importieren",
"p2pkImport": "Importieren",
"p2pkEnterLabel": "Name für diesen Schlüssel",
"p2pkLockToKey": "Senden mit P2PK-Signatur",
"p2pkLockDescription": "Nur der Empfänger kann einlösen",
"p2pkReceiverPubkey": "npub1... oder hex (64/66 Zeichen)",
"p2pkInvalidPubkey": "Ungültiger öffentlicher Schlüssel",
"p2pkInvalidPrivateKey": "Ungültiger privater Schlüssel",
"p2pkLockedToYou": "Für dich gesperrt",
"p2pkLockedToOther": "Für anderen Schlüssel gesperrt",
"p2pkCannotUnlock": "Du hast nicht den Schlüssel, um diesen Token zu entsperren",
"p2pkEnterPrivateKey": "Privaten Schlüssel eingeben (nsec)",
"p2pkDeleteTitle": "Schlüssel löschen",
"p2pkDeleteConfirm": "Diesen Schlüssel löschen? Du kannst keine Token mehr empfangen, die daran gesperrt sind.",
"p2pkRequiresConnection": "P2PK erfordert Verbindung zum Mint",
"p2pkErrorMaxKeysReached": "Maximale Anzahl importierter Schlüssel erreicht (10)",
"p2pkErrorInvalidNsec": "Ungültiger nsec",
"p2pkErrorKeyAlreadyExists": "Dieser Schlüssel existiert bereits",
"p2pkErrorKeyNotFound": "Schlüssel nicht gefunden",
"p2pkErrorCannotDeletePrimary": "Primärschlüssel kann nicht gelöscht werden"
}
+360 -7
View File
@@ -3,9 +3,17 @@
"appName": "ElCaju",
"appTagline": "Your private ecash wallet",
"loadingMessage1": "Encrypting your coins...",
"loadingMessage2": "Preparing your e-tokens...",
"loadingMessage3": "Connecting to the Mint...",
"loadingMessage4": "Privacy by default.",
"loadingMessage5": "Blind signing tokens...",
"loadingMessage6": "Go full Calle...",
"loadingMessage7": "Cashu + Bitchat = Privacy + Freedom",
"aboutTagline": "Privacy without borders.",
"welcomeTitle": "Welcome to ElCaju",
"welcomeSubtitle": "Your private ecash wallet.\nSimple, secure and non-custodial.",
"welcomeSubtitle": "Cashu for the world. Made in Cuba.",
"createWallet": "Create new wallet",
"restoreWallet": "Restore wallet",
@@ -39,36 +47,381 @@
"seedPlaceholder": "word1 word2 word3 ...",
"wordCount": "{count} words",
"needWords": "(you need 12 or 24)",
"restoreScanningMint": "Scanning mint for existing tokens...",
"restoreError": "Restore error: {error}",
"homeTitle": "Home",
"receive": "Receive",
"send": "Send",
"sendAction": "Send ↗",
"receiveAction": "↘ Receive",
"deposit": "Deposit",
"withdraw": "Withdraw",
"lightning": "Lightning",
"cashu": "Cashu",
"ecash": "Ecash",
"history": "History",
"noTransactions": "No transactions yet",
"depositOrReceive": "Deposit or receive sats to start",
"noMint": "No mint",
"balance": "Balance",
"sats": "sats",
"pasteEcashToken": "Paste ecash token",
"generateInvoiceToDeposit": "Generate invoice to deposit",
"createEcashToken": "Create ecash token",
"payLightningInvoice": "Pay Lightning invoice",
"receiveCashu": "Receive Cashu",
"pasteTheCashuToken": "Paste the Cashu token:",
"pasteFromClipboard": "Paste from clipboard",
"validToken": "Valid token",
"invalidToken": "Invalid or malformed token",
"amount": "Amount:",
"mint": "Mint:",
"claiming": "Claiming...",
"claimTokens": "Claim tokens",
"tokensReceived": "Tokens received",
"backToHome": "Back to home",
"tokenAlreadyClaimed": "This token was already claimed",
"unknownMint": "Token from unknown mint",
"claimError": "Claim error: {error}",
"sendCashu": "Send Cashu",
"selectNotesManually": "Select notes manually",
"amountToSend": "Amount to send:",
"available": "Available:",
"max": "(Max)",
"memoOptional": "Memo (optional):",
"memoPlaceholder": "What is this payment for?",
"creatingToken": "Creating token...",
"createToken": "Create token",
"noActiveMint": "No active mint",
"offlineModeMessage": "No connection. Using offline mode...",
"confirmSend": "Confirm send",
"confirm": "Confirm",
"cancel": "Cancel",
"insufficientBalance": "Insufficient balance",
"tokenCreationError": "Error creating token: {error}",
"tokenCreated": "Token created",
"copy": "Copy",
"share": "Share",
"tokenCashu": "Cashu Token",
"tokenCashuAnimatedQr": "Cashu Token (animated QR - {fragments} UR fragments)",
"keepTokenWarning": "Keep this token until the recipient claims it. If you lose it, you will lose the funds.",
"tokenCopiedToClipboard": "Token copied to clipboard",
"copyAsEmoji": "Copy as emoji",
"emojiCopiedToClipboard": "Token copied as emoji 🥜",
"peanutDecodeError": "Could not decode emoji token. It may be corrupted.",
"nfcWrite": "Write to NFC tag",
"nfcRead": "Read NFC tag",
"nfcHoldNear": "Hold device near NFC tag...",
"nfcWriteSuccess": "Token written to NFC tag",
"nfcWriteError": "NFC write error: {error}",
"@nfcWriteError": {
"placeholders": {
"error": { "type": "String" }
}
},
"nfcReadError": "NFC read error: {error}",
"@nfcReadError": {
"placeholders": {
"error": { "type": "String" }
}
},
"nfcDisabled": "NFC is disabled. Enable it in Settings.",
"nfcUnsupported": "This device does not support NFC",
"amountToDeposit": "Amount to deposit:",
"descriptionOptional": "Description (optional):",
"depositPlaceholder": "What is this deposit for?",
"generating": "Generating...",
"generateInvoice": "Generate invoice",
"depositLightning": "Deposit Lightning",
"payInvoiceTitle": "Pay invoice",
"generatingInvoice": "Generating invoice...",
"waitingForPayment": "Waiting for payment...",
"paymentReceived": "Payment received",
"tokensIssued": "Tokens issued!",
"error": "Error",
"unknownError": "Unknown error",
"back": "Back",
"copyInvoice": "Copy invoice",
"description": "Description:",
"invoiceCopiedToClipboard": "Invoice copied to clipboard",
"deposited": "{amount} {unit} deposited",
"pasteLightningInvoice": "Paste the Lightning invoice:",
"gettingQuote": "Getting quote...",
"validInvoice": "Valid invoice",
"invalidInvoice": "Invalid invoice",
"invalidInvoiceMalformed": "Invalid or malformed invoice",
"feeReserved": "Fee reserved:",
"total": "Total:",
"paying": "Paying...",
"payInvoice": "Pay invoice",
"confirmPayment": "Confirm payment",
"pay": "Pay",
"fee": "fee",
"invoiceExpired": "Invoice expired",
"amountOutOfRange": "Amount out of allowed range",
"resolvingType": "Resolving {type}...",
"@resolvingType": {
"placeholders": {
"type": { "type": "String" }
}
},
"invoiceAlreadyPaid": "Invoice already paid",
"paymentError": "Payment error: {error}",
"sent": "{amount} {unit} sent",
"filterAll": "All",
"filterPending": "Pending",
"filterEcash": "Ecash",
"filterLightning": "Lightning",
"receiveTokensToStart": "Receive Cashu tokens to start",
"noPendingTransactions": "No pending transactions",
"allTransactionsCompleted": "All your transactions are completed",
"noEcashTransactions": "No Ecash transactions",
"sendOrReceiveTokens": "Send or receive Cashu tokens",
"noLightningTransactions": "No Lightning transactions",
"depositOrWithdrawLightning": "Deposit or withdraw via Lightning",
"pendingStatus": "Pending",
"receivedStatus": "Received",
"sentStatus": "Sent",
"now": "Now",
"agoMinutes": "{minutes} min ago",
"agoHours": "{hours} h ago",
"agoDays": "{days} days ago",
"lightningInvoice": "Lightning Invoice",
"receivedEcash": "Received Ecash",
"sentEcash": "Sent Ecash",
"outgoingLightningPayment": "Outgoing Lightning Payment",
"invoiceNotAvailable": "Invoice not available",
"tokenNotAvailable": "Token not available",
"unit": "Unit",
"status": "Status",
"pending": "Pending",
"memo": "Memo",
"copyInvoiceButton": "COPY INVOICE",
"copyButton": "COPY",
"invoiceCopied": "Invoice copied",
"tokenCopied": "Token copied",
"speed": "SPEED:",
"settings": "Settings",
"walletSection": "WALLET",
"backupSeedPhrase": "Backup seed phrase",
"viewRecoveryWords": "View your recovery words",
"connectedMints": "Connected mints",
"manageCashuMints": "Manage your Cashu mints",
"pinAccess": "PIN access",
"pinEnabled": "Enabled",
"protectWithPin": "Protect the app with PIN",
"recoverTokens": "Recover tokens",
"scanMintsWithSeed": "Scan mints with seed phrase",
"appearanceSection": "LANGUAGE",
"language": "Language",
"spanish": "Español",
"english": "English",
"informationSection": "INFORMATION",
"version": "Version",
"about": "About",
"deleteWallet": "Delete wallet",
"spanish": "Español",
"english": "English",
"portuguese": "Português",
"french": "Français",
"russian": "Русский",
"german": "Deutsch",
"italian": "Italiano",
"korean": "한국어",
"chinese": "中文",
"japanese": "日本語",
"swahili": "Kiswahili",
"mnemonicNotFound": "Mnemonic not found",
"createPin": "Create PIN",
"enterPinDigits": "Enter a 4-digit PIN",
"confirmPin": "Confirm PIN",
"enterPinAgain": "Enter the PIN again",
"pinMismatch": "PINs do not match",
"pinActivated": "PIN activated",
"pinDeactivated": "PIN deactivated",
"verifyPin": "Verify PIN",
"enterCurrentPin": "Enter your current PIN",
"incorrectPin": "Incorrect PIN",
"selectLanguage": "Select language",
"languageChanged": "Language changed to {language}",
"close": "Close",
"aboutDescription": "A Cashu wallet with Cuban DNA for the entire world. Brother of LaChispa.",
"couldNotOpenLink": "Could not open link",
"deleteWalletQuestion": "Delete wallet?",
"actionIrreversible": "This action is irreversible",
"deleteWalletWarning": "All data will be deleted including your seed phrase and tokens. Make sure you have a backup.",
"typeDeleteToConfirm": "Type \"DELETE\" to confirm:",
"deleteConfirmWord": "DELETE",
"deleteError": "Delete error: {error}",
"recoverTokensTitle": "Recover tokens",
"recoverTokensDescription": "Scan mints to recover tokens associated with your seed phrase (NUT-13)",
"useCurrentSeedPhrase": "Use my current seed phrase",
"scanWithSavedWords": "Scan mints with the 12 saved words",
"useOtherSeedPhrase": "Use another seed phrase",
"recoverFromOtherWords": "Recover tokens from other 12 words",
"mintsToScan": "Mints to scan:",
"allMints": "All mints ({count})",
"specificMint": "A specific mint",
"enterMnemonicWords": "Enter the 12 words separated by spaces...",
"scanMints": "Scan mints",
"selectMintToScan": "Select a mint to scan",
"mnemonicMustHaveWords": "Mnemonic must have 12 or 24 words",
"noConnectedMintsToScan": "No connected mints to scan",
"recoveredTokens": "Recovered {tokens} from {mints} mint(s)!",
"scanCompleteNoTokens": "Scan complete. No new tokens found.",
"mintsWithError": "({count} mint(s) with error)",
"recoveredFromMint": "Recovered {tokens} from {mint}!",
"noTokensFoundInMint": "No tokens found in {mint}.",
"recoveredAndTransferred": "Recovered and transferred {amount} {unit} to your wallet!",
"noTokensForMnemonic": "No tokens found associated with that mnemonic.",
"noConnectedMints": "No connected mints",
"addMintToStart": "Add a mint to start",
"addMint": "Add mint",
"mintDeleted": "Mint deleted",
"activeMintUpdated": "Active mint updated",
"mintUrl": "Mint URL:",
"mintUrlPlaceholder": "https://mint.example.com",
"urlMustStartWithHttps": "URL must start with https://",
"connectingToMint": "Connecting to mint...",
"mintAddedSuccessfully": "Mint added successfully",
"couldNotConnectToMint": "Could not connect to mint",
"add": "Add",
"confirm": "Confirm",
"cancel": "Cancel",
"error": "Error",
"success": "Success",
"loading": "Loading...",
"retry": "Retry"
"retry": "Retry",
"activeMint": "Active mint",
"mintMessage": "Mint Message",
"url": "URL",
"currency": "Currency",
"unknown": "Unknown",
"useThisMint": "Use this mint",
"copyMintUrl": "Copy mint URL",
"deleteMint": "Delete mint",
"copied": "{label} copied",
"deleteMintConfirmTitle": "Delete mint",
"deleteMintConfirmMessage": "If you have balance in this mint, it will be lost. Are you sure?",
"delete": "Delete",
"offlineSend": "Offline Send",
"selectAll": "All",
"deselectAll": "None",
"selectNotesToSend": "Select the notes you want to send:",
"totalToSend": "Total to send",
"notesSelected": "{count} notes selected",
"loadingProofsError": "Error loading proofs: {error}",
"creatingTokenError": "Error creating token: {error}",
"unknownState": "Unknown state",
"depositAmountTitle": "Deposit {amount} {unit}",
"@depositAmountTitle": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"receiveNow": "Receive now",
"receiveLater": "Receive later",
"tokenSavedForLater": "Token saved to claim later",
"noConnectionTokenSaved": "No connection. Token saved to claim later.",
"unknownMintOffline": "This token is from an unknown mint. Connect to the internet to add it and claim the token.",
"noConnectionTryLater": "No connection to mint. Try again later.",
"saveTokenError": "Error saving token. Please try again.",
"pendingTokenLimitReached": "Pending tokens limit reached (max 50)",
"filterToReceive": "To receive",
"noPendingTokens": "No pending tokens",
"noPendingTokensHint": "Save tokens to claim later",
"pendingBadge": "PENDING",
"expiresInDays": "{days, plural, =1{Expires in 1 day} other{Expires in {days} days}}",
"@expiresInDays": {
"placeholders": {
"days": { "type": "int" }
}
},
"retryCount": "{count} retries",
"@retryCount": {
"placeholders": {
"count": { "type": "int" }
}
},
"claimNow": "Claim now",
"pendingTokenClaimedSuccess": "Claimed {amount} {unit}",
"@pendingTokenClaimedSuccess": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"pendingTokensClaimed": "{count, plural, =1{Claimed 1 token ({amount} {unit})} other{Claimed {count} tokens ({amount} {unit})}}",
"@pendingTokensClaimed": {
"placeholders": {
"count": { "type": "int" },
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"scan": "Scan",
"scanQrCode": "Scan QR Code",
"scanCashuToken": "Scan Cashu Token",
"scanLightningInvoice": "Scan Invoice",
"scanningAnimatedQr": "Scanning animated QR...",
"pointCameraAtQr": "Point the camera at the QR code",
"pointCameraAtCashuQr": "Point the camera at the Cashu token QR",
"pointCameraAtInvoiceQr": "Point the camera at the invoice QR",
"unrecognizedQrCode": "Unrecognized QR code",
"scanCashuTokenHint": "Scan a Cashu token (cashuA... or cashuB...)",
"scanLightningInvoiceHint": "Scan a Lightning invoice (lnbc...)",
"addMintQuestion": "Add this mint?",
"cameraPermissionDenied": "Camera permission denied",
"paymentRequestNotSupported": "Payment requests are not yet supported",
"p2pkTitle": "P2PK Keys",
"p2pkSettingsDescription": "Receive locked ecash",
"p2pkExperimental": "P2PK is experimental. Use with caution.",
"p2pkPendingSendWarning": "You have a pending P2PK send. Go to history and refresh after the recipient claims the token.",
"p2pkExperimentalShort": "Experimental",
"p2pkPrimaryKey": "Primary Key",
"p2pkDerived": "Derived",
"p2pkImported": "Imported",
"p2pkImportedKeys": "Imported Keys",
"p2pkNoImportedKeys": "No imported keys",
"p2pkShowQR": "Show QR",
"p2pkCopy": "Copy",
"p2pkImportNsec": "Import nsec",
"p2pkImport": "Import",
"p2pkEnterLabel": "Name for this key",
"p2pkLockToKey": "Send with P2PK signature",
"p2pkLockDescription": "Only the recipient can claim",
"p2pkReceiverPubkey": "npub1... or hex (64/66 chars)",
"p2pkInvalidPubkey": "Invalid public key",
"p2pkInvalidPrivateKey": "Invalid private key",
"p2pkLockedToYou": "Locked to you",
"p2pkLockedToOther": "Locked to another key",
"p2pkCannotUnlock": "You don't have the key to unlock this token",
"p2pkEnterPrivateKey": "Enter private key (nsec)",
"p2pkDeleteTitle": "Delete key",
"p2pkDeleteConfirm": "Delete this key? You won't be able to receive tokens locked to it.",
"p2pkRequiresConnection": "P2PK requires connection to the mint",
"p2pkErrorMaxKeysReached": "Maximum imported keys reached (10)",
"p2pkErrorInvalidNsec": "Invalid nsec",
"p2pkErrorKeyAlreadyExists": "This key already exists",
"p2pkErrorKeyNotFound": "Key not found",
"p2pkErrorCannotDeletePrimary": "Cannot delete primary key"
}
+472 -13
View File
@@ -3,9 +3,17 @@
"appName": "ElCaju",
"appTagline": "Tu wallet de ecash privado",
"loadingMessage1": "Cifrando tus monedas...",
"loadingMessage2": "Preparando tus e-tokens...",
"loadingMessage3": "Conectando con el Mint...",
"loadingMessage4": "Privacidad por defecto.",
"loadingMessage5": "Firmando tokens ciegamente...",
"loadingMessage6": "Go full Calle...",
"loadingMessage7": "Cashu + Bitchat = Privacidad + Libertad",
"aboutTagline": "Privacidad sin fronteras.",
"welcomeTitle": "Bienvenido a ElCaju",
"welcomeSubtitle": "Tu wallet de ecash privado.\nSimple, seguro y sin custodia.",
"welcomeSubtitle": "Cashu para el mundo. Hecho en Cuba.",
"createWallet": "Crear nueva wallet",
"restoreWallet": "Restaurar wallet",
@@ -40,49 +48,500 @@
"wordCount": "{count} palabras",
"@wordCount": {
"placeholders": {
"count": {
"type": "int"
}
"count": { "type": "int" }
}
},
"needWords": "(necesitas 12 o 24)",
"restoreScanningMint": "Escaneando mint en busca de tokens...",
"restoreError": "Error al restaurar: {error}",
"@restoreError": {
"placeholders": {
"error": {
"type": "String"
}
"error": { "type": "String" }
}
},
"homeTitle": "Inicio",
"receive": "Recibir",
"send": "Enviar",
"sendAction": "Enviar ↗",
"receiveAction": "↘ Recibir",
"deposit": "Depositar",
"withdraw": "Retirar",
"lightning": "Lightning",
"cashu": "Cashu",
"ecash": "Ecash",
"history": "Historial",
"noTransactions": "Sin transacciones aún",
"depositOrReceive": "Deposita o recibe sats para empezar",
"noMint": "Sin mint",
"balance": "Balance",
"sats": "sats",
"pasteEcashToken": "Pegar token ecash",
"generateInvoiceToDeposit": "Generar invoice para depositar",
"createEcashToken": "Crear token ecash",
"payLightningInvoice": "Pagar invoice Lightning",
"receiveCashu": "Recibir Cashu",
"pasteTheCashuToken": "Pega el token Cashu:",
"pasteFromClipboard": "Pegar del portapapeles",
"validToken": "Token válido",
"invalidToken": "Token inválido o malformado",
"amount": "Monto:",
"mint": "Mint:",
"claiming": "Reclamando...",
"claimTokens": "Reclamar tokens",
"tokensReceived": "Tokens recibidos",
"backToHome": "Volver al inicio",
"tokenAlreadyClaimed": "Este token ya fue reclamado",
"unknownMint": "Token de un mint desconocido",
"claimError": "Error al reclamar: {error}",
"@claimError": {
"placeholders": {
"error": { "type": "String" }
}
},
"sendCashu": "Enviar Cashu",
"selectNotesManually": "Seleccionar notas manualmente",
"amountToSend": "Monto a enviar:",
"available": "Disponible:",
"max": "(Max)",
"memoOptional": "Memo (opcional):",
"memoPlaceholder": "¿Para qué es este pago?",
"creatingToken": "Creando token...",
"createToken": "Crear token",
"noActiveMint": "No hay mint activo",
"offlineModeMessage": "Sin conexión. Usando modo offline...",
"confirmSend": "Confirmar envío",
"confirm": "Confirmar",
"cancel": "Cancelar",
"insufficientBalance": "Balance insuficiente",
"tokenCreationError": "Error al crear token: {error}",
"@tokenCreationError": {
"placeholders": {
"error": { "type": "String" }
}
},
"tokenCreated": "Token creado",
"copy": "Copiar",
"share": "Compartir",
"tokenCashu": "Token Cashu",
"tokenCashuAnimatedQr": "Token Cashu (QR animado - {fragments} fragmentos UR)",
"@tokenCashuAnimatedQr": {
"placeholders": {
"fragments": { "type": "int" }
}
},
"keepTokenWarning": "Guarda este token hasta que el receptor lo reclame. Si lo pierdes, perderás los fondos.",
"tokenCopiedToClipboard": "Token copiado al portapapeles",
"copyAsEmoji": "Copiar como emoji",
"emojiCopiedToClipboard": "Token copiado como emoji 🥜",
"peanutDecodeError": "No se pudo decodificar el token emoji. Puede estar corrupto.",
"nfcWrite": "Escribir en tag NFC",
"nfcRead": "Leer tag NFC",
"nfcHoldNear": "Acerca el dispositivo al tag NFC...",
"nfcWriteSuccess": "Token escrito en tag NFC",
"nfcWriteError": "Error NFC al escribir: {error}",
"@nfcWriteError": {
"placeholders": {
"error": { "type": "String" }
}
},
"nfcReadError": "Error NFC al leer: {error}",
"@nfcReadError": {
"placeholders": {
"error": { "type": "String" }
}
},
"nfcDisabled": "NFC está desactivado. Actívalo en Ajustes.",
"nfcUnsupported": "Este dispositivo no soporta NFC",
"amountToDeposit": "Monto a depositar:",
"descriptionOptional": "Descripción (opcional):",
"depositPlaceholder": "¿Para qué es esta recarga?",
"generating": "Generando...",
"generateInvoice": "Generar invoice",
"depositLightning": "Depositar Lightning",
"payInvoiceTitle": "Pagar invoice",
"generatingInvoice": "Generando invoice...",
"waitingForPayment": "Esperando pago...",
"paymentReceived": "Pago recibido",
"tokensIssued": "Tokens emitidos!",
"error": "Error",
"unknownError": "Error desconocido",
"back": "Volver",
"copyInvoice": "Copiar invoice",
"description": "Descripción:",
"invoiceCopiedToClipboard": "Invoice copiado al portapapeles",
"deposited": "{amount} {unit} depositados",
"@deposited": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"pasteLightningInvoice": "Pega el invoice Lightning:",
"gettingQuote": "Obteniendo quote...",
"validInvoice": "Invoice válido",
"invalidInvoice": "Invoice inválido",
"invalidInvoiceMalformed": "Invoice inválido o malformado",
"feeReserved": "Fee reservado:",
"total": "Total:",
"paying": "Pagando...",
"payInvoice": "Pagar invoice",
"confirmPayment": "Confirmar pago",
"pay": "Pagar",
"fee": "fee",
"invoiceExpired": "Invoice expirado",
"amountOutOfRange": "Monto fuera del rango permitido",
"resolvingType": "Resolviendo {type}...",
"@resolvingType": {
"placeholders": {
"type": { "type": "String" }
}
},
"invoiceAlreadyPaid": "Invoice ya fue pagado",
"paymentError": "Error al pagar: {error}",
"@paymentError": {
"placeholders": {
"error": { "type": "String" }
}
},
"sent": "{amount} {unit} enviados",
"@sent": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"filterAll": "Todos",
"filterPending": "Pendientes",
"filterEcash": "Ecash",
"filterLightning": "Lightning",
"receiveTokensToStart": "Recibe tokens Cashu para empezar",
"noPendingTransactions": "Sin transacciones pendientes",
"allTransactionsCompleted": "Todas tus transacciones están completadas",
"noEcashTransactions": "Sin transacciones Ecash",
"sendOrReceiveTokens": "Envía o recibe tokens Cashu",
"noLightningTransactions": "Sin transacciones Lightning",
"depositOrWithdrawLightning": "Deposita o retira via Lightning",
"pendingStatus": "Pendiente",
"receivedStatus": "Recibido",
"sentStatus": "Enviado",
"now": "Ahora",
"agoMinutes": "Hace {minutes} min",
"@agoMinutes": {
"placeholders": {
"minutes": { "type": "int" }
}
},
"agoHours": "Hace {hours} h",
"@agoHours": {
"placeholders": {
"hours": { "type": "int" }
}
},
"agoDays": "Hace {days} días",
"@agoDays": {
"placeholders": {
"days": { "type": "int" }
}
},
"lightningInvoice": "Invoice Lightning",
"receivedEcash": "Ecash Recibido",
"sentEcash": "Ecash Enviado",
"outgoingLightningPayment": "Pago Lightning Saliente",
"invoiceNotAvailable": "Invoice no disponible",
"tokenNotAvailable": "Token no disponible",
"unit": "Unidad",
"status": "Estado",
"pending": "Pendiente",
"memo": "Memo",
"copyInvoiceButton": "COPIAR INVOICE",
"copyButton": "COPIAR",
"invoiceCopied": "Invoice copiado",
"tokenCopied": "Token copiado",
"speed": "VELOCIDAD:",
"settings": "Configuración",
"walletSection": "WALLET",
"backupSeedPhrase": "Backup seed phrase",
"viewRecoveryWords": "Ver tus palabras de recuperación",
"connectedMints": "Mints conectados",
"manageCashuMints": "Gestionar tus mints Cashu",
"pinAccess": "PIN de acceso",
"pinEnabled": "Activado",
"protectWithPin": "Proteger la app con PIN",
"recoverTokens": "Recuperar tokens",
"scanMintsWithSeed": "Escanear mints con seed phrase",
"appearanceSection": "IDIOMA",
"language": "Idioma",
"spanish": "Español",
"english": "English",
"informationSection": "INFORMACIÓN",
"version": "Versión",
"about": "Acerca de",
"deleteWallet": "Borrar wallet",
"spanish": "Español",
"english": "English",
"portuguese": "Português",
"french": "Français",
"russian": "Русский",
"german": "Deutsch",
"italian": "Italiano",
"korean": "한국어",
"chinese": "中文",
"japanese": "日本語",
"swahili": "Kiswahili",
"mnemonicNotFound": "No se encontró el mnemonic",
"createPin": "Crear PIN",
"enterPinDigits": "Ingresa un PIN de 4 dígitos",
"confirmPin": "Confirmar PIN",
"enterPinAgain": "Ingresa el PIN nuevamente",
"pinMismatch": "Los PIN no coinciden",
"pinActivated": "PIN activado",
"pinDeactivated": "PIN desactivado",
"verifyPin": "Verificar PIN",
"enterCurrentPin": "Ingresa tu PIN actual",
"incorrectPin": "PIN incorrecto",
"selectLanguage": "Seleccionar idioma",
"languageChanged": "Idioma cambiado a {language}",
"@languageChanged": {
"placeholders": {
"language": { "type": "String" }
}
},
"close": "Cerrar",
"aboutDescription": "Un wallet de Cashu con ADN cubano para el mundo entero. Hermano de LaChispa.",
"couldNotOpenLink": "No se pudo abrir el enlace",
"deleteWalletQuestion": "¿Borrar wallet?",
"actionIrreversible": "Esta acción es irreversible",
"deleteWalletWarning": "Se eliminarán todos los datos incluyendo tu seed phrase y tokens. Asegúrate de tener un backup.",
"typeDeleteToConfirm": "Escribe \"BORRAR\" para confirmar:",
"deleteConfirmWord": "BORRAR",
"deleteError": "Error al borrar: {error}",
"@deleteError": {
"placeholders": {
"error": { "type": "String" }
}
},
"recoverTokensTitle": "Recuperar tokens",
"recoverTokensDescription": "Escanea los mints para recuperar tokens asociados a tu seed phrase (NUT-13)",
"useCurrentSeedPhrase": "Usar mi seed phrase actual",
"scanWithSavedWords": "Escanear mints con las 12 palabras guardadas",
"useOtherSeedPhrase": "Usar otra seed phrase",
"recoverFromOtherWords": "Recuperar tokens de otras 12 palabras",
"mintsToScan": "Mints a escanear:",
"allMints": "Todos los mints ({count})",
"@allMints": {
"placeholders": {
"count": { "type": "int" }
}
},
"specificMint": "Un mint específico",
"enterMnemonicWords": "Ingresa las 12 palabras separadas por espacios...",
"scanMints": "Escanear mints",
"selectMintToScan": "Selecciona un mint para escanear",
"mnemonicMustHaveWords": "El mnemonic debe tener 12 o 24 palabras",
"noConnectedMintsToScan": "No hay mints conectados para escanear",
"recoveredTokens": "¡Recuperados {tokens} de {mints} mint(s)!",
"@recoveredTokens": {
"placeholders": {
"tokens": { "type": "String" },
"mints": { "type": "int" }
}
},
"scanCompleteNoTokens": "Escaneo completado. No se encontraron tokens nuevos.",
"mintsWithError": "({count} mint(s) con error)",
"@mintsWithError": {
"placeholders": {
"count": { "type": "int" }
}
},
"recoveredFromMint": "¡Recuperados {tokens} de {mint}!",
"@recoveredFromMint": {
"placeholders": {
"tokens": { "type": "String" },
"mint": { "type": "String" }
}
},
"noTokensFoundInMint": "No se encontraron tokens en {mint}.",
"@noTokensFoundInMint": {
"placeholders": {
"mint": { "type": "String" }
}
},
"recoveredAndTransferred": "¡Recuperados y transferidos {amount} {unit} a tu wallet!",
"@recoveredAndTransferred": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"noTokensForMnemonic": "No se encontraron tokens asociados a ese mnemonic.",
"noConnectedMints": "No hay mints conectados",
"addMintToStart": "Agrega un mint para comenzar",
"addMint": "Agregar mint",
"mintDeleted": "Mint eliminado",
"activeMintUpdated": "Mint activo actualizado",
"mintUrl": "URL del mint:",
"mintUrlPlaceholder": "https://mint.example.com",
"urlMustStartWithHttps": "La URL debe comenzar con https://",
"connectingToMint": "Conectando al mint...",
"mintAddedSuccessfully": "Mint agregado correctamente",
"couldNotConnectToMint": "No se pudo conectar al mint",
"add": "Agregar",
"confirm": "Confirmar",
"cancel": "Cancelar",
"error": "Error",
"success": "Éxito",
"loading": "Cargando...",
"retry": "Reintentar"
"retry": "Reintentar",
"activeMint": "Mint activo",
"mintMessage": "Mensaje del Mint",
"url": "URL",
"currency": "Moneda",
"unknown": "Desconocido",
"useThisMint": "Usar este mint",
"copyMintUrl": "Copiar URL del mint",
"deleteMint": "Eliminar mint",
"copied": "{label} copiado",
"@copied": {
"placeholders": {
"label": { "type": "String" }
}
},
"deleteMintConfirmTitle": "Eliminar mint",
"deleteMintConfirmMessage": "Si tienes balance en este mint, se perderá. ¿Estás seguro?",
"delete": "Eliminar",
"offlineSend": "Envío Offline",
"selectAll": "Todo",
"deselectAll": "Ninguno",
"selectNotesToSend": "Selecciona las notas que deseas enviar:",
"totalToSend": "Total a enviar",
"notesSelected": "{count} notas seleccionadas",
"@notesSelected": {
"placeholders": {
"count": { "type": "int" }
}
},
"loadingProofsError": "Error cargando proofs: {error}",
"@loadingProofsError": {
"placeholders": {
"error": { "type": "String" }
}
},
"creatingTokenError": "Error creando token: {error}",
"@creatingTokenError": {
"placeholders": {
"error": { "type": "String" }
}
},
"unknownState": "Estado desconocido",
"depositAmountTitle": "Depositar {amount} {unit}",
"@depositAmountTitle": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"receiveNow": "Recibir ahora",
"receiveLater": "Recibir después",
"tokenSavedForLater": "Token guardado para reclamar después",
"noConnectionTokenSaved": "Sin conexión. Token guardado para reclamar después.",
"unknownMintOffline": "Este token es de un mint desconocido. Conéctate a internet para agregarlo y reclamar el token.",
"noConnectionTryLater": "Sin conexión al mint. Intenta más tarde.",
"saveTokenError": "Error al guardar el token. Intenta de nuevo.",
"pendingTokenLimitReached": "Límite de tokens pendientes alcanzado (max 50)",
"filterToReceive": "Para recibir",
"noPendingTokens": "Sin tokens pendientes",
"noPendingTokensHint": "Guarda tokens para reclamar después",
"pendingBadge": "PENDIENTE",
"expiresInDays": "{days, plural, =1{Expira en 1 día} other{Expira en {days} días}}",
"@expiresInDays": {
"placeholders": {
"days": { "type": "int" }
}
},
"retryCount": "{count} reintentos",
"@retryCount": {
"placeholders": {
"count": { "type": "int" }
}
},
"claimNow": "Reclamar ahora",
"pendingTokenClaimedSuccess": "Reclamados {amount} {unit}",
"@pendingTokenClaimedSuccess": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"pendingTokensClaimed": "{count, plural, =1{Reclamado 1 token ({amount} {unit})} other{Reclamados {count} tokens ({amount} {unit})}}",
"@pendingTokensClaimed": {
"placeholders": {
"count": { "type": "int" },
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"scan": "Escanear",
"scanQrCode": "Escanear QR",
"scanCashuToken": "Escanear token Cashu",
"scanLightningInvoice": "Escanear invoice",
"scanningAnimatedQr": "Escaneando QR animado...",
"pointCameraAtQr": "Apunta la cámara al código QR",
"pointCameraAtCashuQr": "Apunta la cámara al QR del token Cashu",
"pointCameraAtInvoiceQr": "Apunta la cámara al QR del invoice",
"unrecognizedQrCode": "Código QR no reconocido",
"scanCashuTokenHint": "Escanea un token Cashu (cashuA... o cashuB...)",
"scanLightningInvoiceHint": "Escanea un invoice Lightning (lnbc...)",
"addMintQuestion": "¿Agregar este mint?",
"cameraPermissionDenied": "Permiso de cámara denegado",
"paymentRequestNotSupported": "Los payment requests aún no están soportados",
"p2pkTitle": "Claves P2PK",
"p2pkSettingsDescription": "Recibir ecash bloqueado",
"p2pkExperimental": "P2PK es experimental. Úsala con precaución.",
"p2pkPendingSendWarning": "Tienes un envío P2PK pendiente. Ve al historial y presiona actualizar después de que el destinatario reclame el token.",
"p2pkExperimentalShort": "Experimental",
"p2pkPrimaryKey": "Clave Principal",
"p2pkDerived": "Derivada",
"p2pkImported": "Importada",
"p2pkImportedKeys": "Claves Importadas",
"p2pkNoImportedKeys": "No hay claves importadas",
"p2pkShowQR": "Mostrar QR",
"p2pkCopy": "Copiar",
"p2pkImportNsec": "Importar nsec",
"p2pkImport": "Importar",
"p2pkEnterLabel": "Nombre para esta clave",
"p2pkLockToKey": "Envío con firma P2PK",
"p2pkLockDescription": "Solo el destinatario podrá reclamar",
"p2pkReceiverPubkey": "npub1... o hex (64/66 caracteres)",
"p2pkInvalidPubkey": "Clave pública inválida",
"p2pkInvalidPrivateKey": "Clave privada inválida",
"p2pkLockedToYou": "Bloqueado para ti",
"p2pkLockedToOther": "Bloqueado para otra clave",
"p2pkCannotUnlock": "No tienes la clave para desbloquear este token",
"p2pkEnterPrivateKey": "Ingresa la clave privada (nsec)",
"p2pkDeleteTitle": "Eliminar clave",
"p2pkDeleteConfirm": "¿Eliminar esta clave? No podrás recibir tokens bloqueados a ella.",
"p2pkRequiresConnection": "P2PK requiere conexión al mint",
"p2pkErrorMaxKeysReached": "Máximo de claves importadas alcanzado (10)",
"p2pkErrorInvalidNsec": "nsec inválido",
"p2pkErrorKeyAlreadyExists": "Esta clave ya existe",
"p2pkErrorKeyNotFound": "Clave no encontrada",
"p2pkErrorCannotDeletePrimary": "No se puede eliminar la clave principal"
}
+538
View File
@@ -0,0 +1,538 @@
{
"@@locale": "fr",
"appName": "ElCaju",
"appTagline": "Votre portefeuille ecash privé",
"loadingMessage1": "Chiffrement de vos pièces...",
"loadingMessage2": "Préparation de vos e-tokens...",
"loadingMessage3": "Connexion au Mint...",
"loadingMessage4": "Confidentialité par défaut.",
"loadingMessage5": "Signature aveugle des tokens...",
"loadingMessage6": "Go full Calle...",
"loadingMessage7": "Cashu + Bitchat = Confidentialité + Liberté",
"aboutTagline": "Confidentialité sans frontières.",
"welcomeTitle": "Bienvenue sur ElCaju",
"welcomeSubtitle": "Cashu pour le monde. Fait à Cuba.",
"createWallet": "Créer un nouveau portefeuille",
"restoreWallet": "Restaurer le portefeuille",
"createWalletTitle": "Créer un portefeuille",
"creatingWallet": "Création de votre portefeuille...",
"generatingSeed": "Génération sécurisée de votre phrase de récupération",
"createWalletDescription": "Une phrase de récupération de 12 mots sera générée.\nConservez-la dans un endroit sûr.",
"generateWallet": "Générer le portefeuille",
"walletCreated": "Portefeuille créé !",
"walletCreatedDescription": "Votre portefeuille est prêt. Nous vous recommandons de sauvegarder votre phrase de récupération maintenant.",
"backupWarning": "Sans sauvegarde, vous perdrez l'accès à vos fonds si vous perdez l'appareil.",
"backupNow": "Sauvegarder maintenant",
"backupLater": "Plus tard",
"backupTitle": "Sauvegarde",
"seedPhraseTitle": "Votre phrase de récupération",
"seedPhraseDescription": "Conservez ces 12 mots dans l'ordre. C'est le seul moyen de récupérer votre portefeuille.",
"revealSeedPhrase": "Révéler la phrase de récupération",
"tapToReveal": "Appuyez sur le bouton pour révéler\nvotre phrase de récupération",
"copyToClipboard": "Copier dans le presse-papiers",
"seedCopied": "Phrase copiée dans le presse-papiers",
"neverShareSeed": "Ne partagez jamais votre phrase de récupération avec personne.",
"confirmBackup": "J'ai sauvegardé ma phrase de récupération dans un endroit sûr",
"continue_": "Continuer",
"restoreTitle": "Restaurer le portefeuille",
"enterSeedPhrase": "Entrez votre phrase de récupération",
"enterSeedDescription": "Tapez les 12 ou 24 mots séparés par des espaces.",
"seedPlaceholder": "mot1 mot2 mot3 ...",
"wordCount": "{count} mots",
"@wordCount": {
"placeholders": {
"count": { "type": "int" }
}
},
"needWords": "(vous avez besoin de 12 ou 24)",
"restoreScanningMint": "Recherche de tokens sur le mint...",
"restoreError": "Erreur de restauration : {error}",
"@restoreError": {
"placeholders": {
"error": { "type": "String" }
}
},
"homeTitle": "Accueil",
"receive": "Recevoir",
"send": "Envoyer",
"sendAction": "Envoyer ↗",
"receiveAction": "↘ Recevoir",
"deposit": "Déposer",
"withdraw": "Retirer",
"lightning": "Lightning",
"cashu": "Cashu",
"ecash": "Ecash",
"history": "Historique",
"noTransactions": "Aucune transaction",
"depositOrReceive": "Déposez ou recevez des sats pour commencer",
"noMint": "Aucun mint",
"balance": "Solde",
"sats": "sats",
"pasteEcashToken": "Coller le token ecash",
"generateInvoiceToDeposit": "Générer une facture pour déposer",
"createEcashToken": "Créer un token ecash",
"payLightningInvoice": "Payer une facture Lightning",
"receiveCashu": "Recevoir Cashu",
"pasteTheCashuToken": "Collez le token Cashu :",
"pasteFromClipboard": "Coller depuis le presse-papiers",
"validToken": "Token valide",
"invalidToken": "Token invalide ou malformé",
"amount": "Montant :",
"mint": "Mint :",
"claiming": "Réclamation...",
"claimTokens": "Réclamer les tokens",
"tokensReceived": "Tokens reçus",
"backToHome": "Retour à l'accueil",
"tokenAlreadyClaimed": "Ce token a déjà été réclamé",
"unknownMint": "Token d'un mint inconnu",
"claimError": "Erreur de réclamation : {error}",
"@claimError": {
"placeholders": {
"error": { "type": "String" }
}
},
"sendCashu": "Envoyer Cashu",
"selectNotesManually": "Sélectionner les notes manuellement",
"amountToSend": "Montant à envoyer :",
"available": "Disponible :",
"max": "(Max)",
"memoOptional": "Mémo (optionnel) :",
"memoPlaceholder": "À quoi sert ce paiement ?",
"creatingToken": "Création du token...",
"createToken": "Créer le token",
"noActiveMint": "Aucun mint actif",
"offlineModeMessage": "Pas de connexion. Mode hors ligne...",
"confirmSend": "Confirmer l'envoi",
"confirm": "Confirmer",
"cancel": "Annuler",
"insufficientBalance": "Solde insuffisant",
"tokenCreationError": "Erreur de création du token : {error}",
"@tokenCreationError": {
"placeholders": {
"error": { "type": "String" }
}
},
"tokenCreated": "Token créé",
"copy": "Copier",
"share": "Partager",
"tokenCashu": "Token Cashu",
"tokenCashuAnimatedQr": "Token Cashu (QR animé - {fragments} fragments UR)",
"@tokenCashuAnimatedQr": {
"placeholders": {
"fragments": { "type": "int" }
}
},
"keepTokenWarning": "Conservez ce token jusqu'à ce que le destinataire le réclame. Si vous le perdez, vous perdrez les fonds.",
"tokenCopiedToClipboard": "Token copié dans le presse-papiers",
"copyAsEmoji": "Copier en emoji",
"emojiCopiedToClipboard": "Token copié en emoji 🥜",
"peanutDecodeError": "Impossible de décoder le token emoji. Il est peut-être corrompu.",
"nfcWrite": "Écrire sur tag NFC",
"nfcRead": "Lire tag NFC",
"nfcHoldNear": "Approchez l'appareil du tag NFC...",
"nfcWriteSuccess": "Token écrit sur le tag NFC",
"nfcWriteError": "Erreur NFC écriture : {error}",
"@nfcWriteError": { "placeholders": { "error": { "type": "String" } } },
"nfcReadError": "Erreur NFC lecture : {error}",
"@nfcReadError": { "placeholders": { "error": { "type": "String" } } },
"nfcDisabled": "NFC est désactivé. Activez-le dans les Paramètres.",
"nfcUnsupported": "Cet appareil ne prend pas en charge le NFC",
"amountToDeposit": "Montant à déposer :",
"descriptionOptional": "Description (optionnelle) :",
"depositPlaceholder": "À quoi sert ce dépôt ?",
"generating": "Génération...",
"generateInvoice": "Générer la facture",
"depositLightning": "Déposer Lightning",
"payInvoiceTitle": "Payer la facture",
"generatingInvoice": "Génération de la facture...",
"waitingForPayment": "En attente du paiement...",
"paymentReceived": "Paiement reçu",
"tokensIssued": "Tokens émis !",
"error": "Erreur",
"unknownError": "Erreur inconnue",
"back": "Retour",
"copyInvoice": "Copier la facture",
"description": "Description :",
"invoiceCopiedToClipboard": "Facture copiée dans le presse-papiers",
"deposited": "{amount} {unit} déposés",
"@deposited": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"pasteLightningInvoice": "Collez la facture Lightning :",
"gettingQuote": "Obtention du devis...",
"validInvoice": "Facture valide",
"invalidInvoice": "Facture invalide",
"invalidInvoiceMalformed": "Facture invalide ou malformée",
"feeReserved": "Frais réservés :",
"total": "Total :",
"paying": "Paiement...",
"payInvoice": "Payer la facture",
"confirmPayment": "Confirmer le paiement",
"pay": "Payer",
"fee": "frais",
"invoiceExpired": "Facture expirée",
"amountOutOfRange": "Montant hors de la plage autorisée",
"resolvingType": "Résolution de {type}...",
"@resolvingType": {
"placeholders": {
"type": { "type": "String" }
}
},
"invoiceAlreadyPaid": "Facture déjà payée",
"paymentError": "Erreur de paiement : {error}",
"@paymentError": {
"placeholders": {
"error": { "type": "String" }
}
},
"sent": "{amount} {unit} envoyés",
"@sent": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"filterAll": "Tous",
"filterPending": "En attente",
"filterEcash": "Ecash",
"filterLightning": "Lightning",
"receiveTokensToStart": "Recevez des tokens Cashu pour commencer",
"noPendingTransactions": "Aucune transaction en attente",
"allTransactionsCompleted": "Toutes vos transactions sont terminées",
"noEcashTransactions": "Aucune transaction Ecash",
"sendOrReceiveTokens": "Envoyez ou recevez des tokens Cashu",
"noLightningTransactions": "Aucune transaction Lightning",
"depositOrWithdrawLightning": "Déposez ou retirez via Lightning",
"pendingStatus": "En attente",
"receivedStatus": "Reçu",
"sentStatus": "Envoyé",
"now": "Maintenant",
"agoMinutes": "Il y a {minutes} min",
"@agoMinutes": {
"placeholders": {
"minutes": { "type": "int" }
}
},
"agoHours": "Il y a {hours} h",
"@agoHours": {
"placeholders": {
"hours": { "type": "int" }
}
},
"agoDays": "Il y a {days} jours",
"@agoDays": {
"placeholders": {
"days": { "type": "int" }
}
},
"lightningInvoice": "Facture Lightning",
"receivedEcash": "Ecash reçu",
"sentEcash": "Ecash envoyé",
"outgoingLightningPayment": "Paiement Lightning sortant",
"invoiceNotAvailable": "Facture non disponible",
"tokenNotAvailable": "Token non disponible",
"unit": "Unité",
"status": "Statut",
"pending": "En attente",
"memo": "Mémo",
"copyInvoiceButton": "COPIER LA FACTURE",
"copyButton": "COPIER",
"invoiceCopied": "Facture copiée",
"tokenCopied": "Token copié",
"speed": "VITESSE :",
"settings": "Paramètres",
"walletSection": "PORTEFEUILLE",
"backupSeedPhrase": "Sauvegarder la phrase de récupération",
"viewRecoveryWords": "Voir vos mots de récupération",
"connectedMints": "Mints connectés",
"manageCashuMints": "Gérer vos mints Cashu",
"pinAccess": "Code PIN",
"pinEnabled": "Activé",
"protectWithPin": "Protéger l'app avec un PIN",
"recoverTokens": "Récupérer les tokens",
"scanMintsWithSeed": "Scanner les mints avec la phrase de récupération",
"appearanceSection": "LANGUE",
"language": "Langue",
"informationSection": "INFORMATIONS",
"version": "Version",
"about": "À propos",
"deleteWallet": "Supprimer le portefeuille",
"spanish": "Español",
"english": "English",
"portuguese": "Português",
"french": "Français",
"russian": "Русский",
"german": "Deutsch",
"italian": "Italiano",
"korean": "한국어",
"chinese": "中文",
"japanese": "日本語",
"swahili": "Kiswahili",
"mnemonicNotFound": "Mnémonique non trouvé",
"createPin": "Créer un PIN",
"enterPinDigits": "Entrez un PIN à 4 chiffres",
"confirmPin": "Confirmer le PIN",
"enterPinAgain": "Entrez le PIN à nouveau",
"pinMismatch": "Les PIN ne correspondent pas",
"pinActivated": "PIN activé",
"pinDeactivated": "PIN désactivé",
"verifyPin": "Vérifier le PIN",
"enterCurrentPin": "Entrez votre PIN actuel",
"incorrectPin": "PIN incorrect",
"selectLanguage": "Sélectionner la langue",
"languageChanged": "Langue changée en {language}",
"@languageChanged": {
"placeholders": {
"language": { "type": "String" }
}
},
"close": "Fermer",
"aboutDescription": "Un portefeuille Cashu avec ADN cubain pour le monde entier. Frère de LaChispa.",
"couldNotOpenLink": "Impossible d'ouvrir le lien",
"deleteWalletQuestion": "Supprimer le portefeuille ?",
"actionIrreversible": "Cette action est irréversible",
"deleteWalletWarning": "Toutes les données seront supprimées, y compris votre phrase de récupération et vos tokens. Assurez-vous d'avoir une sauvegarde.",
"typeDeleteToConfirm": "Tapez \"SUPPRIMER\" pour confirmer :",
"deleteConfirmWord": "SUPPRIMER",
"deleteError": "Erreur de suppression : {error}",
"@deleteError": {
"placeholders": {
"error": { "type": "String" }
}
},
"recoverTokensTitle": "Récupérer les tokens",
"recoverTokensDescription": "Scanner les mints pour récupérer les tokens associés à votre phrase de récupération (NUT-13)",
"useCurrentSeedPhrase": "Utiliser ma phrase de récupération actuelle",
"scanWithSavedWords": "Scanner les mints avec les 12 mots sauvegardés",
"useOtherSeedPhrase": "Utiliser une autre phrase de récupération",
"recoverFromOtherWords": "Récupérer les tokens d'autres 12 mots",
"mintsToScan": "Mints à scanner :",
"allMints": "Tous les mints ({count})",
"@allMints": {
"placeholders": {
"count": { "type": "int" }
}
},
"specificMint": "Un mint spécifique",
"enterMnemonicWords": "Entrez les 12 mots séparés par des espaces...",
"scanMints": "Scanner les mints",
"selectMintToScan": "Sélectionnez un mint à scanner",
"mnemonicMustHaveWords": "Le mnémonique doit avoir 12 ou 24 mots",
"noConnectedMintsToScan": "Aucun mint connecté à scanner",
"recoveredTokens": "Récupéré {tokens} de {mints} mint(s) !",
"@recoveredTokens": {
"placeholders": {
"tokens": { "type": "String" },
"mints": { "type": "int" }
}
},
"scanCompleteNoTokens": "Scan terminé. Aucun nouveau token trouvé.",
"mintsWithError": "({count} mint(s) avec erreur)",
"@mintsWithError": {
"placeholders": {
"count": { "type": "int" }
}
},
"recoveredFromMint": "Récupéré {tokens} de {mint} !",
"@recoveredFromMint": {
"placeholders": {
"tokens": { "type": "String" },
"mint": { "type": "String" }
}
},
"noTokensFoundInMint": "Aucun token trouvé dans {mint}.",
"@noTokensFoundInMint": {
"placeholders": {
"mint": { "type": "String" }
}
},
"recoveredAndTransferred": "Récupéré et transféré {amount} {unit} vers votre portefeuille !",
"@recoveredAndTransferred": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"noTokensForMnemonic": "Aucun token trouvé associé à ce mnémonique.",
"noConnectedMints": "Aucun mint connecté",
"addMintToStart": "Ajoutez un mint pour commencer",
"addMint": "Ajouter un mint",
"mintDeleted": "Mint supprimé",
"activeMintUpdated": "Mint actif mis à jour",
"mintUrl": "URL du mint :",
"mintUrlPlaceholder": "https://mint.example.com",
"urlMustStartWithHttps": "L'URL doit commencer par https://",
"connectingToMint": "Connexion au mint...",
"mintAddedSuccessfully": "Mint ajouté avec succès",
"couldNotConnectToMint": "Impossible de se connecter au mint",
"add": "Ajouter",
"success": "Succès",
"loading": "Chargement...",
"retry": "Réessayer",
"activeMint": "Mint actif",
"mintMessage": "Message du Mint",
"url": "URL",
"currency": "Devise",
"unknown": "Inconnu",
"useThisMint": "Utiliser ce mint",
"copyMintUrl": "Copier l'URL du mint",
"deleteMint": "Supprimer le mint",
"copied": "{label} copié",
"@copied": {
"placeholders": {
"label": { "type": "String" }
}
},
"deleteMintConfirmTitle": "Supprimer le mint",
"deleteMintConfirmMessage": "Si vous avez un solde sur ce mint, il sera perdu. Êtes-vous sûr ?",
"delete": "Supprimer",
"offlineSend": "Envoi hors ligne",
"selectAll": "Tout",
"deselectAll": "Aucun",
"selectNotesToSend": "Sélectionnez les notes à envoyer :",
"totalToSend": "Total à envoyer",
"notesSelected": "{count} notes sélectionnées",
"@notesSelected": {
"placeholders": {
"count": { "type": "int" }
}
},
"loadingProofsError": "Erreur de chargement des preuves : {error}",
"@loadingProofsError": {
"placeholders": {
"error": { "type": "String" }
}
},
"creatingTokenError": "Erreur de création du token : {error}",
"@creatingTokenError": {
"placeholders": {
"error": { "type": "String" }
}
},
"unknownState": "État inconnu",
"depositAmountTitle": "Déposer {amount} {unit}",
"@depositAmountTitle": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"receiveNow": "Recevoir maintenant",
"receiveLater": "Recevoir plus tard",
"tokenSavedForLater": "Token sauvegardé pour réclamer plus tard",
"noConnectionTokenSaved": "Pas de connexion. Token sauvegardé pour réclamer plus tard.",
"unknownMintOffline": "Ce token provient d'un mint inconnu. Connectez-vous à Internet pour l'ajouter et réclamer le token.",
"noConnectionTryLater": "Pas de connexion au mint. Réessayez plus tard.",
"saveTokenError": "Erreur lors de la sauvegarde du token. Veuillez réessayer.",
"pendingTokenLimitReached": "Limite de tokens en attente atteinte (max 50)",
"filterToReceive": "À recevoir",
"noPendingTokens": "Aucun token en attente",
"noPendingTokensHint": "Sauvegardez des tokens pour les réclamer plus tard",
"pendingBadge": "EN ATTENTE",
"expiresInDays": "{days, plural, =1{Expire dans 1 jour} other{Expire dans {days} jours}}",
"@expiresInDays": {
"placeholders": {
"days": { "type": "int" }
}
},
"retryCount": "{count} tentatives",
"@retryCount": {
"placeholders": {
"count": { "type": "int" }
}
},
"claimNow": "Réclamer maintenant",
"pendingTokenClaimedSuccess": "Réclamé {amount} {unit}",
"@pendingTokenClaimedSuccess": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"pendingTokensClaimed": "{count, plural, =1{Réclamé 1 token ({amount} {unit})} other{Réclamé {count} tokens ({amount} {unit})}}",
"@pendingTokensClaimed": {
"placeholders": {
"count": { "type": "int" },
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"scan": "Scanner",
"scanQrCode": "Scanner le QR",
"scanCashuToken": "Scanner un token Cashu",
"scanLightningInvoice": "Scanner une facture",
"scanningAnimatedQr": "Scan du QR animé...",
"pointCameraAtQr": "Pointez la caméra vers le code QR",
"pointCameraAtCashuQr": "Pointez la caméra vers le QR du token Cashu",
"pointCameraAtInvoiceQr": "Pointez la caméra vers le QR de la facture",
"unrecognizedQrCode": "Code QR non reconnu",
"scanCashuTokenHint": "Scannez un token Cashu (cashuA... ou cashuB...)",
"scanLightningInvoiceHint": "Scannez une facture Lightning (lnbc...)",
"addMintQuestion": "Ajouter ce mint ?",
"cameraPermissionDenied": "Permission de la caméra refusée",
"paymentRequestNotSupported": "Les demandes de paiement ne sont pas encore prises en charge",
"p2pkTitle": "Clés P2PK",
"p2pkSettingsDescription": "Recevoir ecash verrouillé",
"p2pkExperimental": "P2PK est expérimental. Utiliser avec prudence.",
"p2pkPendingSendWarning": "Vous avez un envoi P2PK en attente. Allez dans l'historique et actualisez après que le destinataire a réclamé le jeton.",
"p2pkExperimentalShort": "Expérimental",
"p2pkPrimaryKey": "Clé Principale",
"p2pkDerived": "Dérivée",
"p2pkImported": "Importée",
"p2pkImportedKeys": "Clés Importées",
"p2pkNoImportedKeys": "Aucune clé importée",
"p2pkShowQR": "Afficher QR",
"p2pkCopy": "Copier",
"p2pkImportNsec": "Importer nsec",
"p2pkImport": "Importer",
"p2pkEnterLabel": "Nom pour cette clé",
"p2pkLockToKey": "Envoi avec signature P2PK",
"p2pkLockDescription": "Seul le destinataire peut réclamer",
"p2pkReceiverPubkey": "npub1... ou hex (64/66 caractères)",
"p2pkInvalidPubkey": "Clé publique invalide",
"p2pkInvalidPrivateKey": "Clé privée invalide",
"p2pkLockedToYou": "Verrouillé pour vous",
"p2pkLockedToOther": "Verrouillé pour une autre clé",
"p2pkCannotUnlock": "Vous n'avez pas la clé pour déverrouiller ce token",
"p2pkEnterPrivateKey": "Entrer la clé privée (nsec)",
"p2pkDeleteTitle": "Supprimer la clé",
"p2pkDeleteConfirm": "Supprimer cette clé ? Vous ne pourrez plus recevoir de tokens verrouillés dessus.",
"p2pkRequiresConnection": "P2PK nécessite une connexion au mint",
"p2pkErrorMaxKeysReached": "Nombre maximum de clés importées atteint (10)",
"p2pkErrorInvalidNsec": "nsec invalide",
"p2pkErrorKeyAlreadyExists": "Cette clé existe déjà",
"p2pkErrorKeyNotFound": "Clé non trouvée",
"p2pkErrorCannotDeletePrimary": "Impossible de supprimer la clé principale"
}
+538
View File
@@ -0,0 +1,538 @@
{
"@@locale": "it",
"appName": "ElCaju",
"appTagline": "Il tuo portafoglio ecash privato",
"loadingMessage1": "Crittografia delle tue monete...",
"loadingMessage2": "Preparazione dei tuoi e-token...",
"loadingMessage3": "Connessione al Mint...",
"loadingMessage4": "Privacy di default.",
"loadingMessage5": "Firma cieca dei token...",
"loadingMessage6": "Go full Calle...",
"loadingMessage7": "Cashu + Bitchat = Privacy + Libertà",
"aboutTagline": "Privacy senza confini.",
"welcomeTitle": "Benvenuto su ElCaju",
"welcomeSubtitle": "Cashu per il mondo. Fatto a Cuba.",
"createWallet": "Crea nuovo portafoglio",
"restoreWallet": "Ripristina portafoglio",
"createWalletTitle": "Crea portafoglio",
"creatingWallet": "Creazione del tuo portafoglio...",
"generatingSeed": "Generazione sicura della tua frase seed",
"createWalletDescription": "Verrà generata una frase seed di 12 parole.\nConservala in un luogo sicuro.",
"generateWallet": "Genera portafoglio",
"walletCreated": "Portafoglio creato!",
"walletCreatedDescription": "Il tuo portafoglio è pronto. Ti consigliamo di fare il backup della frase seed ora.",
"backupWarning": "Senza backup, perderai l'accesso ai tuoi fondi se perdi il dispositivo.",
"backupNow": "Backup adesso",
"backupLater": "Fallo dopo",
"backupTitle": "Backup",
"seedPhraseTitle": "La tua frase seed",
"seedPhraseDescription": "Conserva queste 12 parole in ordine. Sono l'unico modo per recuperare il tuo portafoglio.",
"revealSeedPhrase": "Mostra frase seed",
"tapToReveal": "Tocca il pulsante per mostrare\nla tua frase seed",
"copyToClipboard": "Copia negli appunti",
"seedCopied": "Frase copiata negli appunti",
"neverShareSeed": "Non condividere mai la tua frase seed con nessuno.",
"confirmBackup": "Ho salvato la mia frase seed in un luogo sicuro",
"continue_": "Continua",
"restoreTitle": "Ripristina portafoglio",
"enterSeedPhrase": "Inserisci la tua frase seed",
"enterSeedDescription": "Scrivi le 12 o 24 parole separate da spazi.",
"seedPlaceholder": "parola1 parola2 parola3 ...",
"wordCount": "{count} parole",
"@wordCount": {
"placeholders": {
"count": { "type": "int" }
}
},
"needWords": "(servono 12 o 24)",
"restoreScanningMint": "Scansione del mint per token esistenti...",
"restoreError": "Errore di ripristino: {error}",
"@restoreError": {
"placeholders": {
"error": { "type": "String" }
}
},
"homeTitle": "Home",
"receive": "Ricevi",
"send": "Invia",
"sendAction": "Invia ↗",
"receiveAction": "↘ Ricevi",
"deposit": "Deposita",
"withdraw": "Preleva",
"lightning": "Lightning",
"cashu": "Cashu",
"ecash": "Ecash",
"history": "Cronologia",
"noTransactions": "Nessuna transazione",
"depositOrReceive": "Deposita o ricevi sats per iniziare",
"noMint": "Nessun mint",
"balance": "Saldo",
"sats": "sats",
"pasteEcashToken": "Incolla token ecash",
"generateInvoiceToDeposit": "Genera fattura per depositare",
"createEcashToken": "Crea token ecash",
"payLightningInvoice": "Paga fattura Lightning",
"receiveCashu": "Ricevi Cashu",
"pasteTheCashuToken": "Incolla il token Cashu:",
"pasteFromClipboard": "Incolla dagli appunti",
"validToken": "Token valido",
"invalidToken": "Token non valido o malformato",
"amount": "Importo:",
"mint": "Mint:",
"claiming": "Riscatto...",
"claimTokens": "Riscatta token",
"tokensReceived": "Token ricevuti",
"backToHome": "Torna alla home",
"tokenAlreadyClaimed": "Questo token è già stato riscattato",
"unknownMint": "Token da mint sconosciuto",
"claimError": "Errore di riscatto: {error}",
"@claimError": {
"placeholders": {
"error": { "type": "String" }
}
},
"sendCashu": "Invia Cashu",
"selectNotesManually": "Seleziona note manualmente",
"amountToSend": "Importo da inviare:",
"available": "Disponibile:",
"max": "(Max)",
"memoOptional": "Memo (opzionale):",
"memoPlaceholder": "A cosa serve questo pagamento?",
"creatingToken": "Creazione token...",
"createToken": "Crea token",
"noActiveMint": "Nessun mint attivo",
"offlineModeMessage": "Nessuna connessione. Modalità offline...",
"confirmSend": "Conferma invio",
"confirm": "Conferma",
"cancel": "Annulla",
"insufficientBalance": "Saldo insufficiente",
"tokenCreationError": "Errore creazione token: {error}",
"@tokenCreationError": {
"placeholders": {
"error": { "type": "String" }
}
},
"tokenCreated": "Token creato",
"copy": "Copia",
"share": "Condividi",
"tokenCashu": "Token Cashu",
"tokenCashuAnimatedQr": "Token Cashu (QR animato - {fragments} frammenti UR)",
"@tokenCashuAnimatedQr": {
"placeholders": {
"fragments": { "type": "int" }
}
},
"keepTokenWarning": "Conserva questo token finché il destinatario non lo riscatta. Se lo perdi, perderai i fondi.",
"tokenCopiedToClipboard": "Token copiato negli appunti",
"copyAsEmoji": "Copia come emoji",
"emojiCopiedToClipboard": "Token copiato come emoji 🥜",
"peanutDecodeError": "Impossibile decodificare il token emoji. Potrebbe essere corrotto.",
"nfcWrite": "Scrivi su tag NFC",
"nfcRead": "Leggi tag NFC",
"nfcHoldNear": "Avvicina il dispositivo al tag NFC...",
"nfcWriteSuccess": "Token scritto sul tag NFC",
"nfcWriteError": "Errore NFC scrittura: {error}",
"@nfcWriteError": { "placeholders": { "error": { "type": "String" } } },
"nfcReadError": "Errore NFC lettura: {error}",
"@nfcReadError": { "placeholders": { "error": { "type": "String" } } },
"nfcDisabled": "NFC è disattivato. Attivalo nelle Impostazioni.",
"nfcUnsupported": "Questo dispositivo non supporta NFC",
"amountToDeposit": "Importo da depositare:",
"descriptionOptional": "Descrizione (opzionale):",
"depositPlaceholder": "A cosa serve questo deposito?",
"generating": "Generazione...",
"generateInvoice": "Genera fattura",
"depositLightning": "Deposita Lightning",
"payInvoiceTitle": "Paga fattura",
"generatingInvoice": "Generazione fattura...",
"waitingForPayment": "In attesa del pagamento...",
"paymentReceived": "Pagamento ricevuto",
"tokensIssued": "Token emessi!",
"error": "Errore",
"unknownError": "Errore sconosciuto",
"back": "Indietro",
"copyInvoice": "Copia fattura",
"description": "Descrizione:",
"invoiceCopiedToClipboard": "Fattura copiata negli appunti",
"deposited": "{amount} {unit} depositati",
"@deposited": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"pasteLightningInvoice": "Incolla la fattura Lightning:",
"gettingQuote": "Ottenimento preventivo...",
"validInvoice": "Fattura valida",
"invalidInvoice": "Fattura non valida",
"invalidInvoiceMalformed": "Fattura non valida o malformata",
"feeReserved": "Commissione riservata:",
"total": "Totale:",
"paying": "Pagamento...",
"payInvoice": "Paga fattura",
"confirmPayment": "Conferma pagamento",
"pay": "Paga",
"fee": "commissione",
"invoiceExpired": "Fattura scaduta",
"amountOutOfRange": "Importo fuori dall'intervallo consentito",
"resolvingType": "Risoluzione {type}...",
"@resolvingType": {
"placeholders": {
"type": { "type": "String" }
}
},
"invoiceAlreadyPaid": "Fattura già pagata",
"paymentError": "Errore di pagamento: {error}",
"@paymentError": {
"placeholders": {
"error": { "type": "String" }
}
},
"sent": "{amount} {unit} inviati",
"@sent": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"filterAll": "Tutti",
"filterPending": "In attesa",
"filterEcash": "Ecash",
"filterLightning": "Lightning",
"receiveTokensToStart": "Ricevi token Cashu per iniziare",
"noPendingTransactions": "Nessuna transazione in attesa",
"allTransactionsCompleted": "Tutte le tue transazioni sono completate",
"noEcashTransactions": "Nessuna transazione Ecash",
"sendOrReceiveTokens": "Invia o ricevi token Cashu",
"noLightningTransactions": "Nessuna transazione Lightning",
"depositOrWithdrawLightning": "Deposita o preleva via Lightning",
"pendingStatus": "In attesa",
"receivedStatus": "Ricevuto",
"sentStatus": "Inviato",
"now": "Adesso",
"agoMinutes": "{minutes} min fa",
"@agoMinutes": {
"placeholders": {
"minutes": { "type": "int" }
}
},
"agoHours": "{hours} ore fa",
"@agoHours": {
"placeholders": {
"hours": { "type": "int" }
}
},
"agoDays": "{days} giorni fa",
"@agoDays": {
"placeholders": {
"days": { "type": "int" }
}
},
"lightningInvoice": "Fattura Lightning",
"receivedEcash": "Ecash ricevuto",
"sentEcash": "Ecash inviato",
"outgoingLightningPayment": "Pagamento Lightning in uscita",
"invoiceNotAvailable": "Fattura non disponibile",
"tokenNotAvailable": "Token non disponibile",
"unit": "Unità",
"status": "Stato",
"pending": "In attesa",
"memo": "Memo",
"copyInvoiceButton": "COPIA FATTURA",
"copyButton": "COPIA",
"invoiceCopied": "Fattura copiata",
"tokenCopied": "Token copiato",
"speed": "VELOCITÀ:",
"settings": "Impostazioni",
"walletSection": "PORTAFOGLIO",
"backupSeedPhrase": "Backup frase seed",
"viewRecoveryWords": "Visualizza le parole di recupero",
"connectedMints": "Mint connessi",
"manageCashuMints": "Gestisci i tuoi mint Cashu",
"pinAccess": "PIN di accesso",
"pinEnabled": "Attivato",
"protectWithPin": "Proteggi l'app con PIN",
"recoverTokens": "Recupera token",
"scanMintsWithSeed": "Scansiona mint con frase seed",
"appearanceSection": "LINGUA",
"language": "Lingua",
"informationSection": "INFORMAZIONI",
"version": "Versione",
"about": "Info",
"deleteWallet": "Elimina portafoglio",
"spanish": "Español",
"english": "English",
"portuguese": "Português",
"french": "Français",
"russian": "Русский",
"german": "Deutsch",
"italian": "Italiano",
"korean": "한국어",
"chinese": "中文",
"japanese": "日本語",
"swahili": "Kiswahili",
"mnemonicNotFound": "Mnemonic non trovato",
"createPin": "Crea PIN",
"enterPinDigits": "Inserisci un PIN a 4 cifre",
"confirmPin": "Conferma PIN",
"enterPinAgain": "Inserisci di nuovo il PIN",
"pinMismatch": "I PIN non corrispondono",
"pinActivated": "PIN attivato",
"pinDeactivated": "PIN disattivato",
"verifyPin": "Verifica PIN",
"enterCurrentPin": "Inserisci il tuo PIN attuale",
"incorrectPin": "PIN errato",
"selectLanguage": "Seleziona lingua",
"languageChanged": "Lingua cambiata in {language}",
"@languageChanged": {
"placeholders": {
"language": { "type": "String" }
}
},
"close": "Chiudi",
"aboutDescription": "Un portafoglio Cashu con DNA cubano per il mondo intero. Fratello di LaChispa.",
"couldNotOpenLink": "Impossibile aprire il link",
"deleteWalletQuestion": "Eliminare portafoglio?",
"actionIrreversible": "Questa azione è irreversibile",
"deleteWalletWarning": "Tutti i dati verranno eliminati, inclusa la frase seed e i token. Assicurati di avere un backup.",
"typeDeleteToConfirm": "Scrivi \"ELIMINA\" per confermare:",
"deleteConfirmWord": "ELIMINA",
"deleteError": "Errore di eliminazione: {error}",
"@deleteError": {
"placeholders": {
"error": { "type": "String" }
}
},
"recoverTokensTitle": "Recupera token",
"recoverTokensDescription": "Scansiona i mint per recuperare i token associati alla tua frase seed (NUT-13)",
"useCurrentSeedPhrase": "Usa la mia frase seed attuale",
"scanWithSavedWords": "Scansiona i mint con le 12 parole salvate",
"useOtherSeedPhrase": "Usa un'altra frase seed",
"recoverFromOtherWords": "Recupera token da altre 12 parole",
"mintsToScan": "Mint da scansionare:",
"allMints": "Tutti i mint ({count})",
"@allMints": {
"placeholders": {
"count": { "type": "int" }
}
},
"specificMint": "Un mint specifico",
"enterMnemonicWords": "Inserisci le 12 parole separate da spazi...",
"scanMints": "Scansiona mint",
"selectMintToScan": "Seleziona un mint da scansionare",
"mnemonicMustHaveWords": "Il mnemonic deve avere 12 o 24 parole",
"noConnectedMintsToScan": "Nessun mint connesso da scansionare",
"recoveredTokens": "Recuperati {tokens} da {mints} mint!",
"@recoveredTokens": {
"placeholders": {
"tokens": { "type": "String" },
"mints": { "type": "int" }
}
},
"scanCompleteNoTokens": "Scansione completata. Nessun nuovo token trovato.",
"mintsWithError": "({count} mint con errore)",
"@mintsWithError": {
"placeholders": {
"count": { "type": "int" }
}
},
"recoveredFromMint": "Recuperati {tokens} da {mint}!",
"@recoveredFromMint": {
"placeholders": {
"tokens": { "type": "String" },
"mint": { "type": "String" }
}
},
"noTokensFoundInMint": "Nessun token trovato in {mint}.",
"@noTokensFoundInMint": {
"placeholders": {
"mint": { "type": "String" }
}
},
"recoveredAndTransferred": "Recuperati e trasferiti {amount} {unit} nel tuo portafoglio!",
"@recoveredAndTransferred": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"noTokensForMnemonic": "Nessun token trovato associato a questo mnemonic.",
"noConnectedMints": "Nessun mint connesso",
"addMintToStart": "Aggiungi un mint per iniziare",
"addMint": "Aggiungi mint",
"mintDeleted": "Mint eliminato",
"activeMintUpdated": "Mint attivo aggiornato",
"mintUrl": "URL del mint:",
"mintUrlPlaceholder": "https://mint.example.com",
"urlMustStartWithHttps": "L'URL deve iniziare con https://",
"connectingToMint": "Connessione al mint...",
"mintAddedSuccessfully": "Mint aggiunto con successo",
"couldNotConnectToMint": "Impossibile connettersi al mint",
"add": "Aggiungi",
"success": "Successo",
"loading": "Caricamento...",
"retry": "Riprova",
"activeMint": "Mint attivo",
"mintMessage": "Messaggio del Mint",
"url": "URL",
"currency": "Valuta",
"unknown": "Sconosciuto",
"useThisMint": "Usa questo mint",
"copyMintUrl": "Copia URL del mint",
"deleteMint": "Elimina mint",
"copied": "{label} copiato",
"@copied": {
"placeholders": {
"label": { "type": "String" }
}
},
"deleteMintConfirmTitle": "Elimina mint",
"deleteMintConfirmMessage": "Se hai saldo su questo mint, verrà perso. Sei sicuro?",
"delete": "Elimina",
"offlineSend": "Invio offline",
"selectAll": "Tutto",
"deselectAll": "Nessuno",
"selectNotesToSend": "Seleziona le note da inviare:",
"totalToSend": "Totale da inviare",
"notesSelected": "{count} note selezionate",
"@notesSelected": {
"placeholders": {
"count": { "type": "int" }
}
},
"loadingProofsError": "Errore caricamento prove: {error}",
"@loadingProofsError": {
"placeholders": {
"error": { "type": "String" }
}
},
"creatingTokenError": "Errore creazione token: {error}",
"@creatingTokenError": {
"placeholders": {
"error": { "type": "String" }
}
},
"unknownState": "Stato sconosciuto",
"depositAmountTitle": "Deposita {amount} {unit}",
"@depositAmountTitle": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"receiveNow": "Ricevi adesso",
"receiveLater": "Ricevi dopo",
"tokenSavedForLater": "Token salvato per riscattarlo dopo",
"noConnectionTokenSaved": "Nessuna connessione. Token salvato per riscattarlo dopo.",
"unknownMintOffline": "Questo token proviene da un mint sconosciuto. Connettiti a internet per aggiungerlo e riscattare il token.",
"noConnectionTryLater": "Nessuna connessione al mint. Riprova più tardi.",
"saveTokenError": "Errore nel salvare il token. Riprova.",
"pendingTokenLimitReached": "Limite token in attesa raggiunto (max 50)",
"filterToReceive": "Da ricevere",
"noPendingTokens": "Nessun token in attesa",
"noPendingTokensHint": "Salva token per riscattarli dopo",
"pendingBadge": "IN ATTESA",
"expiresInDays": "{days, plural, =1{Scade tra 1 giorno} other{Scade tra {days} giorni}}",
"@expiresInDays": {
"placeholders": {
"days": { "type": "int" }
}
},
"retryCount": "{count} tentativi",
"@retryCount": {
"placeholders": {
"count": { "type": "int" }
}
},
"claimNow": "Riscatta adesso",
"pendingTokenClaimedSuccess": "Riscattati {amount} {unit}",
"@pendingTokenClaimedSuccess": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"pendingTokensClaimed": "{count, plural, =1{Riscattato 1 token ({amount} {unit})} other{Riscattati {count} token ({amount} {unit})}}",
"@pendingTokensClaimed": {
"placeholders": {
"count": { "type": "int" },
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"scan": "Scansiona",
"scanQrCode": "Scansiona QR",
"scanCashuToken": "Scansiona token Cashu",
"scanLightningInvoice": "Scansiona fattura",
"scanningAnimatedQr": "Scansione QR animato...",
"pointCameraAtQr": "Punta la fotocamera sul codice QR",
"pointCameraAtCashuQr": "Punta la fotocamera sul QR del token Cashu",
"pointCameraAtInvoiceQr": "Punta la fotocamera sul QR della fattura",
"unrecognizedQrCode": "Codice QR non riconosciuto",
"scanCashuTokenHint": "Scansiona un token Cashu (cashuA... o cashuB...)",
"scanLightningInvoiceHint": "Scansiona una fattura Lightning (lnbc...)",
"addMintQuestion": "Aggiungere questo mint?",
"cameraPermissionDenied": "Permesso fotocamera negato",
"paymentRequestNotSupported": "Le richieste di pagamento non sono ancora supportate",
"p2pkTitle": "Chiavi P2PK",
"p2pkSettingsDescription": "Ricevi ecash bloccato",
"p2pkExperimental": "P2PK è sperimentale. Usare con cautela.",
"p2pkPendingSendWarning": "Hai un invio P2PK in sospeso. Vai alla cronologia e aggiorna dopo che il destinatario ha riscattato il token.",
"p2pkExperimentalShort": "Sperimentale",
"p2pkPrimaryKey": "Chiave Principale",
"p2pkDerived": "Derivata",
"p2pkImported": "Importata",
"p2pkImportedKeys": "Chiavi Importate",
"p2pkNoImportedKeys": "Nessuna chiave importata",
"p2pkShowQR": "Mostra QR",
"p2pkCopy": "Copia",
"p2pkImportNsec": "Importa nsec",
"p2pkImport": "Importa",
"p2pkEnterLabel": "Nome per questa chiave",
"p2pkLockToKey": "Invio con firma P2PK",
"p2pkLockDescription": "Solo il destinatario può riscattare",
"p2pkReceiverPubkey": "npub1... o hex (64/66 caratteri)",
"p2pkInvalidPubkey": "Chiave pubblica non valida",
"p2pkInvalidPrivateKey": "Chiave privata non valida",
"p2pkLockedToYou": "Bloccato per te",
"p2pkLockedToOther": "Bloccato per un'altra chiave",
"p2pkCannotUnlock": "Non hai la chiave per sbloccare questo token",
"p2pkEnterPrivateKey": "Inserisci chiave privata (nsec)",
"p2pkDeleteTitle": "Elimina chiave",
"p2pkDeleteConfirm": "Eliminare questa chiave? Non potrai ricevere token bloccati ad essa.",
"p2pkRequiresConnection": "P2PK richiede connessione al mint",
"p2pkErrorMaxKeysReached": "Numero massimo di chiavi importate raggiunto (10)",
"p2pkErrorInvalidNsec": "nsec non valido",
"p2pkErrorKeyAlreadyExists": "Questa chiave esiste già",
"p2pkErrorKeyNotFound": "Chiave non trovata",
"p2pkErrorCannotDeletePrimary": "Impossibile eliminare la chiave principale"
}
+538
View File
@@ -0,0 +1,538 @@
{
"@@locale": "ja",
"appName": "ElCaju",
"appTagline": "プライベートなecashウォレット",
"loadingMessage1": "コインを暗号化中...",
"loadingMessage2": "e-トークンを準備中...",
"loadingMessage3": "Mintに接続中...",
"loadingMessage4": "デフォルトでプライバシー保護。",
"loadingMessage5": "ブラインド署名中...",
"loadingMessage6": "Go full Calle...",
"loadingMessage7": "Cashu + Bitchat = プライバシー + 自由",
"aboutTagline": "国境のないプライバシー。",
"welcomeTitle": "ElCajuへようこそ",
"welcomeSubtitle": "世界のためのCashu。キューバ製。",
"createWallet": "新しいウォレットを作成",
"restoreWallet": "ウォレットを復元",
"createWalletTitle": "ウォレット作成",
"creatingWallet": "ウォレットを作成中...",
"generatingSeed": "シードフレーズを安全に生成中",
"createWalletDescription": "12語のシードフレーズが生成されます。\n安全な場所に保管してください。",
"generateWallet": "ウォレットを生成",
"walletCreated": "ウォレット作成完了!",
"walletCreatedDescription": "ウォレットの準備ができました。今すぐシードフレーズをバックアップすることをお勧めします。",
"backupWarning": "バックアップがないと、デバイスを紛失した場合に資金にアクセスできなくなります。",
"backupNow": "今すぐバックアップ",
"backupLater": "後でする",
"backupTitle": "バックアップ",
"seedPhraseTitle": "シードフレーズ",
"seedPhraseDescription": "この12語を順番に保存してください。ウォレットを復元する唯一の方法です。",
"revealSeedPhrase": "シードフレーズを表示",
"tapToReveal": "ボタンをタップして\nシードフレーズを表示",
"copyToClipboard": "クリップボードにコピー",
"seedCopied": "フレーズをクリップボードにコピーしました",
"neverShareSeed": "シードフレーズを誰にも共有しないでください。",
"confirmBackup": "シードフレーズを安全な場所に保存しました",
"continue_": "続ける",
"restoreTitle": "ウォレットを復元",
"enterSeedPhrase": "シードフレーズを入力",
"enterSeedDescription": "12語または24語をスペースで区切って入力してください。",
"seedPlaceholder": "単語1 単語2 単語3 ...",
"wordCount": "{count}語",
"@wordCount": {
"placeholders": {
"count": { "type": "int" }
}
},
"needWords": "12語または24語が必要)",
"restoreScanningMint": "ミントで既存のトークンをスキャン中...",
"restoreError": "復元エラー:{error}",
"@restoreError": {
"placeholders": {
"error": { "type": "String" }
}
},
"homeTitle": "ホーム",
"receive": "受取",
"send": "送金",
"sendAction": "送金 ↗",
"receiveAction": "↘ 受取",
"deposit": "入金",
"withdraw": "出金",
"lightning": "Lightning",
"cashu": "Cashu",
"ecash": "Ecash",
"history": "履歴",
"noTransactions": "取引履歴がありません",
"depositOrReceive": "satsを入金または受け取って開始",
"noMint": "Mintなし",
"balance": "残高",
"sats": "sats",
"pasteEcashToken": "ecashトークンを貼り付け",
"generateInvoiceToDeposit": "入金用インボイスを生成",
"createEcashToken": "ecashトークンを作成",
"payLightningInvoice": "Lightningインボイスを支払う",
"receiveCashu": "Cashuを受け取る",
"pasteTheCashuToken": "Cashuトークンを貼り付け:",
"pasteFromClipboard": "クリップボードから貼り付け",
"validToken": "有効なトークン",
"invalidToken": "無効または不正なトークン",
"amount": "金額:",
"mint": "Mint",
"claiming": "請求中...",
"claimTokens": "トークンを請求",
"tokensReceived": "トークンを受け取りました",
"backToHome": "ホームに戻る",
"tokenAlreadyClaimed": "このトークンは既に請求済みです",
"unknownMint": "不明なMintからのトークン",
"claimError": "請求エラー:{error}",
"@claimError": {
"placeholders": {
"error": { "type": "String" }
}
},
"sendCashu": "Cashuを送る",
"selectNotesManually": "ノートを手動で選択",
"amountToSend": "送金額:",
"available": "利用可能:",
"max": "(最大)",
"memoOptional": "メモ(任意):",
"memoPlaceholder": "この支払いは何のためですか?",
"creatingToken": "トークン作成中...",
"createToken": "トークンを作成",
"noActiveMint": "アクティブなMintがありません",
"offlineModeMessage": "接続なし。オフラインモード使用中...",
"confirmSend": "送金を確認",
"confirm": "確認",
"cancel": "キャンセル",
"insufficientBalance": "残高不足",
"tokenCreationError": "トークン作成エラー:{error}",
"@tokenCreationError": {
"placeholders": {
"error": { "type": "String" }
}
},
"tokenCreated": "トークン作成完了",
"copy": "コピー",
"share": "共有",
"tokenCashu": "Cashuトークン",
"tokenCashuAnimatedQr": "Cashuトークン(アニメーションQR - {fragments}個のURフラグメント)",
"@tokenCashuAnimatedQr": {
"placeholders": {
"fragments": { "type": "int" }
}
},
"keepTokenWarning": "受取人が請求するまでこのトークンを保管してください。紛失すると資金を失います。",
"tokenCopiedToClipboard": "トークンをクリップボードにコピーしました",
"copyAsEmoji": "絵文字としてコピー",
"emojiCopiedToClipboard": "トークンを絵文字としてコピーしました 🥜",
"peanutDecodeError": "絵文字トークンをデコードできませんでした。破損している可能性があります。",
"nfcWrite": "NFCタグに書き込む",
"nfcRead": "NFCタグを読み取る",
"nfcHoldNear": "デバイスをNFCタグに近づけてください...",
"nfcWriteSuccess": "トークンをNFCタグに書き込みました",
"nfcWriteError": "NFC書き込みエラー: {error}",
"@nfcWriteError": { "placeholders": { "error": { "type": "String" } } },
"nfcReadError": "NFC読み取りエラー: {error}",
"@nfcReadError": { "placeholders": { "error": { "type": "String" } } },
"nfcDisabled": "NFCが無効です。設定で有効にしてください。",
"nfcUnsupported": "このデバイスはNFCに対応していません",
"amountToDeposit": "入金額:",
"descriptionOptional": "説明(任意):",
"depositPlaceholder": "この入金は何のためですか?",
"generating": "生成中...",
"generateInvoice": "インボイスを生成",
"depositLightning": "Lightning入金",
"payInvoiceTitle": "インボイスを支払う",
"generatingInvoice": "インボイス生成中...",
"waitingForPayment": "支払い待ち...",
"paymentReceived": "支払いを受け取りました",
"tokensIssued": "トークンが発行されました!",
"error": "エラー",
"unknownError": "不明なエラー",
"back": "戻る",
"copyInvoice": "インボイスをコピー",
"description": "説明:",
"invoiceCopiedToClipboard": "インボイスをクリップボードにコピーしました",
"deposited": "{amount} {unit}を入金しました",
"@deposited": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"pasteLightningInvoice": "Lightningインボイスを貼り付け:",
"gettingQuote": "見積もり取得中...",
"validInvoice": "有効なインボイス",
"invalidInvoice": "無効なインボイス",
"invalidInvoiceMalformed": "無効または不正なインボイス",
"feeReserved": "予約手数料:",
"total": "合計:",
"paying": "支払い中...",
"payInvoice": "インボイスを支払う",
"confirmPayment": "支払いを確認",
"pay": "支払う",
"fee": "手数料",
"invoiceExpired": "インボイス期限切れ",
"amountOutOfRange": "金額が許容範囲外です",
"resolvingType": "{type}を解決中...",
"@resolvingType": {
"placeholders": {
"type": { "type": "String" }
}
},
"invoiceAlreadyPaid": "インボイスは支払い済みです",
"paymentError": "支払いエラー:{error}",
"@paymentError": {
"placeholders": {
"error": { "type": "String" }
}
},
"sent": "{amount} {unit}を送金しました",
"@sent": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"filterAll": "すべて",
"filterPending": "保留中",
"filterEcash": "Ecash",
"filterLightning": "Lightning",
"receiveTokensToStart": "Cashuトークンを受け取って開始",
"noPendingTransactions": "保留中の取引はありません",
"allTransactionsCompleted": "すべての取引が完了しました",
"noEcashTransactions": "Ecash取引はありません",
"sendOrReceiveTokens": "Cashuトークンを送受信",
"noLightningTransactions": "Lightning取引はありません",
"depositOrWithdrawLightning": "Lightningで入出金",
"pendingStatus": "保留中",
"receivedStatus": "受取済み",
"sentStatus": "送金済み",
"now": "たった今",
"agoMinutes": "{minutes}分前",
"@agoMinutes": {
"placeholders": {
"minutes": { "type": "int" }
}
},
"agoHours": "{hours}時間前",
"@agoHours": {
"placeholders": {
"hours": { "type": "int" }
}
},
"agoDays": "{days}日前",
"@agoDays": {
"placeholders": {
"days": { "type": "int" }
}
},
"lightningInvoice": "Lightningインボイス",
"receivedEcash": "Ecash受取",
"sentEcash": "Ecash送金",
"outgoingLightningPayment": "Lightning出金",
"invoiceNotAvailable": "インボイスは利用できません",
"tokenNotAvailable": "トークンは利用できません",
"unit": "単位",
"status": "ステータス",
"pending": "保留中",
"memo": "メモ",
"copyInvoiceButton": "インボイスをコピー",
"copyButton": "コピー",
"invoiceCopied": "インボイスをコピーしました",
"tokenCopied": "トークンをコピーしました",
"speed": "速度:",
"settings": "設定",
"walletSection": "ウォレット",
"backupSeedPhrase": "シードフレーズのバックアップ",
"viewRecoveryWords": "復元用単語を表示",
"connectedMints": "接続中のMint",
"manageCashuMints": "Cashu Mintを管理",
"pinAccess": "PINアクセス",
"pinEnabled": "有効",
"protectWithPin": "PINでアプリを保護",
"recoverTokens": "トークンを復元",
"scanMintsWithSeed": "シードフレーズでMintをスキャン",
"appearanceSection": "言語",
"language": "言語",
"informationSection": "情報",
"version": "バージョン",
"about": "このアプリについて",
"deleteWallet": "ウォレットを削除",
"spanish": "Español",
"english": "English",
"portuguese": "Português",
"french": "Français",
"russian": "Русский",
"german": "Deutsch",
"italian": "Italiano",
"korean": "한국어",
"chinese": "中文",
"japanese": "日本語",
"swahili": "Kiswahili",
"mnemonicNotFound": "ニーモニックが見つかりません",
"createPin": "PINを作成",
"enterPinDigits": "4桁のPINを入力",
"confirmPin": "PINを確認",
"enterPinAgain": "PINを再入力",
"pinMismatch": "PINが一致しません",
"pinActivated": "PINが有効になりました",
"pinDeactivated": "PINが無効になりました",
"verifyPin": "PINを確認",
"enterCurrentPin": "現在のPINを入力",
"incorrectPin": "PINが正しくありません",
"selectLanguage": "言語を選択",
"languageChanged": "言語を{language}に変更しました",
"@languageChanged": {
"placeholders": {
"language": { "type": "String" }
}
},
"close": "閉じる",
"aboutDescription": "キューバのDNAを持つ世界のためのCashuウォレット。LaChispaの兄弟。",
"couldNotOpenLink": "リンクを開けませんでした",
"deleteWalletQuestion": "ウォレットを削除しますか?",
"actionIrreversible": "この操作は取り消せません",
"deleteWalletWarning": "シードフレーズとトークンを含むすべてのデータが削除されます。バックアップがあることを確認してください。",
"typeDeleteToConfirm": "確認のため「DELETE」と入力:",
"deleteConfirmWord": "DELETE",
"deleteError": "削除エラー:{error}",
"@deleteError": {
"placeholders": {
"error": { "type": "String" }
}
},
"recoverTokensTitle": "トークンを復元",
"recoverTokensDescription": "シードフレーズに関連付けられたトークンを復元するためにMintをスキャン(NUT-13",
"useCurrentSeedPhrase": "現在のシードフレーズを使用",
"scanWithSavedWords": "保存された12語でMintをスキャン",
"useOtherSeedPhrase": "別のシードフレーズを使用",
"recoverFromOtherWords": "別の12語からトークンを復元",
"mintsToScan": "スキャンするMint",
"allMints": "すべてのMint{count}件)",
"@allMints": {
"placeholders": {
"count": { "type": "int" }
}
},
"specificMint": "特定のMint",
"enterMnemonicWords": "12語をスペースで区切って入力...",
"scanMints": "Mintをスキャン",
"selectMintToScan": "スキャンするMintを選択",
"mnemonicMustHaveWords": "ニーモニックは12語または24語である必要があります",
"noConnectedMintsToScan": "スキャンできる接続済みMintがありません",
"recoveredTokens": "{mints}件のMintから{tokens}を復元しました!",
"@recoveredTokens": {
"placeholders": {
"tokens": { "type": "String" },
"mints": { "type": "int" }
}
},
"scanCompleteNoTokens": "スキャン完了。新しいトークンは見つかりませんでした。",
"mintsWithError": "{count}件のMintでエラー)",
"@mintsWithError": {
"placeholders": {
"count": { "type": "int" }
}
},
"recoveredFromMint": "{mint}から{tokens}を復元しました!",
"@recoveredFromMint": {
"placeholders": {
"tokens": { "type": "String" },
"mint": { "type": "String" }
}
},
"noTokensFoundInMint": "{mint}でトークンが見つかりませんでした。",
"@noTokensFoundInMint": {
"placeholders": {
"mint": { "type": "String" }
}
},
"recoveredAndTransferred": "{amount} {unit}を復元してウォレットに転送しました!",
"@recoveredAndTransferred": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"noTokensForMnemonic": "そのニーモニックに関連付けられたトークンは見つかりませんでした。",
"noConnectedMints": "接続済みMintがありません",
"addMintToStart": "Mintを追加して開始",
"addMint": "Mintを追加",
"mintDeleted": "Mintを削除しました",
"activeMintUpdated": "アクティブMintを更新しました",
"mintUrl": "Mint URL",
"mintUrlPlaceholder": "https://mint.example.com",
"urlMustStartWithHttps": "URLはhttps://で始まる必要があります",
"connectingToMint": "Mintに接続中...",
"mintAddedSuccessfully": "Mintを追加しました",
"couldNotConnectToMint": "Mintに接続できませんでした",
"add": "追加",
"success": "成功",
"loading": "読み込み中...",
"retry": "再試行",
"activeMint": "アクティブMint",
"mintMessage": "Mintメッセージ",
"url": "URL",
"currency": "通貨",
"unknown": "不明",
"useThisMint": "このMintを使用",
"copyMintUrl": "Mint URLをコピー",
"deleteMint": "Mintを削除",
"copied": "{label}をコピーしました",
"@copied": {
"placeholders": {
"label": { "type": "String" }
}
},
"deleteMintConfirmTitle": "Mintを削除",
"deleteMintConfirmMessage": "このMintに残高がある場合、失われます。よろしいですか?",
"delete": "削除",
"offlineSend": "オフライン送金",
"selectAll": "すべて",
"deselectAll": "なし",
"selectNotesToSend": "送信するノートを選択:",
"totalToSend": "送金合計",
"notesSelected": "{count}件のノートを選択",
"@notesSelected": {
"placeholders": {
"count": { "type": "int" }
}
},
"loadingProofsError": "プルーフ読み込みエラー:{error}",
"@loadingProofsError": {
"placeholders": {
"error": { "type": "String" }
}
},
"creatingTokenError": "トークン作成エラー:{error}",
"@creatingTokenError": {
"placeholders": {
"error": { "type": "String" }
}
},
"unknownState": "不明な状態",
"depositAmountTitle": "{amount} {unit}を入金",
"@depositAmountTitle": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"receiveNow": "今すぐ受け取る",
"receiveLater": "後で受け取る",
"tokenSavedForLater": "トークンを保存しました。後で請求できます",
"noConnectionTokenSaved": "接続なし。トークンを保存しました。後で請求できます。",
"unknownMintOffline": "このトークンは不明なMintからのものです。インターネットに接続してMintを追加し、トークンを請求してください。",
"noConnectionTryLater": "Mintに接続できません。後でもう一度お試しください。",
"saveTokenError": "トークンの保存エラー。もう一度お試しください。",
"pendingTokenLimitReached": "保留中トークンの上限に達しました(最大50件)",
"filterToReceive": "受取予定",
"noPendingTokens": "保留中のトークンはありません",
"noPendingTokensHint": "トークンを保存して後で請求",
"pendingBadge": "保留中",
"expiresInDays": "{days, plural, =1{1日後に期限切れ} other{{days}日後に期限切れ}}",
"@expiresInDays": {
"placeholders": {
"days": { "type": "int" }
}
},
"retryCount": "{count}回リトライ",
"@retryCount": {
"placeholders": {
"count": { "type": "int" }
}
},
"claimNow": "今すぐ請求",
"pendingTokenClaimedSuccess": "{amount} {unit}を請求しました",
"@pendingTokenClaimedSuccess": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"pendingTokensClaimed": "{count, plural, =1{1件のトークン({amount} {unit})を請求しました} other{{count}件のトークン({amount} {unit})を請求しました}}",
"@pendingTokensClaimed": {
"placeholders": {
"count": { "type": "int" },
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"scan": "スキャン",
"scanQrCode": "QRコードをスキャン",
"scanCashuToken": "Cashuトークンをスキャン",
"scanLightningInvoice": "インボイスをスキャン",
"scanningAnimatedQr": "アニメーションQRをスキャン中...",
"pointCameraAtQr": "カメラをQRコードに向けてください",
"pointCameraAtCashuQr": "カメラをCashuトークンのQRに向けてください",
"pointCameraAtInvoiceQr": "カメラをインボイスのQRに向けてください",
"unrecognizedQrCode": "認識できないQRコード",
"scanCashuTokenHint": "Cashuトークンをスキャン(cashuA...またはcashuB...",
"scanLightningInvoiceHint": "Lightningインボイスをスキャン(lnbc...",
"addMintQuestion": "このMintを追加しますか?",
"cameraPermissionDenied": "カメラの許可が拒否されました",
"paymentRequestNotSupported": "支払いリクエストはまだサポートされていません",
"p2pkTitle": "P2PK鍵",
"p2pkSettingsDescription": "ロックされたecashを受け取る",
"p2pkExperimental": "P2PKは実験的機能です。注意してご使用ください。",
"p2pkPendingSendWarning": "保留中のP2PK送信があります。受取人がトークンを受け取った後、履歴で更新してください。",
"p2pkExperimentalShort": "実験的",
"p2pkPrimaryKey": "プライマリ鍵",
"p2pkDerived": "派生",
"p2pkImported": "インポート済み",
"p2pkImportedKeys": "インポートした鍵",
"p2pkNoImportedKeys": "インポートした鍵はありません",
"p2pkShowQR": "QRを表示",
"p2pkCopy": "コピー",
"p2pkImportNsec": "nsecをインポート",
"p2pkImport": "インポート",
"p2pkEnterLabel": "この鍵の名前",
"p2pkLockToKey": "P2PK署名で送信",
"p2pkLockDescription": "受取人のみが請求可能",
"p2pkReceiverPubkey": "npub1... または hex64/66文字)",
"p2pkInvalidPubkey": "無効な公開鍵",
"p2pkInvalidPrivateKey": "無効な秘密鍵",
"p2pkLockedToYou": "あなた宛にロック",
"p2pkLockedToOther": "別の鍵にロック",
"p2pkCannotUnlock": "このトークンをアンロックする鍵がありません",
"p2pkEnterPrivateKey": "秘密鍵を入力(nsec",
"p2pkDeleteTitle": "鍵を削除",
"p2pkDeleteConfirm": "この鍵を削除しますか?この鍵にロックされたトークンを受け取れなくなります。",
"p2pkRequiresConnection": "P2PKにはMintへの接続が必要です",
"p2pkErrorMaxKeysReached": "インポート可能な鍵の上限に達しました(10)",
"p2pkErrorInvalidNsec": "無効なnsec",
"p2pkErrorKeyAlreadyExists": "この鍵は既に存在します",
"p2pkErrorKeyNotFound": "鍵が見つかりません",
"p2pkErrorCannotDeletePrimary": "プライマリ鍵は削除できません"
}
+538
View File
@@ -0,0 +1,538 @@
{
"@@locale": "ko",
"appName": "ElCaju",
"appTagline": "당신의 프라이빗 ecash 지갑",
"loadingMessage1": "코인 암호화 중...",
"loadingMessage2": "e-토큰 준비 중...",
"loadingMessage3": "Mint에 연결 중...",
"loadingMessage4": "기본 프라이버시.",
"loadingMessage5": "블라인드 서명 토큰...",
"loadingMessage6": "Go full Calle...",
"loadingMessage7": "Cashu + Bitchat = 프라이버시 + 자유",
"aboutTagline": "국경 없는 프라이버시.",
"welcomeTitle": "ElCaju에 오신 것을 환영합니다",
"welcomeSubtitle": "세계를 위한 Cashu. 쿠바에서 제작.",
"createWallet": "새 지갑 만들기",
"restoreWallet": "지갑 복구",
"createWalletTitle": "지갑 만들기",
"creatingWallet": "지갑 생성 중...",
"generatingSeed": "시드 문구를 안전하게 생성 중",
"createWalletDescription": "12개의 단어로 된 시드 문구가 생성됩니다.\n안전한 곳에 보관하세요.",
"generateWallet": "지갑 생성",
"walletCreated": "지갑이 생성되었습니다!",
"walletCreatedDescription": "지갑이 준비되었습니다. 지금 시드 문구를 백업하는 것을 권장합니다.",
"backupWarning": "백업 없이는 기기를 분실하면 자금에 접근할 수 없습니다.",
"backupNow": "지금 백업",
"backupLater": "나중에 하기",
"backupTitle": "백업",
"seedPhraseTitle": "시드 문구",
"seedPhraseDescription": "이 12개의 단어를 순서대로 저장하세요. 지갑을 복구하는 유일한 방법입니다.",
"revealSeedPhrase": "시드 문구 보기",
"tapToReveal": "버튼을 탭하여\n시드 문구를 확인하세요",
"copyToClipboard": "클립보드에 복사",
"seedCopied": "문구가 클립보드에 복사되었습니다",
"neverShareSeed": "시드 문구를 절대 다른 사람과 공유하지 마세요.",
"confirmBackup": "시드 문구를 안전한 곳에 저장했습니다",
"continue_": "계속",
"restoreTitle": "지갑 복구",
"enterSeedPhrase": "시드 문구를 입력하세요",
"enterSeedDescription": "12개 또는 24개의 단어를 공백으로 구분하여 입력하세요.",
"seedPlaceholder": "단어1 단어2 단어3 ...",
"wordCount": "{count}개 단어",
"@wordCount": {
"placeholders": {
"count": { "type": "int" }
}
},
"needWords": "(12개 또는 24개 필요)",
"restoreScanningMint": "민트에서 기존 토큰 검색 중...",
"restoreError": "복구 오류: {error}",
"@restoreError": {
"placeholders": {
"error": { "type": "String" }
}
},
"homeTitle": "홈",
"receive": "받기",
"send": "보내기",
"sendAction": "보내기 ↗",
"receiveAction": "↘ 받기",
"deposit": "입금",
"withdraw": "출금",
"lightning": "Lightning",
"cashu": "Cashu",
"ecash": "Ecash",
"history": "거래 내역",
"noTransactions": "거래 내역이 없습니다",
"depositOrReceive": "시작하려면 sats를 입금하거나 받으세요",
"noMint": "Mint 없음",
"balance": "잔액",
"sats": "sats",
"pasteEcashToken": "ecash 토큰 붙여넣기",
"generateInvoiceToDeposit": "입금용 인보이스 생성",
"createEcashToken": "ecash 토큰 만들기",
"payLightningInvoice": "Lightning 인보이스 결제",
"receiveCashu": "Cashu 받기",
"pasteTheCashuToken": "Cashu 토큰을 붙여넣으세요:",
"pasteFromClipboard": "클립보드에서 붙여넣기",
"validToken": "유효한 토큰",
"invalidToken": "유효하지 않거나 손상된 토큰",
"amount": "금액:",
"mint": "Mint:",
"claiming": "청구 중...",
"claimTokens": "토큰 청구",
"tokensReceived": "토큰을 받았습니다",
"backToHome": "홈으로 돌아가기",
"tokenAlreadyClaimed": "이 토큰은 이미 청구되었습니다",
"unknownMint": "알 수 없는 mint의 토큰",
"claimError": "청구 오류: {error}",
"@claimError": {
"placeholders": {
"error": { "type": "String" }
}
},
"sendCashu": "Cashu 보내기",
"selectNotesManually": "수동으로 노트 선택",
"amountToSend": "보낼 금액:",
"available": "사용 가능:",
"max": "(최대)",
"memoOptional": "메모 (선택사항):",
"memoPlaceholder": "이 결제는 무엇을 위한 것인가요?",
"creatingToken": "토큰 생성 중...",
"createToken": "토큰 만들기",
"noActiveMint": "활성 mint 없음",
"offlineModeMessage": "연결 없음. 오프라인 모드...",
"confirmSend": "보내기 확인",
"confirm": "확인",
"cancel": "취소",
"insufficientBalance": "잔액 부족",
"tokenCreationError": "토큰 생성 오류: {error}",
"@tokenCreationError": {
"placeholders": {
"error": { "type": "String" }
}
},
"tokenCreated": "토큰이 생성되었습니다",
"copy": "복사",
"share": "공유",
"tokenCashu": "Cashu 토큰",
"tokenCashuAnimatedQr": "Cashu 토큰 (애니메이션 QR - {fragments}개 UR 조각)",
"@tokenCashuAnimatedQr": {
"placeholders": {
"fragments": { "type": "int" }
}
},
"keepTokenWarning": "수신자가 청구할 때까지 이 토큰을 보관하세요. 분실하면 자금을 잃게 됩니다.",
"tokenCopiedToClipboard": "토큰이 클립보드에 복사되었습니다",
"copyAsEmoji": "이모지로 복사",
"emojiCopiedToClipboard": "토큰이 이모지로 복사되었습니다 🥜",
"peanutDecodeError": "이모지 토큰을 디코딩할 수 없습니다. 손상되었을 수 있습니다.",
"nfcWrite": "NFC 태그에 쓰기",
"nfcRead": "NFC 태그 읽기",
"nfcHoldNear": "기기를 NFC 태그에 가까이 대세요...",
"nfcWriteSuccess": "토큰이 NFC 태그에 기록되었습니다",
"nfcWriteError": "NFC 쓰기 오류: {error}",
"@nfcWriteError": { "placeholders": { "error": { "type": "String" } } },
"nfcReadError": "NFC 읽기 오류: {error}",
"@nfcReadError": { "placeholders": { "error": { "type": "String" } } },
"nfcDisabled": "NFC가 비활성화되어 있습니다. 설정에서 활성화하세요.",
"nfcUnsupported": "이 기기는 NFC를 지원하지 않습니다",
"amountToDeposit": "입금할 금액:",
"descriptionOptional": "설명 (선택사항):",
"depositPlaceholder": "이 입금은 무엇을 위한 것인가요?",
"generating": "생성 중...",
"generateInvoice": "인보이스 생성",
"depositLightning": "Lightning 입금",
"payInvoiceTitle": "인보이스 결제",
"generatingInvoice": "인보이스 생성 중...",
"waitingForPayment": "결제 대기 중...",
"paymentReceived": "결제 완료",
"tokensIssued": "토큰이 발행되었습니다!",
"error": "오류",
"unknownError": "알 수 없는 오류",
"back": "뒤로",
"copyInvoice": "인보이스 복사",
"description": "설명:",
"invoiceCopiedToClipboard": "인보이스가 클립보드에 복사되었습니다",
"deposited": "{amount} {unit} 입금됨",
"@deposited": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"pasteLightningInvoice": "Lightning 인보이스를 붙여넣으세요:",
"gettingQuote": "견적 조회 중...",
"validInvoice": "유효한 인보이스",
"invalidInvoice": "유효하지 않은 인보이스",
"invalidInvoiceMalformed": "유효하지 않거나 손상된 인보이스",
"feeReserved": "예약 수수료:",
"total": "총액:",
"paying": "결제 중...",
"payInvoice": "인보이스 결제",
"confirmPayment": "결제 확인",
"pay": "결제",
"fee": "수수료",
"invoiceExpired": "인보이스 만료됨",
"amountOutOfRange": "허용 범위를 벗어난 금액",
"resolvingType": "{type} 확인 중...",
"@resolvingType": {
"placeholders": {
"type": { "type": "String" }
}
},
"invoiceAlreadyPaid": "이미 결제된 인보이스",
"paymentError": "결제 오류: {error}",
"@paymentError": {
"placeholders": {
"error": { "type": "String" }
}
},
"sent": "{amount} {unit} 전송됨",
"@sent": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"filterAll": "전체",
"filterPending": "대기 중",
"filterEcash": "Ecash",
"filterLightning": "Lightning",
"receiveTokensToStart": "시작하려면 Cashu 토큰을 받으세요",
"noPendingTransactions": "대기 중인 거래 없음",
"allTransactionsCompleted": "모든 거래가 완료되었습니다",
"noEcashTransactions": "Ecash 거래 없음",
"sendOrReceiveTokens": "Cashu 토큰을 보내거나 받으세요",
"noLightningTransactions": "Lightning 거래 없음",
"depositOrWithdrawLightning": "Lightning으로 입금 또는 출금",
"pendingStatus": "대기 중",
"receivedStatus": "받음",
"sentStatus": "보냄",
"now": "방금",
"agoMinutes": "{minutes}분 전",
"@agoMinutes": {
"placeholders": {
"minutes": { "type": "int" }
}
},
"agoHours": "{hours}시간 전",
"@agoHours": {
"placeholders": {
"hours": { "type": "int" }
}
},
"agoDays": "{days}일 전",
"@agoDays": {
"placeholders": {
"days": { "type": "int" }
}
},
"lightningInvoice": "Lightning 인보이스",
"receivedEcash": "Ecash 받음",
"sentEcash": "Ecash 보냄",
"outgoingLightningPayment": "Lightning 송금",
"invoiceNotAvailable": "인보이스를 사용할 수 없음",
"tokenNotAvailable": "토큰을 사용할 수 없음",
"unit": "단위",
"status": "상태",
"pending": "대기 중",
"memo": "메모",
"copyInvoiceButton": "인보이스 복사",
"copyButton": "복사",
"invoiceCopied": "인보이스 복사됨",
"tokenCopied": "토큰 복사됨",
"speed": "속도:",
"settings": "설정",
"walletSection": "지갑",
"backupSeedPhrase": "시드 문구 백업",
"viewRecoveryWords": "복구 단어 보기",
"connectedMints": "연결된 Mint",
"manageCashuMints": "Cashu mint 관리",
"pinAccess": "PIN 잠금",
"pinEnabled": "활성화됨",
"protectWithPin": "PIN으로 앱 보호",
"recoverTokens": "토큰 복구",
"scanMintsWithSeed": "시드 문구로 mint 스캔",
"appearanceSection": "언어",
"language": "언어",
"informationSection": "정보",
"version": "버전",
"about": "정보",
"deleteWallet": "지갑 삭제",
"spanish": "Español",
"english": "English",
"portuguese": "Português",
"french": "Français",
"russian": "Русский",
"german": "Deutsch",
"italian": "Italiano",
"korean": "한국어",
"chinese": "中文",
"japanese": "日本語",
"swahili": "Kiswahili",
"mnemonicNotFound": "니모닉을 찾을 수 없음",
"createPin": "PIN 만들기",
"enterPinDigits": "4자리 PIN을 입력하세요",
"confirmPin": "PIN 확인",
"enterPinAgain": "PIN을 다시 입력하세요",
"pinMismatch": "PIN이 일치하지 않습니다",
"pinActivated": "PIN 활성화됨",
"pinDeactivated": "PIN 비활성화됨",
"verifyPin": "PIN 확인",
"enterCurrentPin": "현재 PIN을 입력하세요",
"incorrectPin": "잘못된 PIN",
"selectLanguage": "언어 선택",
"languageChanged": "언어가 {language}(으)로 변경되었습니다",
"@languageChanged": {
"placeholders": {
"language": { "type": "String" }
}
},
"close": "닫기",
"aboutDescription": "전 세계를 위한 쿠바 DNA를 가진 Cashu 지갑. LaChispa의 형제.",
"couldNotOpenLink": "링크를 열 수 없음",
"deleteWalletQuestion": "지갑을 삭제하시겠습니까?",
"actionIrreversible": "이 작업은 되돌릴 수 없습니다",
"deleteWalletWarning": "시드 문구와 토큰을 포함한 모든 데이터가 삭제됩니다. 백업이 있는지 확인하세요.",
"typeDeleteToConfirm": "확인하려면 \"삭제\"를 입력하세요:",
"deleteConfirmWord": "삭제",
"deleteError": "삭제 오류: {error}",
"@deleteError": {
"placeholders": {
"error": { "type": "String" }
}
},
"recoverTokensTitle": "토큰 복구",
"recoverTokensDescription": "시드 문구와 연결된 토큰을 복구하기 위해 mint 스캔 (NUT-13)",
"useCurrentSeedPhrase": "현재 시드 문구 사용",
"scanWithSavedWords": "저장된 12개 단어로 mint 스캔",
"useOtherSeedPhrase": "다른 시드 문구 사용",
"recoverFromOtherWords": "다른 12개 단어에서 토큰 복구",
"mintsToScan": "스캔할 Mint:",
"allMints": "모든 mint ({count}개)",
"@allMints": {
"placeholders": {
"count": { "type": "int" }
}
},
"specificMint": "특정 mint",
"enterMnemonicWords": "공백으로 구분된 12개 단어를 입력하세요...",
"scanMints": "Mint 스캔",
"selectMintToScan": "스캔할 mint 선택",
"mnemonicMustHaveWords": "니모닉은 12개 또는 24개 단어여야 합니다",
"noConnectedMintsToScan": "스캔할 연결된 mint 없음",
"recoveredTokens": "{mints}개 mint에서 {tokens} 복구됨!",
"@recoveredTokens": {
"placeholders": {
"tokens": { "type": "String" },
"mints": { "type": "int" }
}
},
"scanCompleteNoTokens": "스캔 완료. 새 토큰을 찾지 못했습니다.",
"mintsWithError": "({count}개 mint 오류)",
"@mintsWithError": {
"placeholders": {
"count": { "type": "int" }
}
},
"recoveredFromMint": "{mint}에서 {tokens} 복구됨!",
"@recoveredFromMint": {
"placeholders": {
"tokens": { "type": "String" },
"mint": { "type": "String" }
}
},
"noTokensFoundInMint": "{mint}에서 토큰을 찾을 수 없음.",
"@noTokensFoundInMint": {
"placeholders": {
"mint": { "type": "String" }
}
},
"recoveredAndTransferred": "{amount} {unit}이(가) 지갑으로 복구 및 전송되었습니다!",
"@recoveredAndTransferred": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"noTokensForMnemonic": "해당 니모닉과 연결된 토큰을 찾을 수 없음.",
"noConnectedMints": "연결된 mint 없음",
"addMintToStart": "시작하려면 mint를 추가하세요",
"addMint": "Mint 추가",
"mintDeleted": "Mint 삭제됨",
"activeMintUpdated": "활성 mint 업데이트됨",
"mintUrl": "Mint URL:",
"mintUrlPlaceholder": "https://mint.example.com",
"urlMustStartWithHttps": "URL은 https://로 시작해야 합니다",
"connectingToMint": "Mint에 연결 중...",
"mintAddedSuccessfully": "Mint가 성공적으로 추가되었습니다",
"couldNotConnectToMint": "Mint에 연결할 수 없음",
"add": "추가",
"success": "성공",
"loading": "로딩 중...",
"retry": "다시 시도",
"activeMint": "활성 Mint",
"mintMessage": "Mint 메시지",
"url": "URL",
"currency": "통화",
"unknown": "알 수 없음",
"useThisMint": "이 mint 사용",
"copyMintUrl": "Mint URL 복사",
"deleteMint": "Mint 삭제",
"copied": "{label} 복사됨",
"@copied": {
"placeholders": {
"label": { "type": "String" }
}
},
"deleteMintConfirmTitle": "Mint 삭제",
"deleteMintConfirmMessage": "이 mint에 잔액이 있으면 잃게 됩니다. 확실합니까?",
"delete": "삭제",
"offlineSend": "오프라인 전송",
"selectAll": "전체",
"deselectAll": "없음",
"selectNotesToSend": "보낼 노트를 선택하세요:",
"totalToSend": "보낼 총액",
"notesSelected": "{count}개 노트 선택됨",
"@notesSelected": {
"placeholders": {
"count": { "type": "int" }
}
},
"loadingProofsError": "증명 로드 오류: {error}",
"@loadingProofsError": {
"placeholders": {
"error": { "type": "String" }
}
},
"creatingTokenError": "토큰 생성 오류: {error}",
"@creatingTokenError": {
"placeholders": {
"error": { "type": "String" }
}
},
"unknownState": "알 수 없는 상태",
"depositAmountTitle": "{amount} {unit} 입금",
"@depositAmountTitle": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"receiveNow": "지금 받기",
"receiveLater": "나중에 받기",
"tokenSavedForLater": "나중에 청구하기 위해 토큰이 저장되었습니다",
"noConnectionTokenSaved": "연결 없음. 나중에 청구하기 위해 토큰이 저장되었습니다.",
"unknownMintOffline": "이 토큰은 알 수 없는 mint의 것입니다. 인터넷에 연결하여 추가하고 토큰을 청구하세요.",
"noConnectionTryLater": "Mint에 연결할 수 없음. 나중에 다시 시도하세요.",
"saveTokenError": "토큰 저장 오류. 다시 시도해 주세요.",
"pendingTokenLimitReached": "대기 중 토큰 한도 도달 (최대 50개)",
"filterToReceive": "받을 항목",
"noPendingTokens": "대기 중인 토큰 없음",
"noPendingTokensHint": "나중에 청구할 토큰을 저장하세요",
"pendingBadge": "대기 중",
"expiresInDays": "{days, plural, =1{1일 후 만료} other{{days}일 후 만료}}",
"@expiresInDays": {
"placeholders": {
"days": { "type": "int" }
}
},
"retryCount": "{count}회 재시도",
"@retryCount": {
"placeholders": {
"count": { "type": "int" }
}
},
"claimNow": "지금 청구",
"pendingTokenClaimedSuccess": "{amount} {unit} 청구됨",
"@pendingTokenClaimedSuccess": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"pendingTokensClaimed": "{count, plural, =1{1개 토큰 청구됨 ({amount} {unit})} other{{count}개 토큰 청구됨 ({amount} {unit})}}",
"@pendingTokensClaimed": {
"placeholders": {
"count": { "type": "int" },
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"scan": "스캔",
"scanQrCode": "QR 스캔",
"scanCashuToken": "Cashu 토큰 스캔",
"scanLightningInvoice": "인보이스 스캔",
"scanningAnimatedQr": "애니메이션 QR 스캔 중...",
"pointCameraAtQr": "카메라를 QR 코드에 맞추세요",
"pointCameraAtCashuQr": "카메라를 Cashu 토큰 QR에 맞추세요",
"pointCameraAtInvoiceQr": "카메라를 인보이스 QR에 맞추세요",
"unrecognizedQrCode": "인식할 수 없는 QR 코드",
"scanCashuTokenHint": "Cashu 토큰 스캔 (cashuA... 또는 cashuB...)",
"scanLightningInvoiceHint": "Lightning 인보이스 스캔 (lnbc...)",
"addMintQuestion": "이 mint를 추가하시겠습니까?",
"cameraPermissionDenied": "카메라 권한이 거부되었습니다",
"paymentRequestNotSupported": "결제 요청은 아직 지원되지 않습니다",
"p2pkTitle": "P2PK 키",
"p2pkSettingsDescription": "잠긴 ecash 받기",
"p2pkExperimental": "P2PK는 실험적 기능입니다. 주의하여 사용하세요.",
"p2pkPendingSendWarning": "대기 중인 P2PK 전송이 있습니다. 수신자가 토큰을 수령한 후 기록에서 새로고침하세요.",
"p2pkExperimentalShort": "실험적",
"p2pkPrimaryKey": "기본 키",
"p2pkDerived": "파생됨",
"p2pkImported": "가져옴",
"p2pkImportedKeys": "가져온 키",
"p2pkNoImportedKeys": "가져온 키가 없습니다",
"p2pkShowQR": "QR 표시",
"p2pkCopy": "복사",
"p2pkImportNsec": "nsec 가져오기",
"p2pkImport": "가져오기",
"p2pkEnterLabel": "이 키의 이름",
"p2pkLockToKey": "P2PK 서명으로 전송",
"p2pkLockDescription": "수신자만 청구 가능",
"p2pkReceiverPubkey": "npub1... 또는 hex (64/66자)",
"p2pkInvalidPubkey": "유효하지 않은 공개 키",
"p2pkInvalidPrivateKey": "유효하지 않은 개인 키",
"p2pkLockedToYou": "당신에게 잠김",
"p2pkLockedToOther": "다른 키로 잠김",
"p2pkCannotUnlock": "이 토큰을 잠금 해제할 키가 없습니다",
"p2pkEnterPrivateKey": "개인 키 입력 (nsec)",
"p2pkDeleteTitle": "키 삭제",
"p2pkDeleteConfirm": "이 키를 삭제하시겠습니까? 이 키로 잠긴 토큰을 받을 수 없게 됩니다.",
"p2pkRequiresConnection": "P2PK는 mint 연결이 필요합니다",
"p2pkErrorMaxKeysReached": "가져온 키의 최대 개수에 도달했습니다 (10)",
"p2pkErrorInvalidNsec": "유효하지 않은 nsec",
"p2pkErrorKeyAlreadyExists": "이 키는 이미 존재합니다",
"p2pkErrorKeyNotFound": "키를 찾을 수 없습니다",
"p2pkErrorCannotDeletePrimary": "기본 키는 삭제할 수 없습니다"
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+538
View File
@@ -0,0 +1,538 @@
{
"@@locale": "pt",
"appName": "ElCaju",
"appTagline": "Sua wallet de ecash privada",
"loadingMessage1": "Criptografando suas moedas...",
"loadingMessage2": "Preparando seus e-tokens...",
"loadingMessage3": "Conectando ao Mint...",
"loadingMessage4": "Privacidade por padrão.",
"loadingMessage5": "Assinando tokens cegamente...",
"loadingMessage6": "Go full Calle...",
"loadingMessage7": "Cashu + Bitchat = Privacidade + Liberdade",
"aboutTagline": "Privacidade sem fronteiras.",
"welcomeTitle": "Bem-vindo ao ElCaju",
"welcomeSubtitle": "Cashu para o mundo. Feito em Cuba.",
"createWallet": "Criar nova wallet",
"restoreWallet": "Restaurar wallet",
"createWalletTitle": "Criar wallet",
"creatingWallet": "Criando sua wallet...",
"generatingSeed": "Gerando sua frase semente de forma segura",
"createWalletDescription": "Uma frase semente de 12 palavras será gerada.\nGuarde-a em um lugar seguro.",
"generateWallet": "Gerar wallet",
"walletCreated": "Wallet criada!",
"walletCreatedDescription": "Sua wallet está pronta. Recomendamos fazer backup da sua frase semente agora.",
"backupWarning": "Sem backup, você perderá acesso aos seus fundos se perder o dispositivo.",
"backupNow": "Fazer backup agora",
"backupLater": "Fazer depois",
"backupTitle": "Backup",
"seedPhraseTitle": "Sua frase semente",
"seedPhraseDescription": "Guarde estas 12 palavras em ordem. Elas são a única forma de recuperar sua wallet.",
"revealSeedPhrase": "Revelar frase semente",
"tapToReveal": "Toque no botão para revelar\nsua frase semente",
"copyToClipboard": "Copiar para área de transferência",
"seedCopied": "Frase copiada para área de transferência",
"neverShareSeed": "Nunca compartilhe sua frase semente com ninguém.",
"confirmBackup": "Guardei minha frase semente em um lugar seguro",
"continue_": "Continuar",
"restoreTitle": "Restaurar wallet",
"enterSeedPhrase": "Digite sua frase semente",
"enterSeedDescription": "Digite as 12 ou 24 palavras separadas por espaços.",
"seedPlaceholder": "palavra1 palavra2 palavra3 ...",
"wordCount": "{count} palavras",
"@wordCount": {
"placeholders": {
"count": { "type": "int" }
}
},
"needWords": "(você precisa de 12 ou 24)",
"restoreScanningMint": "Escaneando mint em busca de tokens...",
"restoreError": "Erro ao restaurar: {error}",
"@restoreError": {
"placeholders": {
"error": { "type": "String" }
}
},
"homeTitle": "Início",
"receive": "Receber",
"send": "Enviar",
"sendAction": "Enviar ↗",
"receiveAction": "↘ Receber",
"deposit": "Depositar",
"withdraw": "Sacar",
"lightning": "Lightning",
"cashu": "Cashu",
"ecash": "Ecash",
"history": "Histórico",
"noTransactions": "Sem transações ainda",
"depositOrReceive": "Deposite ou receba sats para começar",
"noMint": "Sem mint",
"balance": "Saldo",
"sats": "sats",
"pasteEcashToken": "Colar token ecash",
"generateInvoiceToDeposit": "Gerar invoice para depositar",
"createEcashToken": "Criar token ecash",
"payLightningInvoice": "Pagar invoice Lightning",
"receiveCashu": "Receber Cashu",
"pasteTheCashuToken": "Cole o token Cashu:",
"pasteFromClipboard": "Colar da área de transferência",
"validToken": "Token válido",
"invalidToken": "Token inválido ou malformado",
"amount": "Valor:",
"mint": "Mint:",
"claiming": "Resgatando...",
"claimTokens": "Resgatar tokens",
"tokensReceived": "Tokens recebidos",
"backToHome": "Voltar ao início",
"tokenAlreadyClaimed": "Este token já foi resgatado",
"unknownMint": "Token de um mint desconhecido",
"claimError": "Erro ao resgatar: {error}",
"@claimError": {
"placeholders": {
"error": { "type": "String" }
}
},
"sendCashu": "Enviar Cashu",
"selectNotesManually": "Selecionar notas manualmente",
"amountToSend": "Valor a enviar:",
"available": "Disponível:",
"max": "(Máx)",
"memoOptional": "Memo (opcional):",
"memoPlaceholder": "Para que é este pagamento?",
"creatingToken": "Criando token...",
"createToken": "Criar token",
"noActiveMint": "Nenhum mint ativo",
"offlineModeMessage": "Sem conexão. Usando modo offline...",
"confirmSend": "Confirmar envio",
"confirm": "Confirmar",
"cancel": "Cancelar",
"insufficientBalance": "Saldo insuficiente",
"tokenCreationError": "Erro ao criar token: {error}",
"@tokenCreationError": {
"placeholders": {
"error": { "type": "String" }
}
},
"tokenCreated": "Token criado",
"copy": "Copiar",
"share": "Compartilhar",
"tokenCashu": "Token Cashu",
"tokenCashuAnimatedQr": "Token Cashu (QR animado - {fragments} fragmentos UR)",
"@tokenCashuAnimatedQr": {
"placeholders": {
"fragments": { "type": "int" }
}
},
"keepTokenWarning": "Guarde este token até que o destinatário o resgate. Se você perdê-lo, perderá os fundos.",
"tokenCopiedToClipboard": "Token copiado para área de transferência",
"copyAsEmoji": "Copiar como emoji",
"emojiCopiedToClipboard": "Token copiado como emoji 🥜",
"peanutDecodeError": "Não foi possível decodificar o token emoji. Pode estar corrompido.",
"nfcWrite": "Escrever em tag NFC",
"nfcRead": "Ler tag NFC",
"nfcHoldNear": "Aproxime o dispositivo da tag NFC...",
"nfcWriteSuccess": "Token escrito na tag NFC",
"nfcWriteError": "Erro NFC ao escrever: {error}",
"@nfcWriteError": { "placeholders": { "error": { "type": "String" } } },
"nfcReadError": "Erro NFC ao ler: {error}",
"@nfcReadError": { "placeholders": { "error": { "type": "String" } } },
"nfcDisabled": "NFC está desativado. Ative nas Configurações.",
"nfcUnsupported": "Este dispositivo não suporta NFC",
"amountToDeposit": "Valor a depositar:",
"descriptionOptional": "Descrição (opcional):",
"depositPlaceholder": "Para que é este depósito?",
"generating": "Gerando...",
"generateInvoice": "Gerar invoice",
"depositLightning": "Depositar Lightning",
"payInvoiceTitle": "Pagar invoice",
"generatingInvoice": "Gerando invoice...",
"waitingForPayment": "Aguardando pagamento...",
"paymentReceived": "Pagamento recebido",
"tokensIssued": "Tokens emitidos!",
"error": "Erro",
"unknownError": "Erro desconhecido",
"back": "Voltar",
"copyInvoice": "Copiar invoice",
"description": "Descrição:",
"invoiceCopiedToClipboard": "Invoice copiado para área de transferência",
"deposited": "{amount} {unit} depositados",
"@deposited": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"pasteLightningInvoice": "Cole o invoice Lightning:",
"gettingQuote": "Obtendo cotação...",
"validInvoice": "Invoice válido",
"invalidInvoice": "Invoice inválido",
"invalidInvoiceMalformed": "Invoice inválido ou malformado",
"feeReserved": "Taxa reservada:",
"total": "Total:",
"paying": "Pagando...",
"payInvoice": "Pagar invoice",
"confirmPayment": "Confirmar pagamento",
"pay": "Pagar",
"fee": "taxa",
"invoiceExpired": "Invoice expirado",
"amountOutOfRange": "Valor fora do intervalo permitido",
"resolvingType": "Resolvendo {type}...",
"@resolvingType": {
"placeholders": {
"type": { "type": "String" }
}
},
"invoiceAlreadyPaid": "Invoice já foi pago",
"paymentError": "Erro ao pagar: {error}",
"@paymentError": {
"placeholders": {
"error": { "type": "String" }
}
},
"sent": "{amount} {unit} enviados",
"@sent": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"filterAll": "Todos",
"filterPending": "Pendentes",
"filterEcash": "Ecash",
"filterLightning": "Lightning",
"receiveTokensToStart": "Receba tokens Cashu para começar",
"noPendingTransactions": "Sem transações pendentes",
"allTransactionsCompleted": "Todas as suas transações estão completas",
"noEcashTransactions": "Sem transações Ecash",
"sendOrReceiveTokens": "Envie ou receba tokens Cashu",
"noLightningTransactions": "Sem transações Lightning",
"depositOrWithdrawLightning": "Deposite ou saque via Lightning",
"pendingStatus": "Pendente",
"receivedStatus": "Recebido",
"sentStatus": "Enviado",
"now": "Agora",
"agoMinutes": "Há {minutes} min",
"@agoMinutes": {
"placeholders": {
"minutes": { "type": "int" }
}
},
"agoHours": "Há {hours} h",
"@agoHours": {
"placeholders": {
"hours": { "type": "int" }
}
},
"agoDays": "Há {days} dias",
"@agoDays": {
"placeholders": {
"days": { "type": "int" }
}
},
"lightningInvoice": "Invoice Lightning",
"receivedEcash": "Ecash Recebido",
"sentEcash": "Ecash Enviado",
"outgoingLightningPayment": "Pagamento Lightning Enviado",
"invoiceNotAvailable": "Invoice não disponível",
"tokenNotAvailable": "Token não disponível",
"unit": "Unidade",
"status": "Status",
"pending": "Pendente",
"memo": "Memo",
"copyInvoiceButton": "COPIAR INVOICE",
"copyButton": "COPIAR",
"invoiceCopied": "Invoice copiado",
"tokenCopied": "Token copiado",
"speed": "VELOCIDADE:",
"settings": "Configurações",
"walletSection": "WALLET",
"backupSeedPhrase": "Backup da frase semente",
"viewRecoveryWords": "Ver suas palavras de recuperação",
"connectedMints": "Mints conectados",
"manageCashuMints": "Gerenciar seus mints Cashu",
"pinAccess": "PIN de acesso",
"pinEnabled": "Ativado",
"protectWithPin": "Proteger o app com PIN",
"recoverTokens": "Recuperar tokens",
"scanMintsWithSeed": "Escanear mints com frase semente",
"appearanceSection": "IDIOMA",
"language": "Idioma",
"informationSection": "INFORMAÇÃO",
"version": "Versão",
"about": "Sobre",
"deleteWallet": "Apagar wallet",
"spanish": "Español",
"english": "English",
"portuguese": "Português",
"french": "Français",
"russian": "Русский",
"german": "Deutsch",
"italian": "Italiano",
"korean": "한국어",
"chinese": "中文",
"japanese": "日本語",
"swahili": "Kiswahili",
"mnemonicNotFound": "Mnemônico não encontrado",
"createPin": "Criar PIN",
"enterPinDigits": "Digite um PIN de 4 dígitos",
"confirmPin": "Confirmar PIN",
"enterPinAgain": "Digite o PIN novamente",
"pinMismatch": "Os PINs não coincidem",
"pinActivated": "PIN ativado",
"pinDeactivated": "PIN desativado",
"verifyPin": "Verificar PIN",
"enterCurrentPin": "Digite seu PIN atual",
"incorrectPin": "PIN incorreto",
"selectLanguage": "Selecionar idioma",
"languageChanged": "Idioma alterado para {language}",
"@languageChanged": {
"placeholders": {
"language": { "type": "String" }
}
},
"close": "Fechar",
"aboutDescription": "Uma wallet Cashu com DNA cubano para o mundo inteiro. Irmã de LaChispa.",
"couldNotOpenLink": "Não foi possível abrir o link",
"deleteWalletQuestion": "Apagar wallet?",
"actionIrreversible": "Esta ação é irreversível",
"deleteWalletWarning": "Todos os dados serão excluídos, incluindo sua frase semente e tokens. Certifique-se de ter um backup.",
"typeDeleteToConfirm": "Digite \"APAGAR\" para confirmar:",
"deleteConfirmWord": "APAGAR",
"deleteError": "Erro ao apagar: {error}",
"@deleteError": {
"placeholders": {
"error": { "type": "String" }
}
},
"recoverTokensTitle": "Recuperar tokens",
"recoverTokensDescription": "Escanear mints para recuperar tokens associados à sua frase semente (NUT-13)",
"useCurrentSeedPhrase": "Usar minha frase semente atual",
"scanWithSavedWords": "Escanear mints com as 12 palavras salvas",
"useOtherSeedPhrase": "Usar outra frase semente",
"recoverFromOtherWords": "Recuperar tokens de outras 12 palavras",
"mintsToScan": "Mints para escanear:",
"allMints": "Todos os mints ({count})",
"@allMints": {
"placeholders": {
"count": { "type": "int" }
}
},
"specificMint": "Um mint específico",
"enterMnemonicWords": "Digite as 12 palavras separadas por espaços...",
"scanMints": "Escanear mints",
"selectMintToScan": "Selecione um mint para escanear",
"mnemonicMustHaveWords": "O mnemônico deve ter 12 ou 24 palavras",
"noConnectedMintsToScan": "Nenhum mint conectado para escanear",
"recoveredTokens": "Recuperados {tokens} de {mints} mint(s)!",
"@recoveredTokens": {
"placeholders": {
"tokens": { "type": "String" },
"mints": { "type": "int" }
}
},
"scanCompleteNoTokens": "Escaneamento completo. Nenhum token novo encontrado.",
"mintsWithError": "({count} mint(s) com erro)",
"@mintsWithError": {
"placeholders": {
"count": { "type": "int" }
}
},
"recoveredFromMint": "Recuperados {tokens} de {mint}!",
"@recoveredFromMint": {
"placeholders": {
"tokens": { "type": "String" },
"mint": { "type": "String" }
}
},
"noTokensFoundInMint": "Nenhum token encontrado em {mint}.",
"@noTokensFoundInMint": {
"placeholders": {
"mint": { "type": "String" }
}
},
"recoveredAndTransferred": "Recuperados e transferidos {amount} {unit} para sua wallet!",
"@recoveredAndTransferred": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"noTokensForMnemonic": "Nenhum token encontrado associado a esse mnemônico.",
"noConnectedMints": "Nenhum mint conectado",
"addMintToStart": "Adicione um mint para começar",
"addMint": "Adicionar mint",
"mintDeleted": "Mint excluído",
"activeMintUpdated": "Mint ativo atualizado",
"mintUrl": "URL do mint:",
"mintUrlPlaceholder": "https://mint.example.com",
"urlMustStartWithHttps": "A URL deve começar com https://",
"connectingToMint": "Conectando ao mint...",
"mintAddedSuccessfully": "Mint adicionado com sucesso",
"couldNotConnectToMint": "Não foi possível conectar ao mint",
"add": "Adicionar",
"success": "Sucesso",
"loading": "Carregando...",
"retry": "Tentar novamente",
"activeMint": "Mint ativo",
"mintMessage": "Mensagem do Mint",
"url": "URL",
"currency": "Moeda",
"unknown": "Desconhecido",
"useThisMint": "Usar este mint",
"copyMintUrl": "Copiar URL do mint",
"deleteMint": "Excluir mint",
"copied": "{label} copiado",
"@copied": {
"placeholders": {
"label": { "type": "String" }
}
},
"deleteMintConfirmTitle": "Excluir mint",
"deleteMintConfirmMessage": "Se você tiver saldo neste mint, ele será perdido. Tem certeza?",
"delete": "Excluir",
"offlineSend": "Envio Offline",
"selectAll": "Tudo",
"deselectAll": "Nenhum",
"selectNotesToSend": "Selecione as notas que deseja enviar:",
"totalToSend": "Total a enviar",
"notesSelected": "{count} notas selecionadas",
"@notesSelected": {
"placeholders": {
"count": { "type": "int" }
}
},
"loadingProofsError": "Erro ao carregar provas: {error}",
"@loadingProofsError": {
"placeholders": {
"error": { "type": "String" }
}
},
"creatingTokenError": "Erro ao criar token: {error}",
"@creatingTokenError": {
"placeholders": {
"error": { "type": "String" }
}
},
"unknownState": "Estado desconhecido",
"depositAmountTitle": "Depositar {amount} {unit}",
"@depositAmountTitle": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"receiveNow": "Receber agora",
"receiveLater": "Receber depois",
"tokenSavedForLater": "Token salvo para resgatar depois",
"noConnectionTokenSaved": "Sem conexão. Token salvo para resgatar depois.",
"unknownMintOffline": "Este token é de um mint desconhecido. Conecte-se à internet para adicioná-lo e resgatar o token.",
"noConnectionTryLater": "Sem conexão ao mint. Tente mais tarde.",
"saveTokenError": "Erro ao salvar o token. Tente novamente.",
"pendingTokenLimitReached": "Limite de tokens pendentes atingido (máx 50)",
"filterToReceive": "Para receber",
"noPendingTokens": "Sem tokens pendentes",
"noPendingTokensHint": "Salve tokens para resgatar depois",
"pendingBadge": "PENDENTE",
"expiresInDays": "{days, plural, =1{Expira em 1 dia} other{Expira em {days} dias}}",
"@expiresInDays": {
"placeholders": {
"days": { "type": "int" }
}
},
"retryCount": "{count} tentativas",
"@retryCount": {
"placeholders": {
"count": { "type": "int" }
}
},
"claimNow": "Resgatar agora",
"pendingTokenClaimedSuccess": "Resgatados {amount} {unit}",
"@pendingTokenClaimedSuccess": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"pendingTokensClaimed": "{count, plural, =1{Resgatado 1 token ({amount} {unit})} other{Resgatados {count} tokens ({amount} {unit})}}",
"@pendingTokensClaimed": {
"placeholders": {
"count": { "type": "int" },
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"scan": "Escanear",
"scanQrCode": "Escanear QR",
"scanCashuToken": "Escanear token Cashu",
"scanLightningInvoice": "Escanear invoice",
"scanningAnimatedQr": "Escaneando QR animado...",
"pointCameraAtQr": "Aponte a câmera para o código QR",
"pointCameraAtCashuQr": "Aponte a câmera para o QR do token Cashu",
"pointCameraAtInvoiceQr": "Aponte a câmera para o QR do invoice",
"unrecognizedQrCode": "Código QR não reconhecido",
"scanCashuTokenHint": "Escaneie um token Cashu (cashuA... ou cashuB...)",
"scanLightningInvoiceHint": "Escaneie um invoice Lightning (lnbc...)",
"addMintQuestion": "Adicionar este mint?",
"cameraPermissionDenied": "Permissão de câmera negada",
"paymentRequestNotSupported": "Solicitações de pagamento ainda não são suportadas",
"p2pkTitle": "Chaves P2PK",
"p2pkSettingsDescription": "Receber ecash bloqueado",
"p2pkExperimental": "P2PK é experimental. Use com cautela.",
"p2pkPendingSendWarning": "Você tem um envio P2PK pendente. Vá ao histórico e atualize após o destinatário resgatar o token.",
"p2pkExperimentalShort": "Experimental",
"p2pkPrimaryKey": "Chave Principal",
"p2pkDerived": "Derivada",
"p2pkImported": "Importada",
"p2pkImportedKeys": "Chaves Importadas",
"p2pkNoImportedKeys": "Nenhuma chave importada",
"p2pkShowQR": "Mostrar QR",
"p2pkCopy": "Copiar",
"p2pkImportNsec": "Importar nsec",
"p2pkImport": "Importar",
"p2pkEnterLabel": "Nome para esta chave",
"p2pkLockToKey": "Envio com assinatura P2PK",
"p2pkLockDescription": "Apenas o destinatário pode resgatar",
"p2pkReceiverPubkey": "npub1... ou hex (64/66 caracteres)",
"p2pkInvalidPubkey": "Chave pública inválida",
"p2pkInvalidPrivateKey": "Chave privada inválida",
"p2pkLockedToYou": "Bloqueado para você",
"p2pkLockedToOther": "Bloqueado para outra chave",
"p2pkCannotUnlock": "Você não tem a chave para desbloquear este token",
"p2pkEnterPrivateKey": "Digite a chave privada (nsec)",
"p2pkDeleteTitle": "Excluir chave",
"p2pkDeleteConfirm": "Excluir esta chave? Você não poderá receber tokens bloqueados para ela.",
"p2pkRequiresConnection": "P2PK requer conexão com o mint",
"p2pkErrorMaxKeysReached": "Número máximo de chaves importadas atingido (10)",
"p2pkErrorInvalidNsec": "nsec inválido",
"p2pkErrorKeyAlreadyExists": "Esta chave já existe",
"p2pkErrorKeyNotFound": "Chave não encontrada",
"p2pkErrorCannotDeletePrimary": "Não é possível excluir a chave principal"
}
+538
View File
@@ -0,0 +1,538 @@
{
"@@locale": "ru",
"appName": "ElCaju",
"appTagline": "Ваш приватный ecash кошелёк",
"loadingMessage1": "Шифрование ваших монет...",
"loadingMessage2": "Подготовка ваших e-токенов...",
"loadingMessage3": "Подключение к Mint...",
"loadingMessage4": "Конфиденциальность по умолчанию.",
"loadingMessage5": "Слепая подпись токенов...",
"loadingMessage6": "Go full Calle...",
"loadingMessage7": "Cashu + Bitchat = Конфиденциальность + Свобода",
"aboutTagline": "Конфиденциальность без границ.",
"welcomeTitle": "Добро пожаловать в ElCaju",
"welcomeSubtitle": "Cashu для мира. Сделано на Кубе.",
"createWallet": "Создать новый кошелёк",
"restoreWallet": "Восстановить кошелёк",
"createWalletTitle": "Создать кошелёк",
"creatingWallet": "Создание вашего кошелька...",
"generatingSeed": "Безопасная генерация вашей сид-фразы",
"createWalletDescription": "Будет сгенерирована сид-фраза из 12 слов.\nСохраните её в безопасном месте.",
"generateWallet": "Создать кошелёк",
"walletCreated": "Кошелёк создан!",
"walletCreatedDescription": "Ваш кошелёк готов. Рекомендуем сделать резервную копию сид-фразы сейчас.",
"backupWarning": "Без резервной копии вы потеряете доступ к средствам при потере устройства.",
"backupNow": "Сделать резервную копию",
"backupLater": "Сделать позже",
"backupTitle": "Резервная копия",
"seedPhraseTitle": "Ваша сид-фраза",
"seedPhraseDescription": "Сохраните эти 12 слов по порядку. Это единственный способ восстановить кошелёк.",
"revealSeedPhrase": "Показать сид-фразу",
"tapToReveal": "Нажмите кнопку, чтобы показать\nвашу сид-фразу",
"copyToClipboard": "Копировать в буфер обмена",
"seedCopied": "Фраза скопирована в буфер обмена",
"neverShareSeed": "Никогда не делитесь сид-фразой ни с кем.",
"confirmBackup": "Я сохранил сид-фразу в безопасном месте",
"continue_": "Продолжить",
"restoreTitle": "Восстановить кошелёк",
"enterSeedPhrase": "Введите вашу сид-фразу",
"enterSeedDescription": "Введите 12 или 24 слова через пробел.",
"seedPlaceholder": "слово1 слово2 слово3 ...",
"wordCount": "{count} слов",
"@wordCount": {
"placeholders": {
"count": { "type": "int" }
}
},
"needWords": "(нужно 12 или 24)",
"restoreScanningMint": "Сканирование минта на наличие токенов...",
"restoreError": "Ошибка восстановления: {error}",
"@restoreError": {
"placeholders": {
"error": { "type": "String" }
}
},
"homeTitle": "Главная",
"receive": "Получить",
"send": "Отправить",
"sendAction": "Отправить ↗",
"receiveAction": "↘ Получить",
"deposit": "Пополнить",
"withdraw": "Вывести",
"lightning": "Lightning",
"cashu": "Cashu",
"ecash": "Ecash",
"history": "История",
"noTransactions": "Нет транзакций",
"depositOrReceive": "Пополните или получите sats для начала",
"noMint": "Нет mint",
"balance": "Баланс",
"sats": "sats",
"pasteEcashToken": "Вставить ecash токен",
"generateInvoiceToDeposit": "Создать счёт для пополнения",
"createEcashToken": "Создать ecash токен",
"payLightningInvoice": "Оплатить Lightning счёт",
"receiveCashu": "Получить Cashu",
"pasteTheCashuToken": "Вставьте Cashu токен:",
"pasteFromClipboard": "Вставить из буфера обмена",
"validToken": "Токен действителен",
"invalidToken": "Недействительный или повреждённый токен",
"amount": "Сумма:",
"mint": "Mint:",
"claiming": "Получение...",
"claimTokens": "Получить токены",
"tokensReceived": "Токены получены",
"backToHome": "Вернуться на главную",
"tokenAlreadyClaimed": "Этот токен уже был получен",
"unknownMint": "Токен от неизвестного mint",
"claimError": "Ошибка получения: {error}",
"@claimError": {
"placeholders": {
"error": { "type": "String" }
}
},
"sendCashu": "Отправить Cashu",
"selectNotesManually": "Выбрать заметки вручную",
"amountToSend": "Сумма для отправки:",
"available": "Доступно:",
"max": "(Макс)",
"memoOptional": "Заметка (необязательно):",
"memoPlaceholder": "Для чего этот платёж?",
"creatingToken": "Создание токена...",
"createToken": "Создать токен",
"noActiveMint": "Нет активного mint",
"offlineModeMessage": "Нет соединения. Офлайн режим...",
"confirmSend": "Подтвердить отправку",
"confirm": "Подтвердить",
"cancel": "Отмена",
"insufficientBalance": "Недостаточный баланс",
"tokenCreationError": "Ошибка создания токена: {error}",
"@tokenCreationError": {
"placeholders": {
"error": { "type": "String" }
}
},
"tokenCreated": "Токен создан",
"copy": "Копировать",
"share": "Поделиться",
"tokenCashu": "Cashu токен",
"tokenCashuAnimatedQr": "Cashu токен (анимированный QR - {fragments} UR фрагментов)",
"@tokenCashuAnimatedQr": {
"placeholders": {
"fragments": { "type": "int" }
}
},
"keepTokenWarning": "Сохраните этот токен, пока получатель не заберёт его. Если потеряете — потеряете средства.",
"tokenCopiedToClipboard": "Токен скопирован в буфер обмена",
"copyAsEmoji": "Скопировать как эмодзи",
"emojiCopiedToClipboard": "Токен скопирован как эмодзи 🥜",
"peanutDecodeError": "Не удалось декодировать эмодзи-токен. Возможно, он повреждён.",
"nfcWrite": "Записать на NFC-метку",
"nfcRead": "Читать NFC-метку",
"nfcHoldNear": "Поднесите устройство к NFC-метке...",
"nfcWriteSuccess": "Токен записан на NFC-метку",
"nfcWriteError": "Ошибка записи NFC: {error}",
"@nfcWriteError": { "placeholders": { "error": { "type": "String" } } },
"nfcReadError": "Ошибка чтения NFC: {error}",
"@nfcReadError": { "placeholders": { "error": { "type": "String" } } },
"nfcDisabled": "NFC отключён. Включите в Настройках.",
"nfcUnsupported": "Это устройство не поддерживает NFC",
"amountToDeposit": "Сумма для пополнения:",
"descriptionOptional": "Описание (необязательно):",
"depositPlaceholder": "Для чего это пополнение?",
"generating": "Генерация...",
"generateInvoice": "Создать счёт",
"depositLightning": "Пополнить Lightning",
"payInvoiceTitle": "Оплатить счёт",
"generatingInvoice": "Создание счёта...",
"waitingForPayment": "Ожидание оплаты...",
"paymentReceived": "Платёж получен",
"tokensIssued": "Токены выпущены!",
"error": "Ошибка",
"unknownError": "Неизвестная ошибка",
"back": "Назад",
"copyInvoice": "Копировать счёт",
"description": "Описание:",
"invoiceCopiedToClipboard": "Счёт скопирован в буфер обмена",
"deposited": "{amount} {unit} пополнено",
"@deposited": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"pasteLightningInvoice": "Вставьте Lightning счёт:",
"gettingQuote": "Получение котировки...",
"validInvoice": "Счёт действителен",
"invalidInvoice": "Недействительный счёт",
"invalidInvoiceMalformed": "Недействительный или повреждённый счёт",
"feeReserved": "Зарезервированная комиссия:",
"total": "Итого:",
"paying": "Оплата...",
"payInvoice": "Оплатить счёт",
"confirmPayment": "Подтвердить оплату",
"pay": "Оплатить",
"fee": "комиссия",
"invoiceExpired": "Счёт истёк",
"amountOutOfRange": "Сумма вне допустимого диапазона",
"resolvingType": "Разрешение {type}...",
"@resolvingType": {
"placeholders": {
"type": { "type": "String" }
}
},
"invoiceAlreadyPaid": "Счёт уже оплачен",
"paymentError": "Ошибка оплаты: {error}",
"@paymentError": {
"placeholders": {
"error": { "type": "String" }
}
},
"sent": "{amount} {unit} отправлено",
"@sent": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"filterAll": "Все",
"filterPending": "Ожидающие",
"filterEcash": "Ecash",
"filterLightning": "Lightning",
"receiveTokensToStart": "Получите Cashu токены для начала",
"noPendingTransactions": "Нет ожидающих транзакций",
"allTransactionsCompleted": "Все ваши транзакции завершены",
"noEcashTransactions": "Нет Ecash транзакций",
"sendOrReceiveTokens": "Отправьте или получите Cashu токены",
"noLightningTransactions": "Нет Lightning транзакций",
"depositOrWithdrawLightning": "Пополните или выведите через Lightning",
"pendingStatus": "Ожидание",
"receivedStatus": "Получено",
"sentStatus": "Отправлено",
"now": "Сейчас",
"agoMinutes": "{minutes} мин назад",
"@agoMinutes": {
"placeholders": {
"minutes": { "type": "int" }
}
},
"agoHours": "{hours} ч назад",
"@agoHours": {
"placeholders": {
"hours": { "type": "int" }
}
},
"agoDays": "{days} дней назад",
"@agoDays": {
"placeholders": {
"days": { "type": "int" }
}
},
"lightningInvoice": "Lightning счёт",
"receivedEcash": "Ecash получен",
"sentEcash": "Ecash отправлен",
"outgoingLightningPayment": "Исходящий Lightning платёж",
"invoiceNotAvailable": "Счёт недоступен",
"tokenNotAvailable": "Токен недоступен",
"unit": "Единица",
"status": "Статус",
"pending": "Ожидание",
"memo": "Заметка",
"copyInvoiceButton": "КОПИРОВАТЬ СЧЁТ",
"copyButton": "КОПИРОВАТЬ",
"invoiceCopied": "Счёт скопирован",
"tokenCopied": "Токен скопирован",
"speed": "СКОРОСТЬ:",
"settings": "Настройки",
"walletSection": "КОШЕЛЁК",
"backupSeedPhrase": "Резервная копия сид-фразы",
"viewRecoveryWords": "Посмотреть слова восстановления",
"connectedMints": "Подключённые mint",
"manageCashuMints": "Управление вашими Cashu mint",
"pinAccess": "PIN-код",
"pinEnabled": "Включён",
"protectWithPin": "Защитить приложение PIN-кодом",
"recoverTokens": "Восстановить токены",
"scanMintsWithSeed": "Сканировать mint с сид-фразой",
"appearanceSection": "ЯЗЫК",
"language": "Язык",
"informationSection": "ИНФОРМАЦИЯ",
"version": "Версия",
"about": "О приложении",
"deleteWallet": "Удалить кошелёк",
"spanish": "Español",
"english": "English",
"portuguese": "Português",
"french": "Français",
"russian": "Русский",
"german": "Deutsch",
"italian": "Italiano",
"korean": "한국어",
"chinese": "中文",
"japanese": "日本語",
"swahili": "Kiswahili",
"mnemonicNotFound": "Мнемоника не найдена",
"createPin": "Создать PIN",
"enterPinDigits": "Введите 4-значный PIN",
"confirmPin": "Подтвердить PIN",
"enterPinAgain": "Введите PIN ещё раз",
"pinMismatch": "PIN-коды не совпадают",
"pinActivated": "PIN активирован",
"pinDeactivated": "PIN деактивирован",
"verifyPin": "Проверить PIN",
"enterCurrentPin": "Введите текущий PIN",
"incorrectPin": "Неверный PIN",
"selectLanguage": "Выбрать язык",
"languageChanged": "Язык изменён на {language}",
"@languageChanged": {
"placeholders": {
"language": { "type": "String" }
}
},
"close": "Закрыть",
"aboutDescription": "Cashu кошелёк с кубинской ДНК для всего мира. Брат LaChispa.",
"couldNotOpenLink": "Не удалось открыть ссылку",
"deleteWalletQuestion": "Удалить кошелёк?",
"actionIrreversible": "Это действие необратимо",
"deleteWalletWarning": "Все данные будут удалены, включая сид-фразу и токены. Убедитесь, что у вас есть резервная копия.",
"typeDeleteToConfirm": "Введите \"УДАЛИТЬ\" для подтверждения:",
"deleteConfirmWord": "УДАЛИТЬ",
"deleteError": "Ошибка удаления: {error}",
"@deleteError": {
"placeholders": {
"error": { "type": "String" }
}
},
"recoverTokensTitle": "Восстановить токены",
"recoverTokensDescription": "Сканировать mint для восстановления токенов, связанных с вашей сид-фразой (NUT-13)",
"useCurrentSeedPhrase": "Использовать текущую сид-фразу",
"scanWithSavedWords": "Сканировать mint с сохранёнными 12 словами",
"useOtherSeedPhrase": "Использовать другую сид-фразу",
"recoverFromOtherWords": "Восстановить токены из других 12 слов",
"mintsToScan": "Mint для сканирования:",
"allMints": "Все mint ({count})",
"@allMints": {
"placeholders": {
"count": { "type": "int" }
}
},
"specificMint": "Конкретный mint",
"enterMnemonicWords": "Введите 12 слов через пробел...",
"scanMints": "Сканировать mint",
"selectMintToScan": "Выберите mint для сканирования",
"mnemonicMustHaveWords": "Мнемоника должна содержать 12 или 24 слова",
"noConnectedMintsToScan": "Нет подключённых mint для сканирования",
"recoveredTokens": "Восстановлено {tokens} из {mints} mint!",
"@recoveredTokens": {
"placeholders": {
"tokens": { "type": "String" },
"mints": { "type": "int" }
}
},
"scanCompleteNoTokens": "Сканирование завершено. Новых токенов не найдено.",
"mintsWithError": "({count} mint с ошибкой)",
"@mintsWithError": {
"placeholders": {
"count": { "type": "int" }
}
},
"recoveredFromMint": "Восстановлено {tokens} из {mint}!",
"@recoveredFromMint": {
"placeholders": {
"tokens": { "type": "String" },
"mint": { "type": "String" }
}
},
"noTokensFoundInMint": "Токены не найдены в {mint}.",
"@noTokensFoundInMint": {
"placeholders": {
"mint": { "type": "String" }
}
},
"recoveredAndTransferred": "Восстановлено и переведено {amount} {unit} в ваш кошелёк!",
"@recoveredAndTransferred": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"noTokensForMnemonic": "Токены, связанные с этой мнемоникой, не найдены.",
"noConnectedMints": "Нет подключённых mint",
"addMintToStart": "Добавьте mint для начала",
"addMint": "Добавить mint",
"mintDeleted": "Mint удалён",
"activeMintUpdated": "Активный mint обновлён",
"mintUrl": "URL mint:",
"mintUrlPlaceholder": "https://mint.example.com",
"urlMustStartWithHttps": "URL должен начинаться с https://",
"connectingToMint": "Подключение к mint...",
"mintAddedSuccessfully": "Mint успешно добавлен",
"couldNotConnectToMint": "Не удалось подключиться к mint",
"add": "Добавить",
"success": "Успех",
"loading": "Загрузка...",
"retry": "Повторить",
"activeMint": "Активный mint",
"mintMessage": "Сообщение Mint",
"url": "URL",
"currency": "Валюта",
"unknown": "Неизвестно",
"useThisMint": "Использовать этот mint",
"copyMintUrl": "Копировать URL mint",
"deleteMint": "Удалить mint",
"copied": "{label} скопировано",
"@copied": {
"placeholders": {
"label": { "type": "String" }
}
},
"deleteMintConfirmTitle": "Удалить mint",
"deleteMintConfirmMessage": "Если у вас есть баланс на этом mint, он будет потерян. Вы уверены?",
"delete": "Удалить",
"offlineSend": "Офлайн отправка",
"selectAll": "Все",
"deselectAll": "Ничего",
"selectNotesToSend": "Выберите заметки для отправки:",
"totalToSend": "Итого к отправке",
"notesSelected": "{count} заметок выбрано",
"@notesSelected": {
"placeholders": {
"count": { "type": "int" }
}
},
"loadingProofsError": "Ошибка загрузки доказательств: {error}",
"@loadingProofsError": {
"placeholders": {
"error": { "type": "String" }
}
},
"creatingTokenError": "Ошибка создания токена: {error}",
"@creatingTokenError": {
"placeholders": {
"error": { "type": "String" }
}
},
"unknownState": "Неизвестное состояние",
"depositAmountTitle": "Пополнить {amount} {unit}",
"@depositAmountTitle": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"receiveNow": "Получить сейчас",
"receiveLater": "Получить позже",
"tokenSavedForLater": "Токен сохранён для получения позже",
"noConnectionTokenSaved": "Нет соединения. Токен сохранён для получения позже.",
"unknownMintOffline": "Этот токен от неизвестного mint. Подключитесь к интернету, чтобы добавить его и получить токен.",
"noConnectionTryLater": "Нет соединения с mint. Попробуйте позже.",
"saveTokenError": "Ошибка сохранения токена. Попробуйте снова.",
"pendingTokenLimitReached": "Достигнут лимит ожидающих токенов (макс 50)",
"filterToReceive": "К получению",
"noPendingTokens": "Нет ожидающих токенов",
"noPendingTokensHint": "Сохраните токены для получения позже",
"pendingBadge": "ОЖИДАНИЕ",
"expiresInDays": "{days, plural, =1{Истекает через 1 день} other{Истекает через {days} дней}}",
"@expiresInDays": {
"placeholders": {
"days": { "type": "int" }
}
},
"retryCount": "{count} попыток",
"@retryCount": {
"placeholders": {
"count": { "type": "int" }
}
},
"claimNow": "Получить сейчас",
"pendingTokenClaimedSuccess": "Получено {amount} {unit}",
"@pendingTokenClaimedSuccess": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"pendingTokensClaimed": "{count, plural, =1{Получен 1 токен ({amount} {unit})} other{Получено {count} токенов ({amount} {unit})}}",
"@pendingTokensClaimed": {
"placeholders": {
"count": { "type": "int" },
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"scan": "Сканировать",
"scanQrCode": "Сканировать QR",
"scanCashuToken": "Сканировать Cashu токен",
"scanLightningInvoice": "Сканировать счёт",
"scanningAnimatedQr": "Сканирование анимированного QR...",
"pointCameraAtQr": "Наведите камеру на QR-код",
"pointCameraAtCashuQr": "Наведите камеру на QR Cashu токена",
"pointCameraAtInvoiceQr": "Наведите камеру на QR счёта",
"unrecognizedQrCode": "Нераспознанный QR-код",
"scanCashuTokenHint": "Сканируйте Cashu токен (cashuA... или cashuB...)",
"scanLightningInvoiceHint": "Сканируйте Lightning счёт (lnbc...)",
"addMintQuestion": "Добавить этот mint?",
"cameraPermissionDenied": "Доступ к камере запрещён",
"paymentRequestNotSupported": "Запросы на оплату пока не поддерживаются",
"p2pkTitle": "Ключи P2PK",
"p2pkSettingsDescription": "Получить заблокированный ecash",
"p2pkExperimental": "P2PK экспериментальный. Используйте с осторожностью.",
"p2pkPendingSendWarning": "У вас есть ожидающая отправка P2PK. Перейдите в историю и обновите после того, как получатель заберёт токен.",
"p2pkExperimentalShort": "Экспериментальный",
"p2pkPrimaryKey": "Основной ключ",
"p2pkDerived": "Производный",
"p2pkImported": "Импортированный",
"p2pkImportedKeys": "Импортированные ключи",
"p2pkNoImportedKeys": "Нет импортированных ключей",
"p2pkShowQR": "Показать QR",
"p2pkCopy": "Копировать",
"p2pkImportNsec": "Импортировать nsec",
"p2pkImport": "Импортировать",
"p2pkEnterLabel": "Имя для этого ключа",
"p2pkLockToKey": "Отправка с подписью P2PK",
"p2pkLockDescription": "Только получатель может получить",
"p2pkReceiverPubkey": "npub1... или hex (64/66 символов)",
"p2pkInvalidPubkey": "Недействительный публичный ключ",
"p2pkInvalidPrivateKey": "Недействительный приватный ключ",
"p2pkLockedToYou": "Заблокировано для вас",
"p2pkLockedToOther": "Заблокировано для другого ключа",
"p2pkCannotUnlock": "У вас нет ключа для разблокировки этого токена",
"p2pkEnterPrivateKey": "Введите приватный ключ (nsec)",
"p2pkDeleteTitle": "Удалить ключ",
"p2pkDeleteConfirm": "Удалить этот ключ? Вы не сможете получать токены заблокированные на него.",
"p2pkRequiresConnection": "P2PK требует подключения к mint",
"p2pkErrorMaxKeysReached": "Достигнуто максимальное количество импортированных ключей (10)",
"p2pkErrorInvalidNsec": "Недействительный nsec",
"p2pkErrorKeyAlreadyExists": "Этот ключ уже существует",
"p2pkErrorKeyNotFound": "Ключ не найден",
"p2pkErrorCannotDeletePrimary": "Невозможно удалить основной ключ"
}
+538
View File
@@ -0,0 +1,538 @@
{
"@@locale": "sw",
"appName": "ElCaju",
"appTagline": "Pochi yako ya faragha ya ecash",
"loadingMessage1": "Kusimba sarafu zako...",
"loadingMessage2": "Kuandaa e-tokeni zako...",
"loadingMessage3": "Kuunganisha na Mint...",
"loadingMessage4": "Faragha kwa chaguo-msingi.",
"loadingMessage5": "Kusaini tokeni kwa upofu...",
"loadingMessage6": "Go full Calle...",
"loadingMessage7": "Cashu + Bitchat = Faragha + Uhuru",
"aboutTagline": "Faragha bila mipaka.",
"welcomeTitle": "Karibu ElCaju",
"welcomeSubtitle": "Cashu kwa ulimwengu. Imetengenezwa Cuba.",
"createWallet": "Unda pochi mpya",
"restoreWallet": "Rejesha pochi",
"createWalletTitle": "Unda pochi",
"creatingWallet": "Kuunda pochi yako...",
"generatingSeed": "Kutengeneza maneno yako ya mbegu kwa usalama",
"createWalletDescription": "Maneno 12 ya mbegu yatatengenezwa.\nYahifadhi mahali salama.",
"generateWallet": "Tengeneza pochi",
"walletCreated": "Pochi imeundwa!",
"walletCreatedDescription": "Pochi yako iko tayari. Tunakushauri uhifadhi nakala ya maneno yako ya mbegu sasa.",
"backupWarning": "Bila nakala, utapoteza uwezo wa kufikia fedha zako ukipoteza kifaa.",
"backupNow": "Hifadhi nakala sasa",
"backupLater": "Fanya baadaye",
"backupTitle": "Nakala rudufu",
"seedPhraseTitle": "Maneno yako ya mbegu",
"seedPhraseDescription": "Hifadhi maneno haya 12 kwa mpangilio. Ndiyo njia pekee ya kurejesha pochi yako.",
"revealSeedPhrase": "Onyesha maneno ya mbegu",
"tapToReveal": "Bofya kitufe kuonyesha\nmaneno yako ya mbegu",
"copyToClipboard": "Nakili kwenye ubao wa kunakili",
"seedCopied": "Maneno yamenakiliwa kwenye ubao",
"neverShareSeed": "Usishiriki maneno yako ya mbegu na mtu yeyote.",
"confirmBackup": "Nimehifadhi maneno yangu ya mbegu mahali salama",
"continue_": "Endelea",
"restoreTitle": "Rejesha pochi",
"enterSeedPhrase": "Ingiza maneno yako ya mbegu",
"enterSeedDescription": "Andika maneno 12 au 24 yakitengwa na nafasi.",
"seedPlaceholder": "neno1 neno2 neno3 ...",
"wordCount": "maneno {count}",
"@wordCount": {
"placeholders": {
"count": { "type": "int" }
}
},
"needWords": "(unahitaji 12 au 24)",
"restoreScanningMint": "Inatafuta tokeni zilizopo kwenye mint...",
"restoreError": "Hitilafu ya kurejesha: {error}",
"@restoreError": {
"placeholders": {
"error": { "type": "String" }
}
},
"homeTitle": "Nyumbani",
"receive": "Pokea",
"send": "Tuma",
"sendAction": "Tuma ↗",
"receiveAction": "↘ Pokea",
"deposit": "Weka",
"withdraw": "Toa",
"lightning": "Lightning",
"cashu": "Cashu",
"ecash": "Ecash",
"history": "Historia",
"noTransactions": "Hakuna miamala bado",
"depositOrReceive": "Weka au pokea sats kuanza",
"noMint": "Hakuna mint",
"balance": "Salio",
"sats": "sats",
"pasteEcashToken": "Bandika tokeni ya ecash",
"generateInvoiceToDeposit": "Tengeneza ankara ya kuweka",
"createEcashToken": "Unda tokeni ya ecash",
"payLightningInvoice": "Lipa ankara ya Lightning",
"receiveCashu": "Pokea Cashu",
"pasteTheCashuToken": "Bandika tokeni ya Cashu:",
"pasteFromClipboard": "Bandika kutoka ubao",
"validToken": "Tokeni halali",
"invalidToken": "Tokeni batili au imeharibika",
"amount": "Kiasi:",
"mint": "Mint:",
"claiming": "Kudai...",
"claimTokens": "Dai tokeni",
"tokensReceived": "Tokeni zimepokelewa",
"backToHome": "Rudi nyumbani",
"tokenAlreadyClaimed": "Tokeni hii tayari imedaiwa",
"unknownMint": "Tokeni kutoka mint isiyojulikana",
"claimError": "Hitilafu ya kudai: {error}",
"@claimError": {
"placeholders": {
"error": { "type": "String" }
}
},
"sendCashu": "Tuma Cashu",
"selectNotesManually": "Chagua noti kwa mkono",
"amountToSend": "Kiasi cha kutuma:",
"available": "Inapatikana:",
"max": "(Upeo)",
"memoOptional": "Memo (si lazima):",
"memoPlaceholder": "Malipo haya ni ya nini?",
"creatingToken": "Kuunda tokeni...",
"createToken": "Unda tokeni",
"noActiveMint": "Hakuna mint inayofanya kazi",
"offlineModeMessage": "Hakuna muunganisho. Kutumia hali ya nje ya mtandao...",
"confirmSend": "Thibitisha kutuma",
"confirm": "Thibitisha",
"cancel": "Ghairi",
"insufficientBalance": "Salio halitoshi",
"tokenCreationError": "Hitilafu ya kuunda tokeni: {error}",
"@tokenCreationError": {
"placeholders": {
"error": { "type": "String" }
}
},
"tokenCreated": "Tokeni imeundwa",
"copy": "Nakili",
"share": "Shiriki",
"tokenCashu": "Tokeni ya Cashu",
"tokenCashuAnimatedQr": "Tokeni ya Cashu (QR inayosogea - vipande {fragments} vya UR)",
"@tokenCashuAnimatedQr": {
"placeholders": {
"fragments": { "type": "int" }
}
},
"keepTokenWarning": "Hifadhi tokeni hii hadi mpokeaji aidai. Ukiipoteza, utapoteza fedha.",
"tokenCopiedToClipboard": "Tokeni imenakiliwa kwenye ubao",
"copyAsEmoji": "Nakili kama emoji",
"emojiCopiedToClipboard": "Tokeni imenakiliwa kama emoji 🥜",
"peanutDecodeError": "Imeshindwa kusimbua tokeni ya emoji. Inaweza kuwa imeharibika.",
"nfcWrite": "Andika kwenye NFC tag",
"nfcRead": "Soma NFC tag",
"nfcHoldNear": "Karibia kifaa kwenye NFC tag...",
"nfcWriteSuccess": "Tokeni imeandikwa kwenye NFC tag",
"nfcWriteError": "Hitilafu ya NFC kuandika: {error}",
"@nfcWriteError": { "placeholders": { "error": { "type": "String" } } },
"nfcReadError": "Hitilafu ya NFC kusoma: {error}",
"@nfcReadError": { "placeholders": { "error": { "type": "String" } } },
"nfcDisabled": "NFC imezimwa. Iwashe katika Mipangilio.",
"nfcUnsupported": "Kifaa hiki hakitumii NFC",
"amountToDeposit": "Kiasi cha kuweka:",
"descriptionOptional": "Maelezo (si lazima):",
"depositPlaceholder": "Amana hii ni ya nini?",
"generating": "Kutengeneza...",
"generateInvoice": "Tengeneza ankara",
"depositLightning": "Weka Lightning",
"payInvoiceTitle": "Lipa ankara",
"generatingInvoice": "Kutengeneza ankara...",
"waitingForPayment": "Kusubiri malipo...",
"paymentReceived": "Malipo yamepokelewa",
"tokensIssued": "Tokeni zimetolewa!",
"error": "Hitilafu",
"unknownError": "Hitilafu isiyojulikana",
"back": "Rudi",
"copyInvoice": "Nakili ankara",
"description": "Maelezo:",
"invoiceCopiedToClipboard": "Ankara imenakiliwa kwenye ubao",
"deposited": "{amount} {unit} zimewekwa",
"@deposited": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"pasteLightningInvoice": "Bandika ankara ya Lightning:",
"gettingQuote": "Kupata bei...",
"validInvoice": "Ankara halali",
"invalidInvoice": "Ankara batili",
"invalidInvoiceMalformed": "Ankara batili au imeharibika",
"feeReserved": "Ada iliyohifadhiwa:",
"total": "Jumla:",
"paying": "Kulipa...",
"payInvoice": "Lipa ankara",
"confirmPayment": "Thibitisha malipo",
"pay": "Lipa",
"fee": "ada",
"invoiceExpired": "Ankara imeisha muda",
"amountOutOfRange": "Kiasi nje ya masafa yanayoruhusiwa",
"resolvingType": "Kutatua {type}...",
"@resolvingType": {
"placeholders": {
"type": { "type": "String" }
}
},
"invoiceAlreadyPaid": "Ankara tayari imelipwa",
"paymentError": "Hitilafu ya malipo: {error}",
"@paymentError": {
"placeholders": {
"error": { "type": "String" }
}
},
"sent": "{amount} {unit} zimetumwa",
"@sent": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"filterAll": "Zote",
"filterPending": "Zinazosubiri",
"filterEcash": "Ecash",
"filterLightning": "Lightning",
"receiveTokensToStart": "Pokea tokeni za Cashu kuanza",
"noPendingTransactions": "Hakuna miamala inayosubiri",
"allTransactionsCompleted": "Miamala yako yote imekamilika",
"noEcashTransactions": "Hakuna miamala ya Ecash",
"sendOrReceiveTokens": "Tuma au pokea tokeni za Cashu",
"noLightningTransactions": "Hakuna miamala ya Lightning",
"depositOrWithdrawLightning": "Weka au toa kupitia Lightning",
"pendingStatus": "Inasubiri",
"receivedStatus": "Imepokelewa",
"sentStatus": "Imetumwa",
"now": "Sasa",
"agoMinutes": "Dakika {minutes} zilizopita",
"@agoMinutes": {
"placeholders": {
"minutes": { "type": "int" }
}
},
"agoHours": "Saa {hours} zilizopita",
"@agoHours": {
"placeholders": {
"hours": { "type": "int" }
}
},
"agoDays": "Siku {days} zilizopita",
"@agoDays": {
"placeholders": {
"days": { "type": "int" }
}
},
"lightningInvoice": "Ankara ya Lightning",
"receivedEcash": "Ecash Iliyopokelewa",
"sentEcash": "Ecash Iliyotumwa",
"outgoingLightningPayment": "Malipo ya Lightning Yanayotoka",
"invoiceNotAvailable": "Ankara haipatikani",
"tokenNotAvailable": "Tokeni haipatikani",
"unit": "Kitengo",
"status": "Hali",
"pending": "Inasubiri",
"memo": "Memo",
"copyInvoiceButton": "NAKILI ANKARA",
"copyButton": "NAKILI",
"invoiceCopied": "Ankara imenakiliwa",
"tokenCopied": "Tokeni imenakiliwa",
"speed": "KASI:",
"settings": "Mipangilio",
"walletSection": "POCHI",
"backupSeedPhrase": "Nakala ya maneno ya mbegu",
"viewRecoveryWords": "Tazama maneno yako ya kurejesha",
"connectedMints": "Mint zilizounganishwa",
"manageCashuMints": "Simamia mint zako za Cashu",
"pinAccess": "Ufikiaji wa PIN",
"pinEnabled": "Imewashwa",
"protectWithPin": "Linda programu kwa PIN",
"recoverTokens": "Rejesha tokeni",
"scanMintsWithSeed": "Changanua mint na maneno ya mbegu",
"appearanceSection": "LUGHA",
"language": "Lugha",
"informationSection": "MAELEZO",
"version": "Toleo",
"about": "Kuhusu",
"deleteWallet": "Futa pochi",
"spanish": "Español",
"english": "English",
"portuguese": "Português",
"french": "Français",
"russian": "Русский",
"german": "Deutsch",
"italian": "Italiano",
"korean": "한국어",
"chinese": "中文",
"japanese": "日本語",
"swahili": "Kiswahili",
"mnemonicNotFound": "Mnemonic haijapatikana",
"createPin": "Unda PIN",
"enterPinDigits": "Ingiza PIN ya tarakimu 4",
"confirmPin": "Thibitisha PIN",
"enterPinAgain": "Ingiza PIN tena",
"pinMismatch": "PIN hazilingani",
"pinActivated": "PIN imewashwa",
"pinDeactivated": "PIN imezimwa",
"verifyPin": "Thibitisha PIN",
"enterCurrentPin": "Ingiza PIN yako ya sasa",
"incorrectPin": "PIN si sahihi",
"selectLanguage": "Chagua lugha",
"languageChanged": "Lugha imebadilishwa kuwa {language}",
"@languageChanged": {
"placeholders": {
"language": { "type": "String" }
}
},
"close": "Funga",
"aboutDescription": "Pochi ya Cashu yenye DNA ya Cuba kwa ulimwengu wote. Ndugu wa LaChispa.",
"couldNotOpenLink": "Haikuweza kufungua kiungo",
"deleteWalletQuestion": "Futa pochi?",
"actionIrreversible": "Kitendo hiki hakiwezi kutenduliwa",
"deleteWalletWarning": "Data zote zitafutwa ikiwa ni pamoja na maneno yako ya mbegu na tokeni. Hakikisha una nakala.",
"typeDeleteToConfirm": "Andika \"FUTA\" kuthibitisha:",
"deleteConfirmWord": "FUTA",
"deleteError": "Hitilafu ya kufuta: {error}",
"@deleteError": {
"placeholders": {
"error": { "type": "String" }
}
},
"recoverTokensTitle": "Rejesha tokeni",
"recoverTokensDescription": "Changanua mint kurejesha tokeni zinazohusiana na maneno yako ya mbegu (NUT-13)",
"useCurrentSeedPhrase": "Tumia maneno yangu ya mbegu ya sasa",
"scanWithSavedWords": "Changanua mint na maneno 12 yaliyohifadhiwa",
"useOtherSeedPhrase": "Tumia maneno mengine ya mbegu",
"recoverFromOtherWords": "Rejesha tokeni kutoka maneno mengine 12",
"mintsToScan": "Mint za kuchanganua:",
"allMints": "Mint zote ({count})",
"@allMints": {
"placeholders": {
"count": { "type": "int" }
}
},
"specificMint": "Mint maalum",
"enterMnemonicWords": "Ingiza maneno 12 yakitengwa na nafasi...",
"scanMints": "Changanua mint",
"selectMintToScan": "Chagua mint ya kuchanganua",
"mnemonicMustHaveWords": "Mnemonic lazima iwe na maneno 12 au 24",
"noConnectedMintsToScan": "Hakuna mint zilizounganishwa za kuchanganua",
"recoveredTokens": "Zimerejeshwa {tokens} kutoka mint {mints}!",
"@recoveredTokens": {
"placeholders": {
"tokens": { "type": "String" },
"mints": { "type": "int" }
}
},
"scanCompleteNoTokens": "Uchanganuzi umekamilika. Hakuna tokeni mpya zilizopatikana.",
"mintsWithError": "(mint {count} zenye hitilafu)",
"@mintsWithError": {
"placeholders": {
"count": { "type": "int" }
}
},
"recoveredFromMint": "Zimerejeshwa {tokens} kutoka {mint}!",
"@recoveredFromMint": {
"placeholders": {
"tokens": { "type": "String" },
"mint": { "type": "String" }
}
},
"noTokensFoundInMint": "Hakuna tokeni zilizopatikana katika {mint}.",
"@noTokensFoundInMint": {
"placeholders": {
"mint": { "type": "String" }
}
},
"recoveredAndTransferred": "Zimerejeshwa na kuhamishwa {amount} {unit} kwenye pochi yako!",
"@recoveredAndTransferred": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"noTokensForMnemonic": "Hakuna tokeni zilizopatikana zinazohusiana na mnemonic hiyo.",
"noConnectedMints": "Hakuna mint zilizounganishwa",
"addMintToStart": "Ongeza mint kuanza",
"addMint": "Ongeza mint",
"mintDeleted": "Mint imefutwa",
"activeMintUpdated": "Mint inayofanya kazi imesasishwa",
"mintUrl": "URL ya mint:",
"mintUrlPlaceholder": "https://mint.example.com",
"urlMustStartWithHttps": "URL lazima ianze na https://",
"connectingToMint": "Kuunganisha na mint...",
"mintAddedSuccessfully": "Mint imeongezwa kwa mafanikio",
"couldNotConnectToMint": "Haikuweza kuunganisha na mint",
"add": "Ongeza",
"success": "Mafanikio",
"loading": "Inapakia...",
"retry": "Jaribu tena",
"activeMint": "Mint inayofanya kazi",
"mintMessage": "Ujumbe wa Mint",
"url": "URL",
"currency": "Sarafu",
"unknown": "Haijulikani",
"useThisMint": "Tumia mint hii",
"copyMintUrl": "Nakili URL ya mint",
"deleteMint": "Futa mint",
"copied": "{label} imenakiliwa",
"@copied": {
"placeholders": {
"label": { "type": "String" }
}
},
"deleteMintConfirmTitle": "Futa mint",
"deleteMintConfirmMessage": "Ukiwa na salio katika mint hii, itapotea. Una uhakika?",
"delete": "Futa",
"offlineSend": "Tuma Nje ya Mtandao",
"selectAll": "Zote",
"deselectAll": "Hakuna",
"selectNotesToSend": "Chagua noti unazotaka kutuma:",
"totalToSend": "Jumla ya kutuma",
"notesSelected": "noti {count} zimechaguliwa",
"@notesSelected": {
"placeholders": {
"count": { "type": "int" }
}
},
"loadingProofsError": "Hitilafu ya kupakia uthibitisho: {error}",
"@loadingProofsError": {
"placeholders": {
"error": { "type": "String" }
}
},
"creatingTokenError": "Hitilafu ya kuunda tokeni: {error}",
"@creatingTokenError": {
"placeholders": {
"error": { "type": "String" }
}
},
"unknownState": "Hali isiyojulikana",
"depositAmountTitle": "Weka {amount} {unit}",
"@depositAmountTitle": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"receiveNow": "Pokea sasa",
"receiveLater": "Pokea baadaye",
"tokenSavedForLater": "Tokeni imehifadhiwa kudai baadaye",
"noConnectionTokenSaved": "Hakuna muunganisho. Tokeni imehifadhiwa kudai baadaye.",
"unknownMintOffline": "Tokeni hii ni kutoka mint isiyojulikana. Unganisha na mtandao kuongeza na kudai tokeni.",
"noConnectionTryLater": "Hakuna muunganisho na mint. Jaribu baadaye.",
"saveTokenError": "Hitilafu ya kuhifadhi tokeni. Jaribu tena.",
"pendingTokenLimitReached": "Kikomo cha tokeni zinazosubiri kimefikiwa (upeo 50)",
"filterToReceive": "Za kupokea",
"noPendingTokens": "Hakuna tokeni zinazosubiri",
"noPendingTokensHint": "Hifadhi tokeni kudai baadaye",
"pendingBadge": "INASUBIRI",
"expiresInDays": "{days, plural, =1{Inaisha siku 1} other{Inaisha siku {days}}}",
"@expiresInDays": {
"placeholders": {
"days": { "type": "int" }
}
},
"retryCount": "majaribio {count}",
"@retryCount": {
"placeholders": {
"count": { "type": "int" }
}
},
"claimNow": "Dai sasa",
"pendingTokenClaimedSuccess": "Zimedaiwa {amount} {unit}",
"@pendingTokenClaimedSuccess": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"pendingTokensClaimed": "{count, plural, =1{Imedaiwa tokeni 1 ({amount} {unit})} other{Zimedaiwa tokeni {count} ({amount} {unit})}}",
"@pendingTokensClaimed": {
"placeholders": {
"count": { "type": "int" },
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"scan": "Changanua",
"scanQrCode": "Changanua QR",
"scanCashuToken": "Changanua tokeni ya Cashu",
"scanLightningInvoice": "Changanua ankara",
"scanningAnimatedQr": "Kuchanganua QR inayosogea...",
"pointCameraAtQr": "Elekeza kamera kwenye msimbo wa QR",
"pointCameraAtCashuQr": "Elekeza kamera kwenye QR ya tokeni ya Cashu",
"pointCameraAtInvoiceQr": "Elekeza kamera kwenye QR ya ankara",
"unrecognizedQrCode": "Msimbo wa QR haujatambuliwa",
"scanCashuTokenHint": "Changanua tokeni ya Cashu (cashuA... au cashuB...)",
"scanLightningInvoiceHint": "Changanua ankara ya Lightning (lnbc...)",
"addMintQuestion": "Ongeza mint hii?",
"cameraPermissionDenied": "Ruhusa ya kamera imekataliwa",
"paymentRequestNotSupported": "Maombi ya malipo bado hayatumiki",
"p2pkTitle": "Funguo za P2PK",
"p2pkSettingsDescription": "Pokea ecash iliyofungwa",
"p2pkExperimental": "P2PK ni ya majaribio. Tumia kwa uangalifu.",
"p2pkPendingSendWarning": "Una usafirishaji wa P2PK unaosubiri. Nenda kwenye historia na usasishe baada ya mpokeaji kudai tokeni.",
"p2pkExperimentalShort": "Majaribio",
"p2pkPrimaryKey": "Ufunguo Mkuu",
"p2pkDerived": "Iliyotokana",
"p2pkImported": "Iliyoingizwa",
"p2pkImportedKeys": "Funguo Zilizoingizwa",
"p2pkNoImportedKeys": "Hakuna funguo zilizoingizwa",
"p2pkShowQR": "Onyesha QR",
"p2pkCopy": "Nakili",
"p2pkImportNsec": "Ingiza nsec",
"p2pkImport": "Ingiza",
"p2pkEnterLabel": "Jina la ufunguo huu",
"p2pkLockToKey": "Tuma kwa saini ya P2PK",
"p2pkLockDescription": "Mpokeaji pekee anaweza kudai",
"p2pkReceiverPubkey": "npub1... au hex (herufi 64/66)",
"p2pkInvalidPubkey": "Ufunguo wa umma batili",
"p2pkInvalidPrivateKey": "Ufunguo wa siri batili",
"p2pkLockedToYou": "Imefungwa kwako",
"p2pkLockedToOther": "Imefungwa kwa ufunguo mwingine",
"p2pkCannotUnlock": "Huna ufunguo wa kufungua tokeni hii",
"p2pkEnterPrivateKey": "Ingiza ufunguo wa siri (nsec)",
"p2pkDeleteTitle": "Futa ufunguo",
"p2pkDeleteConfirm": "Futa ufunguo huu? Hutaweza kupokea tokeni zilizofungwa kwake.",
"p2pkRequiresConnection": "P2PK inahitaji muunganisho kwa mint",
"p2pkErrorMaxKeysReached": "Idadi ya juu ya funguo zilizoingizwa imefikiwa (10)",
"p2pkErrorInvalidNsec": "nsec batili",
"p2pkErrorKeyAlreadyExists": "Ufunguo huu tayari upo",
"p2pkErrorKeyNotFound": "Ufunguo haujapatikana",
"p2pkErrorCannotDeletePrimary": "Haiwezekani kufuta ufunguo mkuu"
}
+538
View File
@@ -0,0 +1,538 @@
{
"@@locale": "zh",
"appName": "ElCaju",
"appTagline": "您的私密电子现金钱包",
"loadingMessage1": "正在加密您的代币...",
"loadingMessage2": "正在准备您的电子代币...",
"loadingMessage3": "正在连接铸造厂...",
"loadingMessage4": "默认隐私保护。",
"loadingMessage5": "正在盲签代币...",
"loadingMessage6": "全力以赴...",
"loadingMessage7": "Cashu + Bitchat = 隐私 + 自由",
"aboutTagline": "无国界隐私。",
"welcomeTitle": "欢迎使用 ElCaju",
"welcomeSubtitle": "面向世界的 Cashu。古巴制造。",
"createWallet": "创建新钱包",
"restoreWallet": "恢复钱包",
"createWalletTitle": "创建钱包",
"creatingWallet": "正在创建您的钱包...",
"generatingSeed": "正在安全生成您的助记词",
"createWalletDescription": "将生成一个12词助记词。\n请将其保存在安全的地方。",
"generateWallet": "生成钱包",
"walletCreated": "钱包已创建!",
"walletCreatedDescription": "您的钱包已准备就绪。我们建议您现在备份助记词。",
"backupWarning": "如果没有备份,一旦丢失设备,您将无法访问您的资金。",
"backupNow": "立即备份",
"backupLater": "稍后备份",
"backupTitle": "备份",
"seedPhraseTitle": "您的助记词",
"seedPhraseDescription": "按顺序保存这12个单词。这是恢复钱包的唯一方式。",
"revealSeedPhrase": "显示助记词",
"tapToReveal": "点击按钮显示\n您的助记词",
"copyToClipboard": "复制到剪贴板",
"seedCopied": "助记词已复制到剪贴板",
"neverShareSeed": "切勿与任何人分享您的助记词。",
"confirmBackup": "我已将助记词保存在安全的地方",
"continue_": "继续",
"restoreTitle": "恢复钱包",
"enterSeedPhrase": "输入您的助记词",
"enterSeedDescription": "输入12或24个单词,用空格分隔。",
"seedPlaceholder": "单词1 单词2 单词3 ...",
"wordCount": "{count} 个单词",
"@wordCount": {
"placeholders": {
"count": { "type": "int" }
}
},
"needWords": "(需要12或24个)",
"restoreScanningMint": "正在扫描铸造厂中的现有代币...",
"restoreError": "恢复错误:{error}",
"@restoreError": {
"placeholders": {
"error": { "type": "String" }
}
},
"homeTitle": "首页",
"receive": "收款",
"send": "付款",
"sendAction": "付款 ↗",
"receiveAction": "↘ 收款",
"deposit": "存入",
"withdraw": "提取",
"lightning": "闪电网络",
"cashu": "Cashu",
"ecash": "电子现金",
"history": "历史记录",
"noTransactions": "暂无交易",
"depositOrReceive": "存入或接收聪开始使用",
"noMint": "无铸造厂",
"balance": "余额",
"sats": "聪",
"pasteEcashToken": "粘贴电子现金代币",
"generateInvoiceToDeposit": "生成存款发票",
"createEcashToken": "创建电子现金代币",
"payLightningInvoice": "支付闪电发票",
"receiveCashu": "接收 Cashu",
"pasteTheCashuToken": "粘贴 Cashu 代币:",
"pasteFromClipboard": "从剪贴板粘贴",
"validToken": "有效代币",
"invalidToken": "无效或格式错误的代币",
"amount": "金额:",
"mint": "铸造厂:",
"claiming": "正在领取...",
"claimTokens": "领取代币",
"tokensReceived": "已收到代币",
"backToHome": "返回首页",
"tokenAlreadyClaimed": "此代币已被领取",
"unknownMint": "来自未知铸造厂的代币",
"claimError": "领取错误:{error}",
"@claimError": {
"placeholders": {
"error": { "type": "String" }
}
},
"sendCashu": "发送 Cashu",
"selectNotesManually": "手动选择票据",
"amountToSend": "发送金额:",
"available": "可用:",
"max": "(最大)",
"memoOptional": "备注(可选):",
"memoPlaceholder": "这笔付款是用于什么?",
"creatingToken": "正在创建代币...",
"createToken": "创建代币",
"noActiveMint": "没有活跃的铸造厂",
"offlineModeMessage": "无连接。使用离线模式...",
"confirmSend": "确认发送",
"confirm": "确认",
"cancel": "取消",
"insufficientBalance": "余额不足",
"tokenCreationError": "创建代币错误:{error}",
"@tokenCreationError": {
"placeholders": {
"error": { "type": "String" }
}
},
"tokenCreated": "代币已创建",
"copy": "复制",
"share": "分享",
"tokenCashu": "Cashu 代币",
"tokenCashuAnimatedQr": "Cashu 代币(动态二维码 - {fragments} 个 UR 片段)",
"@tokenCashuAnimatedQr": {
"placeholders": {
"fragments": { "type": "int" }
}
},
"keepTokenWarning": "请保留此代币直到收款方领取。如果丢失,资金将无法找回。",
"tokenCopiedToClipboard": "代币已复制到剪贴板",
"copyAsEmoji": "复制为表情符号",
"emojiCopiedToClipboard": "代币已复制为表情符号 🥜",
"peanutDecodeError": "无法解码表情符号代币。可能已损坏。",
"nfcWrite": "写入NFC标签",
"nfcRead": "读取NFC标签",
"nfcHoldNear": "将设备靠近NFC标签...",
"nfcWriteSuccess": "代币已写入NFC标签",
"nfcWriteError": "NFC写入错误:{error}",
"@nfcWriteError": { "placeholders": { "error": { "type": "String" } } },
"nfcReadError": "NFC读取错误:{error}",
"@nfcReadError": { "placeholders": { "error": { "type": "String" } } },
"nfcDisabled": "NFC已禁用,请在设置中启用。",
"nfcUnsupported": "此设备不支持NFC",
"amountToDeposit": "存入金额:",
"descriptionOptional": "描述(可选):",
"depositPlaceholder": "这笔存款是用于什么?",
"generating": "正在生成...",
"generateInvoice": "生成发票",
"depositLightning": "闪电存款",
"payInvoiceTitle": "支付发票",
"generatingInvoice": "正在生成发票...",
"waitingForPayment": "等待付款...",
"paymentReceived": "已收到付款",
"tokensIssued": "代币已发行!",
"error": "错误",
"unknownError": "未知错误",
"back": "返回",
"copyInvoice": "复制发票",
"description": "描述:",
"invoiceCopiedToClipboard": "发票已复制到剪贴板",
"deposited": "已存入 {amount} {unit}",
"@deposited": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"pasteLightningInvoice": "粘贴闪电发票:",
"gettingQuote": "正在获取报价...",
"validInvoice": "有效发票",
"invalidInvoice": "无效发票",
"invalidInvoiceMalformed": "无效或格式错误的发票",
"feeReserved": "预留手续费:",
"total": "总计:",
"paying": "正在支付...",
"payInvoice": "支付发票",
"confirmPayment": "确认支付",
"pay": "支付",
"fee": "手续费",
"invoiceExpired": "发票已过期",
"amountOutOfRange": "金额超出允许范围",
"resolvingType": "正在解析 {type}...",
"@resolvingType": {
"placeholders": {
"type": { "type": "String" }
}
},
"invoiceAlreadyPaid": "发票已支付",
"paymentError": "支付错误:{error}",
"@paymentError": {
"placeholders": {
"error": { "type": "String" }
}
},
"sent": "已发送 {amount} {unit}",
"@sent": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"filterAll": "全部",
"filterPending": "待处理",
"filterEcash": "电子现金",
"filterLightning": "闪电",
"receiveTokensToStart": "接收 Cashu 代币开始使用",
"noPendingTransactions": "没有待处理的交易",
"allTransactionsCompleted": "所有交易已完成",
"noEcashTransactions": "没有电子现金交易",
"sendOrReceiveTokens": "发送或接收 Cashu 代币",
"noLightningTransactions": "没有闪电交易",
"depositOrWithdrawLightning": "通过闪电网络存入或提取",
"pendingStatus": "待处理",
"receivedStatus": "已收到",
"sentStatus": "已发送",
"now": "刚刚",
"agoMinutes": "{minutes} 分钟前",
"@agoMinutes": {
"placeholders": {
"minutes": { "type": "int" }
}
},
"agoHours": "{hours} 小时前",
"@agoHours": {
"placeholders": {
"hours": { "type": "int" }
}
},
"agoDays": "{days} 天前",
"@agoDays": {
"placeholders": {
"days": { "type": "int" }
}
},
"lightningInvoice": "闪电发票",
"receivedEcash": "收到电子现金",
"sentEcash": "发送电子现金",
"outgoingLightningPayment": "闪电支出",
"invoiceNotAvailable": "发票不可用",
"tokenNotAvailable": "代币不可用",
"unit": "单位",
"status": "状态",
"pending": "待处理",
"memo": "备注",
"copyInvoiceButton": "复制发票",
"copyButton": "复制",
"invoiceCopied": "发票已复制",
"tokenCopied": "代币已复制",
"speed": "速度:",
"settings": "设置",
"walletSection": "钱包",
"backupSeedPhrase": "备份助记词",
"viewRecoveryWords": "查看恢复词",
"connectedMints": "已连接铸造厂",
"manageCashuMints": "管理您的 Cashu 铸造厂",
"pinAccess": "PIN 访问",
"pinEnabled": "已启用",
"protectWithPin": "用 PIN 保护应用",
"recoverTokens": "恢复代币",
"scanMintsWithSeed": "使用助记词扫描铸造厂",
"appearanceSection": "语言",
"language": "语言",
"informationSection": "信息",
"version": "版本",
"about": "关于",
"deleteWallet": "删除钱包",
"spanish": "Español",
"english": "English",
"portuguese": "Português",
"french": "Français",
"russian": "Русский",
"german": "Deutsch",
"italian": "Italiano",
"korean": "한국어",
"chinese": "中文",
"japanese": "日本語",
"swahili": "Kiswahili",
"mnemonicNotFound": "未找到助记词",
"createPin": "创建 PIN",
"enterPinDigits": "输入4位数 PIN",
"confirmPin": "确认 PIN",
"enterPinAgain": "再次输入 PIN",
"pinMismatch": "PIN 不匹配",
"pinActivated": "PIN 已激活",
"pinDeactivated": "PIN 已停用",
"verifyPin": "验证 PIN",
"enterCurrentPin": "输入当前 PIN",
"incorrectPin": "PIN 错误",
"selectLanguage": "选择语言",
"languageChanged": "语言已更改为 {language}",
"@languageChanged": {
"placeholders": {
"language": { "type": "String" }
}
},
"close": "关闭",
"aboutDescription": "具有古巴基因的 Cashu 钱包,面向全世界。LaChispa 的兄弟项目。",
"couldNotOpenLink": "无法打开链接",
"deleteWalletQuestion": "删除钱包?",
"actionIrreversible": "此操作不可撤销",
"deleteWalletWarning": "所有数据将被删除,包括您的助记词和代币。请确保您有备份。",
"typeDeleteToConfirm": "输入 \"DELETE\" 确认:",
"deleteConfirmWord": "DELETE",
"deleteError": "删除错误:{error}",
"@deleteError": {
"placeholders": {
"error": { "type": "String" }
}
},
"recoverTokensTitle": "恢复代币",
"recoverTokensDescription": "扫描铸造厂以恢复与您的助记词关联的代币(NUT-13)",
"useCurrentSeedPhrase": "使用当前助记词",
"scanWithSavedWords": "使用保存的12个单词扫描铸造厂",
"useOtherSeedPhrase": "使用其他助记词",
"recoverFromOtherWords": "从其他12个单词恢复代币",
"mintsToScan": "要扫描的铸造厂:",
"allMints": "所有铸造厂({count}个)",
"@allMints": {
"placeholders": {
"count": { "type": "int" }
}
},
"specificMint": "特定铸造厂",
"enterMnemonicWords": "输入12个单词,用空格分隔...",
"scanMints": "扫描铸造厂",
"selectMintToScan": "选择要扫描的铸造厂",
"mnemonicMustHaveWords": "助记词必须有12或24个单词",
"noConnectedMintsToScan": "没有已连接的铸造厂可扫描",
"recoveredTokens": "已从 {mints} 个铸造厂恢复 {tokens}",
"@recoveredTokens": {
"placeholders": {
"tokens": { "type": "String" },
"mints": { "type": "int" }
}
},
"scanCompleteNoTokens": "扫描完成。未发现新代币。",
"mintsWithError": "{count}个铸造厂出错)",
"@mintsWithError": {
"placeholders": {
"count": { "type": "int" }
}
},
"recoveredFromMint": "已从 {mint} 恢复 {tokens}",
"@recoveredFromMint": {
"placeholders": {
"tokens": { "type": "String" },
"mint": { "type": "String" }
}
},
"noTokensFoundInMint": "在 {mint} 中未发现代币。",
"@noTokensFoundInMint": {
"placeholders": {
"mint": { "type": "String" }
}
},
"recoveredAndTransferred": "已恢复并转入 {amount} {unit} 到您的钱包!",
"@recoveredAndTransferred": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"noTokensForMnemonic": "未发现与该助记词关联的代币。",
"noConnectedMints": "没有已连接的铸造厂",
"addMintToStart": "添加铸造厂开始使用",
"addMint": "添加铸造厂",
"mintDeleted": "铸造厂已删除",
"activeMintUpdated": "活跃铸造厂已更新",
"mintUrl": "铸造厂 URL",
"mintUrlPlaceholder": "https://mint.example.com",
"urlMustStartWithHttps": "URL 必须以 https:// 开头",
"connectingToMint": "正在连接铸造厂...",
"mintAddedSuccessfully": "铸造厂添加成功",
"couldNotConnectToMint": "无法连接到铸造厂",
"add": "添加",
"success": "成功",
"loading": "加载中...",
"retry": "重试",
"activeMint": "活跃铸造厂",
"mintMessage": "铸造厂消息",
"url": "网址",
"currency": "货币",
"unknown": "未知",
"useThisMint": "使用此铸造厂",
"copyMintUrl": "复制铸造厂 URL",
"deleteMint": "删除铸造厂",
"copied": "{label} 已复制",
"@copied": {
"placeholders": {
"label": { "type": "String" }
}
},
"deleteMintConfirmTitle": "删除铸造厂",
"deleteMintConfirmMessage": "如果您在此铸造厂有余额,将会丢失。确定要删除吗?",
"delete": "删除",
"offlineSend": "离线发送",
"selectAll": "全部",
"deselectAll": "无",
"selectNotesToSend": "选择要发送的票据:",
"totalToSend": "发送总额",
"notesSelected": "已选择 {count} 张票据",
"@notesSelected": {
"placeholders": {
"count": { "type": "int" }
}
},
"loadingProofsError": "加载证明错误:{error}",
"@loadingProofsError": {
"placeholders": {
"error": { "type": "String" }
}
},
"creatingTokenError": "创建代币错误:{error}",
"@creatingTokenError": {
"placeholders": {
"error": { "type": "String" }
}
},
"unknownState": "未知状态",
"depositAmountTitle": "存入 {amount} {unit}",
"@depositAmountTitle": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"receiveNow": "立即接收",
"receiveLater": "稍后接收",
"tokenSavedForLater": "代币已保存,稍后领取",
"noConnectionTokenSaved": "无连接。代币已保存,稍后领取。",
"unknownMintOffline": "此代币来自未知铸造厂。请连接互联网以添加并领取代币。",
"noConnectionTryLater": "无法连接铸造厂。请稍后重试。",
"saveTokenError": "保存代币错误。请重试。",
"pendingTokenLimitReached": "待处理代币达到上限(最多50个)",
"filterToReceive": "待接收",
"noPendingTokens": "没有待处理代币",
"noPendingTokensHint": "保存代币稍后领取",
"pendingBadge": "待处理",
"expiresInDays": "{days, plural, =1{1天后过期} other{{days}天后过期}}",
"@expiresInDays": {
"placeholders": {
"days": { "type": "int" }
}
},
"retryCount": "{count} 次重试",
"@retryCount": {
"placeholders": {
"count": { "type": "int" }
}
},
"claimNow": "立即领取",
"pendingTokenClaimedSuccess": "已领取 {amount} {unit}",
"@pendingTokenClaimedSuccess": {
"placeholders": {
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"pendingTokensClaimed": "{count, plural, =1{已领取1个代币({amount} {unit}} other{已领取{count}个代币({amount} {unit}}}",
"@pendingTokensClaimed": {
"placeholders": {
"count": { "type": "int" },
"amount": { "type": "String" },
"unit": { "type": "String" }
}
},
"scan": "扫描",
"scanQrCode": "扫描二维码",
"scanCashuToken": "扫描 Cashu 代币",
"scanLightningInvoice": "扫描发票",
"scanningAnimatedQr": "正在扫描动态二维码...",
"pointCameraAtQr": "将相机对准二维码",
"pointCameraAtCashuQr": "将相机对准 Cashu 代币二维码",
"pointCameraAtInvoiceQr": "将相机对准发票二维码",
"unrecognizedQrCode": "无法识别的二维码",
"scanCashuTokenHint": "扫描 Cashu 代币(cashuA... 或 cashuB...",
"scanLightningInvoiceHint": "扫描闪电发票(lnbc...",
"addMintQuestion": "添加此铸造厂?",
"cameraPermissionDenied": "相机权限被拒绝",
"paymentRequestNotSupported": "付款请求尚不支持",
"p2pkTitle": "P2PK密钥",
"p2pkSettingsDescription": "接收锁定的ecash",
"p2pkExperimental": "P2PK是实验性功能。请谨慎使用。",
"p2pkPendingSendWarning": "您有一笔待处理的P2PK发送。在收款人领取代币后,请前往历史记录刷新。",
"p2pkExperimentalShort": "实验性",
"p2pkPrimaryKey": "主密钥",
"p2pkDerived": "派生的",
"p2pkImported": "已导入",
"p2pkImportedKeys": "已导入的密钥",
"p2pkNoImportedKeys": "没有已导入的密钥",
"p2pkShowQR": "显示二维码",
"p2pkCopy": "复制",
"p2pkImportNsec": "导入nsec",
"p2pkImport": "导入",
"p2pkEnterLabel": "此密钥的名称",
"p2pkLockToKey": "P2PK签名发送",
"p2pkLockDescription": "只有接收者可以领取",
"p2pkReceiverPubkey": "npub1... 或 hex64/66字符)",
"p2pkInvalidPubkey": "无效的公钥",
"p2pkInvalidPrivateKey": "无效的私钥",
"p2pkLockedToYou": "已锁定给您",
"p2pkLockedToOther": "已锁定给其他密钥",
"p2pkCannotUnlock": "您没有解锁此代币的密钥",
"p2pkEnterPrivateKey": "输入私钥(nsec",
"p2pkDeleteTitle": "删除密钥",
"p2pkDeleteConfirm": "删除此密钥?您将无法接收锁定给它的代币。",
"p2pkRequiresConnection": "P2PK需要连接到铸造厂",
"p2pkErrorMaxKeysReached": "已达到导入密钥的最大数量(10)",
"p2pkErrorInvalidNsec": "无效的nsec",
"p2pkErrorKeyAlreadyExists": "此密钥已存在",
"p2pkErrorKeyNotFound": "未找到密钥",
"p2pkErrorCannotDeletePrimary": "无法删除主密钥"
}
+30 -2
View File
@@ -3,10 +3,13 @@ import 'package:flutter/services.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:provider/provider.dart';
import 'package:cdk_flutter/cdk_flutter.dart' hide WalletProvider;
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:elcaju/l10n/app_localizations.dart';
import 'core/theme/app_theme.dart';
import 'providers/wallet_provider.dart';
import 'providers/settings_provider.dart';
import 'providers/price_provider.dart';
import 'providers/p2pk_provider.dart';
import 'widgets/effects/cashu_confetti.dart';
import 'screens/1_splash/splash_screen.dart';
void main() async {
@@ -30,11 +33,17 @@ void main() async {
),
);
// Inicializar PriceProvider
final priceProvider = PriceProvider();
priceProvider.initialize();
runApp(
MultiProvider(
providers: [
ChangeNotifierProvider(create: (_) => SettingsProvider()),
ChangeNotifierProvider(create: (_) => WalletProvider()),
ChangeNotifierProvider(create: (_) => P2PKProvider()),
ChangeNotifierProvider.value(value: priceProvider),
],
child: const ElCajuApp(),
),
@@ -46,6 +55,8 @@ class ElCajuApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
final settingsProvider = context.watch<SettingsProvider>();
return MaterialApp(
title: 'ElCaju',
debugShowCheckedModeBanner: false,
@@ -61,8 +72,25 @@ class ElCajuApp extends StatelessWidget {
supportedLocales: const [
Locale('es'), // Español (por defecto)
Locale('en'), // English
Locale('pt'), // Português
Locale('fr'), // Français
Locale('ru'), // Русский
Locale('de'), // Deutsch
Locale('it'), // Italiano
Locale('ko'), // 한국어
Locale('zh'), // 中文
Locale('ja'), // 日本語
Locale('sw'), // Kiswahili
],
locale: null, // null = detectar del sistema
locale: Locale(settingsProvider.locale),
builder: (context, child) {
final walletProvider = context.read<WalletProvider>();
return CashuConfetti(
controller: walletProvider.confettiController,
child: child ?? const SizedBox.shrink(),
);
},
home: const SplashScreen(),
);
+87
View File
@@ -0,0 +1,87 @@
/// Modelo de clave P2PK
///
/// Representa una clave pública/privada para bloquear/desbloquear tokens Cashu
library;
import '../core/utils/nostr_utils.dart';
class P2PKKey {
/// ID único de la clave
final String id;
/// Clave pública en formato hex (64 caracteres)
final String publicKey;
/// Clave privada en formato hex (64 caracteres)
final String privateKey;
/// true si fue derivada del mnemonic (NIP-06)
final bool isDerived;
/// Etiqueta para identificar la clave (ej: "Principal", "Mi Nostr")
final String label;
/// Fecha de creación
final DateTime createdAt;
const P2PKKey({
required this.id,
required this.publicKey,
required this.privateKey,
required this.isDerived,
required this.label,
required this.createdAt,
});
// ============ GETTERS PARA FORMATOS NOSTR ============
/// Clave pública en formato npub (Nostr)
String get npub => NostrUtils.hexToNpub(publicKey);
/// Clave privada en formato nsec (Nostr)
String get nsec => NostrUtils.hexToNsec(privateKey);
// ============ SERIALIZACIÓN ============
Map<String, dynamic> toJson() => {
'id': id,
'publicKey': publicKey,
'privateKey': privateKey,
'isDerived': isDerived,
'label': label,
'createdAt': createdAt.toIso8601String(),
};
factory P2PKKey.fromJson(Map<String, dynamic> json) => P2PKKey(
id: json['id'] as String,
publicKey: json['publicKey'] as String,
privateKey: json['privateKey'] as String,
isDerived: json['isDerived'] as bool,
label: json['label'] as String,
createdAt: DateTime.parse(json['createdAt'] as String),
);
// ============ UTILIDADES ============
P2PKKey copyWith({String? label}) => P2PKKey(
id: id,
publicKey: publicKey,
privateKey: privateKey,
isDerived: isDerived,
label: label ?? this.label,
createdAt: createdAt,
);
@override
String toString() => 'P2PKKey(id: $id, label: $label, isDerived: $isDerived)';
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is P2PKKey &&
runtimeType == other.runtimeType &&
publicKey == other.publicKey;
@override
int get hashCode => publicKey.hashCode;
}
+306
View File
@@ -0,0 +1,306 @@
/// Provider para gestión de claves P2PK
///
/// Funcionalidades:
/// - Derivar clave principal desde mnemonic (NIP-06)
/// - Importar claves adicionales via nsec
/// - Detectar tokens P2PK bloqueados
/// - Verificar si podemos desbloquear un token
library;
import 'dart:convert';
import 'package:flutter/foundation.dart';
import 'package:flutter_secure_storage/flutter_secure_storage.dart';
import 'package:bip32/bip32.dart' as bip32;
import 'package:cdk_flutter/cdk_flutter.dart' as cdk;
import 'package:uuid/uuid.dart';
import '../models/p2pk_key.dart';
import '../core/utils/nostr_utils.dart';
import '../core/utils/p2pk_utils.dart';
/// Códigos de error para operaciones P2PK
enum P2PKErrorCode {
maxKeysReached,
invalidNsec,
keyAlreadyExists,
keyNotFound,
cannotDeletePrimaryKey,
}
/// Excepción tipada para errores P2PK (traducir en UI con L10n)
class P2PKException implements Exception {
final P2PKErrorCode code;
const P2PKException(this.code);
@override
String toString() => 'P2PKException: $code';
}
class P2PKProvider extends ChangeNotifier {
static const _storageKey = 'p2pk_keys';
static const _maxImportedKeys = 10;
final FlutterSecureStorage _secureStorage;
List<P2PKKey> _keys = [];
P2PKKey? _primaryKey;
bool _isInitialized = false;
P2PKProvider({FlutterSecureStorage? secureStorage})
: _secureStorage = secureStorage ?? const FlutterSecureStorage();
// ============ GETTERS ============
/// Todas las claves (principal + importadas)
List<P2PKKey> get keys => List.unmodifiable(_keys);
/// Clave principal derivada del mnemonic
P2PKKey? get primaryKey => _primaryKey;
/// Solo claves importadas (no derivadas)
List<P2PKKey> get importedKeys =>
_keys.where((k) => !k.isDerived).toList();
/// Si el provider está inicializado
bool get isInitialized => _isInitialized;
/// Cantidad de claves importadas
int get importedCount => importedKeys.length;
/// Si se pueden importar más claves
bool get canImportMore => importedCount < _maxImportedKeys;
// ============ INICIALIZACIÓN ============
/// Inicializa el provider derivando la clave principal del mnemonic
Future<void> initialize(String mnemonic) async {
// Cargar claves guardadas
await _loadKeys();
// Siempre derivar para comparar con la almacenada
final derived = await _deriveFromMnemonic(mnemonic);
if (_primaryKey == null) {
// Primera vez: guardar clave derivada
_primaryKey = derived;
_keys.insert(0, _primaryKey!);
await _saveKeys();
} else if (_primaryKey!.publicKey != derived.publicKey) {
// Mnemonic cambió (ej: wallet restore) — reemplazar clave primaria
_keys.removeWhere((k) => k.isDerived);
_primaryKey = derived;
_keys.insert(0, _primaryKey!);
await _saveKeys();
}
_isInitialized = true;
notifyListeners();
debugPrint('[P2PKProvider] Inicializado con ${_keys.length} claves');
debugPrint('[P2PKProvider] Clave principal: ${_primaryKey?.npub.substring(0, 20)}...');
}
// ============ GESTIÓN DE CLAVES ============
/// Importa una clave desde nsec
Future<P2PKKey> importFromNsec(String nsec, String label) async {
if (!canImportMore) {
throw const P2PKException(P2PKErrorCode.maxKeysReached);
}
// Limpiar input
String cleanNsec = nsec.trim();
if (cleanNsec.startsWith('nostr:')) {
cleanNsec = cleanNsec.substring(6);
}
final privateKeyHex = NostrUtils.nsecToHex(cleanNsec);
if (privateKeyHex == null) {
throw const P2PKException(P2PKErrorCode.invalidNsec);
}
// Obtener pubkey usando cdk-flutter
final publicKeyHex = cdk.getPubKey(secret: privateKeyHex);
// Verificar que no exista ya
if (_keys.any((k) => k.publicKey == publicKeyHex)) {
throw const P2PKException(P2PKErrorCode.keyAlreadyExists);
}
final key = P2PKKey(
id: const Uuid().v4(),
publicKey: publicKeyHex,
privateKey: privateKeyHex,
isDerived: false,
label: label.isEmpty ? 'Importada ${importedCount + 1}' : label,
createdAt: DateTime.now(),
);
_keys.add(key);
await _saveKeys();
notifyListeners();
debugPrint('[P2PKProvider] Clave importada: ${key.npub.substring(0, 20)}...');
return key;
}
/// Elimina una clave importada (no la principal)
Future<void> removeKey(String keyId) async {
final key = _keys.cast<P2PKKey?>().firstWhere(
(k) => k?.id == keyId,
orElse: () => null,
);
if (key == null) {
throw const P2PKException(P2PKErrorCode.keyNotFound);
}
if (key.isDerived) {
throw const P2PKException(P2PKErrorCode.cannotDeletePrimaryKey);
}
_keys.removeWhere((k) => k.id == keyId);
await _saveKeys();
notifyListeners();
debugPrint('[P2PKProvider] Clave eliminada: $keyId');
}
/// Actualiza el label de una clave
Future<void> updateLabel(String keyId, String newLabel) async {
final index = _keys.indexWhere((k) => k.id == keyId);
if (index < 0) return;
_keys[index] = _keys[index].copyWith(label: newLabel);
await _saveKeys();
notifyListeners();
}
// ============ DETECCIÓN DE TOKENS P2PK ============
/// Verifica si un token está bloqueado con P2PK
bool isTokenLocked(String encodedToken) {
return P2PKUtils.isP2PKLocked(encodedToken);
}
/// Verifica si un token está bloqueado para alguna de nuestras claves
bool isTokenLockedToUs(String encodedToken) {
final lockedPubkey = P2PKUtils.extractLockedPubkey(encodedToken);
if (lockedPubkey == null) return false;
// Normalizar a x-only (64 chars) para comparación
final normalizedLocked = _normalizeToXOnly(lockedPubkey);
return _keys.any((k) => _normalizeToXOnly(k.publicKey) == normalizedLocked);
}
/// Obtiene la clave privada para desbloquear un token
/// Prueba todas las claves automáticamente
String? getPrivateKeyForToken(String encodedToken) {
final lockedPubkey = P2PKUtils.extractLockedPubkey(encodedToken);
if (lockedPubkey == null) return null;
// Normalizar a x-only (64 chars) para comparación
final normalizedLocked = _normalizeToXOnly(lockedPubkey);
final key = _keys.cast<P2PKKey?>().firstWhere(
(k) => k != null && _normalizeToXOnly(k.publicKey) == normalizedLocked,
orElse: () => null,
);
return key?.privateKey;
}
/// Normaliza pubkey a formato x-only (64 chars) para comparación
/// Si es SEC1 (66 chars con prefijo 02/03), quita el prefijo
String _normalizeToXOnly(String pubkey) {
final lower = pubkey.toLowerCase();
if (lower.length == 66 && (lower.startsWith('02') || lower.startsWith('03'))) {
return lower.substring(2);
}
return lower;
}
/// Extrae la pubkey bloqueada de un token
String? extractLockedPubkey(String encodedToken) {
return P2PKUtils.extractLockedPubkey(encodedToken);
}
// ============ VALIDACIONES ============
/// Valida si un input es una pubkey válida (npub o hex)
bool isValidPubkey(String input) {
return NostrUtils.isValidPubkey(input);
}
/// Normaliza input (npub/hex/nostr:npub) a hex
String? normalizeToHex(String input) {
return NostrUtils.normalizeToHex(input);
}
// ============ MÉTODOS PRIVADOS ============
/// Deriva la clave principal del mnemonic usando NIP-06
/// Path: m/44'/1237'/0'/0/0
Future<P2PKKey> _deriveFromMnemonic(String mnemonic) async {
// 1. Mnemonic -> Seed (64 bytes) usando cdk-flutter
final seed = cdk.mnemonicToSeed(mnemonic: mnemonic);
// 2. Seed -> BIP32 root
final root = bip32.BIP32.fromSeed(seed);
// 3. Derivar con path NIP-06: m/44'/1237'/0'/0/0
final child = root.derivePath("m/44'/1237'/0'/0/0");
// 4. Obtener private key hex
final privateKeyHex = _bytesToHex(child.privateKey!);
// 5. Obtener public key usando cdk-flutter
final publicKeyHex = cdk.getPubKey(secret: privateKeyHex);
return P2PKKey(
id: 'primary',
publicKey: publicKeyHex,
privateKey: privateKeyHex,
isDerived: true,
label: 'Principal',
createdAt: DateTime.now(),
);
}
Future<void> _loadKeys() async {
try {
final json = await _secureStorage.read(key: _storageKey);
if (json != null) {
final List<dynamic> list = jsonDecode(json);
_keys = list.map((e) => P2PKKey.fromJson(e as Map<String, dynamic>)).toList();
_primaryKey = _keys.cast<P2PKKey?>().firstWhere(
(k) => k?.isDerived == true,
orElse: () => null,
);
}
} catch (e) {
debugPrint('[P2PKProvider] Error cargando claves: $e');
_keys = [];
_primaryKey = null;
}
}
Future<void> _saveKeys() async {
final json = jsonEncode(_keys.map((k) => k.toJson()).toList());
await _secureStorage.write(key: _storageKey, value: json);
}
String _bytesToHex(List<int> bytes) {
return bytes.map((b) => b.toRadixString(16).padLeft(2, '0')).join();
}
/// Limpia todas las claves (usado al borrar wallet)
Future<void> clear() async {
_keys = [];
_primaryKey = null;
_isInitialized = false;
await _secureStorage.delete(key: _storageKey);
notifyListeners();
debugPrint('[P2PKProvider] Claves eliminadas');
}
}
+138
View File
@@ -0,0 +1,138 @@
import 'dart:async';
import 'package:flutter/foundation.dart';
import '../core/services/price_service.dart';
/// Provider para manejar precios de BTC con caché
class PriceProvider extends ChangeNotifier {
/// Precio de BTC en USD (caché)
double? _btcPriceUsd;
/// Precio de BTC en EUR (caché)
double? _btcPriceEur;
/// Timestamp de última actualización
DateTime? _lastUpdate;
/// Intervalo mínimo entre actualizaciones (60 segundos)
static const _minRefreshInterval = Duration(seconds: 60);
/// Timer para refresh automático
Timer? _refreshTimer;
/// Error de última operación
String? _error;
/// Getters
double? get btcPriceUsd => _btcPriceUsd;
double? get btcPriceEur => _btcPriceEur;
DateTime? get lastUpdate => _lastUpdate;
String? get error => _error;
bool get hasPrice => _btcPriceUsd != null;
/// Obtiene el precio de BTC para una moneda específica
double? getBtcPrice(String currency) {
switch (currency.toLowerCase()) {
case 'usd':
return _btcPriceUsd;
case 'eur':
return _btcPriceEur;
default:
return null;
}
}
/// Verifica si necesita actualizar el precio
bool get _needsRefresh {
if (_lastUpdate == null) return true;
return DateTime.now().difference(_lastUpdate!) > _minRefreshInterval;
}
/// Inicializa el provider y comienza refresh automático
Future<void> initialize() async {
await refreshPrices();
_startAutoRefresh();
}
/// Inicia el timer de refresh automático
void _startAutoRefresh() {
_refreshTimer?.cancel();
_refreshTimer = Timer.periodic(_minRefreshInterval, (_) {
refreshPrices();
});
}
/// Actualiza los precios desde la API
Future<void> refreshPrices() async {
if (!_needsRefresh && _btcPriceUsd != null) return;
try {
_error = null;
// Obtener precio USD
_btcPriceUsd = await PriceService.getBtcPrice('USD');
// Intentar obtener EUR también
try {
_btcPriceEur = await PriceService.getBtcPrice('EUR');
} catch (_) {
// EUR es opcional
}
_lastUpdate = DateTime.now();
notifyListeners();
} catch (e) {
_error = e.toString();
notifyListeners();
}
}
/// Convierte cantidad en unidad fiat (centavos) a sats
/// Usa caché si está disponible, sino llama a la API
Future<BigInt> fiatCentsToSats(BigInt cents, String fiatCurrency) async {
final btcPrice = getBtcPrice(fiatCurrency);
if (btcPrice != null) {
// Usar precio cacheado
final fiatAmount = cents.toDouble() / 100;
final btcAmount = fiatAmount / btcPrice;
final sats = (btcAmount * 100000000).round();
return BigInt.from(sats);
}
// Fallback a API directa
return PriceService.fiatCentsToSats(cents, fiatCurrency);
}
/// Convierte sats a cantidad en unidad fiat (centavos)
Future<BigInt> satsToFiatCents(BigInt sats, String fiatCurrency) async {
final btcPrice = getBtcPrice(fiatCurrency);
if (btcPrice != null) {
// Usar precio cacheado
final btcAmount = sats.toDouble() / 100000000;
final fiatAmount = btcAmount * btcPrice;
return BigInt.from((fiatAmount * 100).round());
}
// Fallback a API directa
return PriceService.satsToFiatCents(sats, fiatCurrency);
}
/// Formatea el precio para display
String formatBtcPrice(String currency) {
final price = getBtcPrice(currency);
if (price == null) return '--';
// Formatear con separador de miles
return price.toStringAsFixed(0).replaceAllMapped(
RegExp(r'(\d{1,3})(?=(\d{3})+(?!\d))'),
(match) => '${match[1]},',
);
}
@override
void dispose() {
_refreshTimer?.cancel();
super.dispose();
}
}
+36
View File
@@ -16,6 +16,8 @@ class SettingsProvider extends ChangeNotifier {
static const _defaultMintKey = 'default_mint';
static const _localeKey = 'locale';
static const _pinEnabledKey = 'pin_enabled';
static const _activeUnitKey = 'active_unit';
static const _activeMintUrlKey = 'active_mint_url';
// Estado interno
bool _isInitialized = false;
@@ -24,6 +26,8 @@ class SettingsProvider extends ChangeNotifier {
String? _pin;
String _locale = 'es';
String _defaultMint = 'https://mint.cubabitcoin.org';
String _activeUnit = 'sat';
String? _activeMintUrl;
// Getters
bool get isInitialized => _isInitialized;
@@ -32,6 +36,8 @@ class SettingsProvider extends ChangeNotifier {
bool get hasPin => _pin != null && _pin!.isNotEmpty;
String get locale => _locale;
String get defaultMint => _defaultMint;
String get activeUnit => _activeUnit;
String? get activeMintUrl => _activeMintUrl;
// ============================================================
// INICIALIZACION
@@ -49,6 +55,8 @@ class SettingsProvider extends ChangeNotifier {
_locale = _prefs?.getString(_localeKey) ?? 'es';
_defaultMint = _prefs?.getString(_defaultMintKey) ?? 'https://mint.cubabitcoin.org';
_pinEnabled = _prefs?.getBool(_pinEnabledKey) ?? false;
_activeUnit = _prefs?.getString(_activeUnitKey) ?? 'sat';
_activeMintUrl = _prefs?.getString(_activeMintUrlKey);
// Cargar PIN si existe
if (_pinEnabled) {
@@ -142,6 +150,28 @@ class SettingsProvider extends ChangeNotifier {
notifyListeners();
}
// ============================================================
// UNIDAD Y MINT ACTIVO
// ============================================================
/// Guarda la unidad activa (sat, usd, eur, etc.).
Future<void> setActiveUnit(String unit) async {
await _prefs?.setString(_activeUnitKey, unit);
_activeUnit = unit;
notifyListeners();
}
/// Guarda el mint activo.
Future<void> setActiveMintUrl(String? mintUrl) async {
if (mintUrl != null) {
await _prefs?.setString(_activeMintUrlKey, mintUrl);
} else {
await _prefs?.remove(_activeMintUrlKey);
}
_activeMintUrl = mintUrl;
notifyListeners();
}
// ============================================================
// BORRAR WALLET
// ============================================================
@@ -156,12 +186,16 @@ class SettingsProvider extends ChangeNotifier {
// Resetear preferencias
await _prefs?.setBool(_hasWalletKey, false);
await _prefs?.setBool(_pinEnabledKey, false);
await _prefs?.remove(_activeUnitKey);
await _prefs?.remove(_activeMintUrlKey);
// Mantener locale y defaultMint (preferencias de app, no de wallet)
// Resetear estado
_hasWallet = false;
_pinEnabled = false;
_pin = null;
_activeUnit = 'sat';
_activeMintUrl = null;
notifyListeners();
}
@@ -180,6 +214,8 @@ class SettingsProvider extends ChangeNotifier {
_pin = null;
_locale = 'es';
_defaultMint = 'https://mint.cubabitcoin.org';
_activeUnit = 'sat';
_activeMintUrl = null;
notifyListeners();
}
File diff suppressed because it is too large Load Diff
+365
View File
@@ -0,0 +1,365 @@
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:lucide_icons/lucide_icons.dart';
import 'package:elcaju/l10n/app_localizations.dart';
import '../../core/constants/colors.dart';
import '../../core/utils/incoming_data_parser.dart';
import '../../widgets/scanner/qr_scanner_widget.dart';
import '../../providers/wallet_provider.dart';
import '../4_receive/receive_screen.dart';
import '../7_melt/melt_screen.dart';
/// Pantalla de escaneo QR con soporte para diferentes modos
class ScanScreen extends StatefulWidget {
/// Modo de escaneo
final ScanMode mode;
/// Callback cuando se detecta un dato válido (para modos específicos)
final void Function(String data)? onDataScanned;
const ScanScreen({
super.key,
this.mode = ScanMode.any,
this.onDataScanned,
});
@override
State<ScanScreen> createState() => _ScanScreenState();
}
class _ScanScreenState extends State<ScanScreen> {
bool _isProcessing = false;
@override
Widget build(BuildContext context) {
final l10n = L10n.of(context)!;
return Scaffold(
backgroundColor: Colors.black,
appBar: AppBar(
backgroundColor: Colors.transparent,
elevation: 0,
leading: IconButton(
icon: const Icon(LucideIcons.x, color: Colors.white),
onPressed: () => Navigator.pop(context),
),
title: Text(
_getTitleForMode(l10n),
style: const TextStyle(
fontFamily: 'Inter',
fontWeight: FontWeight.w600,
color: Colors.white,
),
),
centerTitle: true,
),
body: SafeArea(
child: Stack(
children: [
// Scanner
QrScannerWidget(
onDetect: _onCodeDetected,
showFlashControl: true,
showCameraSwitch: false,
),
// Instrucciones en la parte inferior
Positioned(
bottom: 100,
left: 24,
right: 24,
child: Text(
_getInstructionForMode(l10n),
style: TextStyle(
fontFamily: 'Inter',
fontSize: 16,
color: Colors.white.withValues(alpha: 0.8),
),
textAlign: TextAlign.center,
),
),
// Indicador de procesamiento
if (_isProcessing)
Container(
color: Colors.black54,
child: const Center(
child: CircularProgressIndicator(
color: AppColors.primaryAction,
),
),
),
],
),
),
);
}
String _getTitleForMode(L10n l10n) {
switch (widget.mode) {
case ScanMode.any:
return l10n.scanQrCode;
case ScanMode.cashuOnly:
return l10n.scanCashuToken;
case ScanMode.invoiceOnly:
return l10n.scanLightningInvoice;
}
}
String _getInstructionForMode(L10n l10n) {
switch (widget.mode) {
case ScanMode.any:
return l10n.pointCameraAtQr;
case ScanMode.cashuOnly:
return l10n.pointCameraAtCashuQr;
case ScanMode.invoiceOnly:
return l10n.pointCameraAtInvoiceQr;
}
}
void _onCodeDetected(String rawData) async {
if (_isProcessing) return;
setState(() => _isProcessing = true);
try {
// Parsear los datos
final parsed = IncomingDataParser.parse(rawData);
// Verificar si es válido para el modo actual
if (!IncomingDataParser.isValidForMode(parsed, widget.mode)) {
_showInvalidTypeError(parsed.type);
return; // finally se encarga de setState
}
// Procesar según el tipo y modo
await _processData(parsed);
} catch (e) {
_showError(e.toString());
} finally {
if (mounted) {
setState(() => _isProcessing = false);
}
}
}
Future<void> _processData(ParsedData data) async {
switch (widget.mode) {
case ScanMode.any:
await _handleAnyMode(data);
break;
case ScanMode.cashuOnly:
_handleCashuOnlyMode(data);
break;
case ScanMode.invoiceOnly:
_handleInvoiceOnlyMode(data);
break;
}
}
Future<void> _handleAnyMode(ParsedData data) async {
final l10n = L10n.of(context)!;
switch (data.type) {
case IncomingDataType.cashuToken:
// Navegar a ReceiveScreen con el token pre-cargado
if (mounted) {
Navigator.pop(context); // Cerrar scanner
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => ReceiveScreen(initialToken: data.raw),
),
);
}
break;
case IncomingDataType.lightningInvoice:
// Navegar a MeltScreen con el invoice pre-cargado
if (mounted) {
Navigator.pop(context); // Cerrar scanner
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => MeltScreen(initialInvoice: data.invoiceBolt11),
),
);
}
break;
case IncomingDataType.mintUrl:
// Mostrar diálogo para agregar mint
if (mounted) {
await _showAddMintDialog(data.mintUrl!);
}
break;
case IncomingDataType.paymentRequest:
// TODO: Implementar manejo de payment requests (post-MVP)
_showError(l10n.paymentRequestNotSupported);
break;
case IncomingDataType.unknown:
// Si es una URL https, intentar verificar si es un mint
if (data.raw.toLowerCase().startsWith('https://')) {
await _tryVerifyAndAddMint(data.raw);
} else {
_showError(l10n.unrecognizedQrCode);
}
break;
}
}
void _handleCashuOnlyMode(ParsedData data) {
if (data.type == IncomingDataType.cashuToken) {
// Retornar el token vía callback
Navigator.pop(context, data.raw);
widget.onDataScanned?.call(data.raw);
} else {
_showInvalidTypeError(data.type);
}
}
void _handleInvoiceOnlyMode(ParsedData data) {
if (data.type == IncomingDataType.lightningInvoice) {
// Retornar el invoice vía callback
Navigator.pop(context, data.invoiceBolt11 ?? data.raw);
widget.onDataScanned?.call(data.invoiceBolt11 ?? data.raw);
} else {
_showInvalidTypeError(data.type);
}
}
/// Intenta verificar si una URL es un mint válido antes de mostrar el diálogo
Future<void> _tryVerifyAndAddMint(String rawUrl) async {
final l10n = L10n.of(context)!;
try {
// Extraer URL base
final uri = Uri.parse(rawUrl);
String mintUrl = '${uri.scheme}://${uri.host}';
if (uri.port != 443 && uri.port != 0) {
mintUrl += ':${uri.port}';
}
// Verificar si es un mint real (timeout corto)
final walletProvider = context.read<WalletProvider>();
final isValidMint = await walletProvider.canReachMint(mintUrl);
if (!mounted) return;
if (isValidMint) {
// Es un mint válido → mostrar diálogo
await _showAddMintDialog(mintUrl);
} else {
// No es un mint → QR no reconocido
_showError(l10n.unrecognizedQrCode);
}
} catch (_) {
if (mounted) {
_showError(l10n.unrecognizedQrCode);
}
}
}
Future<void> _showAddMintDialog(String mintUrl) async {
final l10n = L10n.of(context)!;
final result = await showDialog<bool>(
context: context,
builder: (context) => AlertDialog(
backgroundColor: AppColors.deepVoidPurple,
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16)),
title: Text(
l10n.addMintQuestion,
style: const TextStyle(color: Colors.white),
),
content: Column(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
mintUrl,
style: TextStyle(
color: AppColors.textSecondary,
fontSize: 14,
),
),
],
),
actions: [
TextButton(
onPressed: () => Navigator.pop(context, false),
child: Text(
l10n.cancel,
style: const TextStyle(color: Colors.white70),
),
),
TextButton(
onPressed: () => Navigator.pop(context, true),
child: Text(
l10n.add,
style: const TextStyle(color: AppColors.primaryAction),
),
),
],
),
);
if (result == true && mounted) {
try {
final walletProvider = context.read<WalletProvider>();
await walletProvider.addMint(mintUrl);
if (mounted) {
Navigator.pop(context); // Cerrar scanner
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(l10n.mintAddedSuccessfully),
backgroundColor: AppColors.success,
),
);
}
} catch (e) {
_showError(l10n.couldNotConnectToMint);
}
}
}
void _showInvalidTypeError(IncomingDataType detectedType) {
final l10n = L10n.of(context)!;
String message;
switch (widget.mode) {
case ScanMode.cashuOnly:
message = l10n.scanCashuTokenHint;
break;
case ScanMode.invoiceOnly:
message = l10n.scanLightningInvoiceHint;
break;
case ScanMode.any:
message = l10n.unrecognizedQrCode;
break;
}
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(message),
backgroundColor: AppColors.warning,
duration: const Duration(seconds: 2),
),
);
}
void _showError(String message) {
if (!mounted) return;
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(message),
backgroundColor: AppColors.error,
duration: const Duration(seconds: 3),
),
);
}
}
+87 -3
View File
@@ -1,11 +1,14 @@
import 'dart:async';
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
import 'package:elcaju/l10n/app_localizations.dart';
import '../../core/constants/colors.dart';
import '../../core/constants/dimensions.dart';
import '../../widgets/common/gradient_background.dart';
import '../../providers/settings_provider.dart';
import '../../providers/wallet_provider.dart';
import '../../providers/p2pk_provider.dart';
import '../2_onboarding/welcome_screen.dart';
import '../3_home/home_screen.dart';
@@ -24,6 +27,11 @@ class _SplashScreenState extends State<SplashScreen>
late Animation<double> _fadeAnimation;
String? _errorMessage;
// Mensajes de carga aleatorios
int _currentMessageIndex = 0;
Timer? _messageTimer;
final _random = Random();
@override
void initState() {
super.initState();
@@ -38,14 +46,40 @@ class _SplashScreenState extends State<SplashScreen>
_controller.forward();
// Iniciar rotación de mensajes de carga
_currentMessageIndex = _random.nextInt(7);
_messageTimer = Timer.periodic(const Duration(milliseconds: 800), (_) {
if (mounted) {
setState(() {
_currentMessageIndex = _random.nextInt(7);
});
}
});
// Inicializar la app
_initializeApp();
}
/// Obtiene el mensaje de carga actual basado en el índice
String _getLoadingMessage(L10n? l10n) {
if (l10n == null) return 'Cargando...';
switch (_currentMessageIndex) {
case 0: return l10n.loadingMessage1;
case 1: return l10n.loadingMessage2;
case 2: return l10n.loadingMessage3;
case 3: return l10n.loadingMessage4;
case 4: return l10n.loadingMessage5;
case 5: return l10n.loadingMessage6;
case 6: return l10n.loadingMessage7;
default: return l10n.loadingMessage1;
}
}
Future<void> _initializeApp() async {
try {
final settingsProvider = context.read<SettingsProvider>();
final walletProvider = context.read<WalletProvider>();
final p2pkProvider = context.read<P2PKProvider>();
// Inicializar settings (cargar preferencias)
await settingsProvider.initialize();
@@ -63,8 +97,22 @@ class _SplashScreenState extends State<SplashScreen>
if (mnemonic != null && mnemonic.isNotEmpty) {
await walletProvider.initialize(mnemonic);
// Inicializar P2PK (derivar clave principal del mnemonic)
// Aislado: P2PK es secundario, su fallo no debe bloquear la wallet
try {
await p2pkProvider.initialize(mnemonic);
} catch (e) {
debugPrint('[SplashScreen] Error initializing P2PK (non-fatal): $e');
}
if (!mounted) return;
// Restaurar mint y unidad activa desde settings
await _restoreActiveState(settingsProvider, walletProvider);
// Verificar proofs en background (no bloquea navegación)
unawaited(_checkPendingTransactions(walletProvider));
// Ir al Home
_navigateTo(const HomeScreen());
} else {
@@ -91,6 +139,41 @@ class _SplashScreenState extends State<SplashScreen>
}
}
/// Restaura el mint y unidad activa desde SettingsProvider.
Future<void> _restoreActiveState(
SettingsProvider settings,
WalletProvider wallet,
) async {
try {
// Restaurar mint activo si está guardado
final savedMintUrl = settings.activeMintUrl;
if (savedMintUrl != null && wallet.mintUrls.contains(savedMintUrl)) {
await wallet.setActiveMint(savedMintUrl);
}
// Restaurar unidad activa si está guardada y es soportada
final savedUnit = settings.activeUnit;
if (wallet.activeUnits.contains(savedUnit)) {
await wallet.setActiveUnit(savedUnit);
}
} catch (e) {
debugPrint('Error restaurando estado activo: $e');
// No bloquear si falla, usar defaults
}
}
/// Verifica proofs pendientes en background.
/// Se ejecuta sin bloquear la navegación.
Future<void> _checkPendingTransactions(WalletProvider wallet) async {
try {
await wallet.checkPendingTransactions();
debugPrint('Verificación de proofs completada');
} catch (e) {
debugPrint('Error verificando proofs: $e');
// Silencioso - no mostrar error al usuario
}
}
void _navigateTo(Widget screen) {
Navigator.pushReplacement(
context,
@@ -106,6 +189,7 @@ class _SplashScreenState extends State<SplashScreen>
@override
void dispose() {
_messageTimer?.cancel();
_controller.dispose();
super.dispose();
}
@@ -146,9 +230,9 @@ class _SplashScreenState extends State<SplashScreen>
),
const SizedBox(height: AppDimensions.paddingSmall),
// Subtítulo
// Mensaje de carga aleatorio
Text(
l10n?.appTagline ?? 'Tu wallet de ecash privado',
_getLoadingMessage(l10n),
style: TextStyle(
fontFamily: 'Inter',
fontSize: 16,

Some files were not shown because too many files have changed in this diff Show More