From c81616ed0024c0cec693b552de5c5b6d7056eff3 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 24 Jun 2026 14:41:36 -0700 Subject: Add account switching and watch-only wallets MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Accounts: a switcher (header chip → Accounts screen) lets you keep several wallets loaded and flip between them without re-importing. Per the chosen model, full (seed) accounts live only in sessionStorage — ephemeral, no seed on disk; watch-only accounts (no seed) are persisted in localStorage and reload across restarts. enterWallet is refactored around an accounts list (add/switch/remove/lock); Add wallet reaches the unlock screen with a back button. Watch-only: load any wallet from its account xpub/zpub (parseAccountKey normalizes zpub→xpub; the existing public-derivation path yields the same addresses). Signing is blocked, the Send tab and seed/sync/offline cards are hidden, and a watch-only note is shown. Settings gains a "Public key" card (export this wallet's zpub) so it can be watched read-only elsewhere. Password-encrypted persistence for full accounts is the planned next step. New strings translated across all 19 locales. Co-Authored-By: Claude Opus 4.8 (1M context) --- src/locales/vi.json | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src/locales/vi.json') diff --git a/src/locales/vi.json b/src/locales/vi.json index b715777..4c8e58c 100644 --- a/src/locales/vi.json +++ b/src/locales/vi.json @@ -172,5 +172,21 @@ "giftReclaimed": "Đã thu lại coin", "giftRevokeConfirm": "Thu hồi quà này ngay? Việc này chuyển đồng coin về ví của bạn và vô hiệu hóa liên kết.", "giftReclaimedTag": "vẫn có thể nhận", - "giftMinNote": "Tối thiểu {n} ở mức phí hiện tại, để vượt mức bụi khi được nhận." + "giftMinNote": "Tối thiểu {n} ở mức phí hiện tại, để vượt mức bụi khi được nhận.", + "accounts": "Tài khoản", + "addWallet": "Thêm ví", + "lockAll": "Khóa tất cả", + "watchOnly": "Chỉ theo dõi", + "watchOnlyTag": "chỉ theo dõi", + "watchOnlyAdd": "Thêm ví chỉ theo dõi", + "watchOnlyDesc": "Theo dõi bất kỳ ví nào từ khóa công khai tài khoản của nó. Bạn có thể nhận và xem số dư cùng lịch sử, nhưng không thể gửi.", + "watchOnlyNote": "Đây là ví chỉ theo dõi. Bạn có thể nhận và xem, nhưng không thể gửi.", + "watchXpubLabel": "xpub hoặc zpub của tài khoản", + "labelOptional": "Nhãn (tùy chọn)", + "walletLabelN": "Ví {n}", + "watchLabelN": "Theo dõi {n}", + "publicKey": "Khóa công khai", + "publicKeyDesc": "Chia sẻ khóa này để theo dõi ví này ở chế độ chỉ đọc trên thiết bị hoặc ứng dụng khác. Nó tiết lộ địa chỉ của bạn, chứ không phải khóa của bạn.", + "copyKey": "Sao chép khóa", + "showPublicKey": "Hiện khóa công khai" } \ No newline at end of file -- cgit v1.2.3