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/ja.json | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'src/locales/ja.json') diff --git a/src/locales/ja.json b/src/locales/ja.json index 35b91a8..b990fd8 100644 --- a/src/locales/ja.json +++ b/src/locales/ja.json @@ -172,5 +172,21 @@ "giftReclaimed": "コインを取り戻しました", "giftRevokeConfirm": "このギフトを今すぐ取り消しますか?コインがウォレットに戻り、リンクが無効になります。", "giftReclaimedTag": "まだ請求可能", - "giftMinNote": "現在の手数料で最低 {n}。請求時にダストを上回ります。" -} \ No newline at end of file + "giftMinNote": "現在の手数料で最低 {n}。請求時にダストを上回ります。", + "accounts": "アカウント", + "addWallet": "ウォレットを追加", + "lockAll": "すべてロック", + "watchOnly": "ウォッチ専用", + "watchOnlyTag": "ウォッチ専用", + "watchOnlyAdd": "ウォッチ専用を追加", + "watchOnlyDesc": "アカウントの公開鍵から任意のウォレットをウォッチできます。受取、残高と履歴の表示はできますが、送金はできません。", + "watchOnlyNote": "これはウォッチ専用ウォレットです。受取と表示はできますが、送金はできません。", + "watchXpubLabel": "アカウントの xpub または zpub", + "labelOptional": "ラベル(任意)", + "walletLabelN": "ウォレット {n}", + "watchLabelN": "ウォッチ {n}", + "publicKey": "公開鍵", + "publicKeyDesc": "これを共有すると、別の端末やアプリでこのウォレットを読み取り専用でウォッチできます。鍵ではなくアドレスが公開されます。", + "copyKey": "鍵をコピー", + "showPublicKey": "公開鍵を表示" +} -- cgit v1.2.3