Skip to content

Commit 8f719fe

Browse files
jungcome7claude
andcommitted
chore(extension): add i18n keys and minor fixes
- en/ko/zh-cn.json에 smart account 관련 13개 i18n 키 추가 - helper.ts: buildDummyAuthorizationList의 address 파라미터 타입 명확화 - DSTypography: minor fix Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5deb3d8 commit 8f719fe

5 files changed

Lines changed: 71 additions & 4 deletions

File tree

apps/extension/src/languages/en.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,28 @@
412412
"page.wallet.keyring-item.dropdown.delete-wallet-title": "Delete Wallet",
413413
"page.wallet.keyring-item.dropdown.view-recovery-path-title": "View Recovery Phrase",
414414
"page.wallet.keyring-item.dropdown.view-private-key-title": "View Private key",
415+
"page.wallet.keyring-item.dropdown.smart-account-title": "EVM Smart Account",
416+
417+
"page.wallet.smart-account.title": "Smart Account",
418+
"page.wallet.smart-account.description": "Enable or disable Smart Account for each network.",
419+
"page.wallet.smart-account.status.unsupported": "Unsupported",
420+
"page.wallet.smart-account.confirm.title": "Transaction Confirmation",
421+
"page.wallet.smart-account.confirm.section-title": "Transaction Summary",
422+
"page.wallet.smart-account.confirm.switch-to": "Switch To",
423+
"page.wallet.smart-account.confirm.summary.upgrade": "Upgrade to Smart Account",
424+
"page.wallet.smart-account.confirm.summary.upgrade.desc": "Switching from a regular account to a Smart Account. Your address stays the same.",
425+
"page.wallet.smart-account.confirm.summary.downgrade": "Revert to Standard Account",
426+
"page.wallet.smart-account.confirm.summary.downgrade.desc": "Switching from a Smart Account to a regular account. You can switch back anytime.",
427+
"page.wallet.smart-account.confirm.current": "Current",
428+
"page.wallet.smart-account.confirm.current.eoa": "Regular Account (EOA)",
429+
"page.wallet.smart-account.confirm.current.smart": "Smart Account",
430+
"page.wallet.smart-account.confirm.delegator": "Delegation Contract",
431+
"page.wallet.smart-account.confirm.network": "Network",
432+
"page.wallet.smart-account.confirm.account": "Account",
433+
"page.wallet.smart-account.confirm.fee": "Network Fee",
434+
"page.wallet.smart-account.confirm.fee.insufficient": "Insufficient balance for network fee.",
435+
"page.wallet.smart-account.confirm.fee.failed": "Unable to estimate",
436+
"page.wallet.smart-account.confirm.fee.retry": "Tap to retry",
415437

416438
"page.wallet.change-name.previous-name-input-label": "Previous Wallet Name",
417439
"page.wallet.change-name.new-name-input-label": "New Wallet Name",

apps/extension/src/languages/ko.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,28 @@
406406
"page.wallet.keyring-item.dropdown.delete-wallet-title": "지갑 삭제",
407407
"page.wallet.keyring-item.dropdown.view-recovery-path-title": "복구 문구 보기",
408408
"page.wallet.keyring-item.dropdown.view-private-key-title": "프라이빗키 보기",
409+
"page.wallet.keyring-item.dropdown.smart-account-title": "EVM 스마트 계정",
410+
411+
"page.wallet.smart-account.title": "스마트 계정",
412+
"page.wallet.smart-account.description": "네트워크별로 Smart Account를 활성화하거나 비활성화할 수 있습니다.",
413+
"page.wallet.smart-account.status.unsupported": "미지원",
414+
"page.wallet.smart-account.confirm.title": "트랜잭션 확인",
415+
"page.wallet.smart-account.confirm.section-title": "트랜잭션 요약",
416+
"page.wallet.smart-account.confirm.switch-to": "전환 대상",
417+
"page.wallet.smart-account.confirm.summary.upgrade": "계정 업그레이드",
418+
"page.wallet.smart-account.confirm.summary.upgrade.desc": "일반 계정에서 스마트 계정으로 전환합니다. 주소는 동일하게 유지됩니다.",
419+
"page.wallet.smart-account.confirm.summary.downgrade": "계정 다운그레이드",
420+
"page.wallet.smart-account.confirm.summary.downgrade.desc": "스마트 계정에서 일반 계정으로 전환합니다. 언제든 다시 전환할 수 있습니다.",
421+
"page.wallet.smart-account.confirm.current": "현재",
422+
"page.wallet.smart-account.confirm.current.eoa": "일반 계정 (EOA)",
423+
"page.wallet.smart-account.confirm.current.smart": "스마트 계정",
424+
"page.wallet.smart-account.confirm.delegator": "위임 컨트랙트",
425+
"page.wallet.smart-account.confirm.network": "네트워크",
426+
"page.wallet.smart-account.confirm.account": "계정",
427+
"page.wallet.smart-account.confirm.fee": "네트워크 수수료",
428+
"page.wallet.smart-account.confirm.fee.insufficient": "네트워크 수수료를 위한 잔액이 부족합니다.",
429+
"page.wallet.smart-account.confirm.fee.failed": "추정 불가",
430+
"page.wallet.smart-account.confirm.fee.retry": "탭하여 재시도",
409431

410432
"page.wallet.change-name.previous-name-input-label": "현재 지갑 이름",
411433
"page.wallet.change-name.new-name-input-label": "새로운 지갑 이름",

apps/extension/src/languages/zh-cn.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,28 @@
376376
"page.wallet.keyring-item.dropdown.delete-wallet-title": "删除钱包",
377377
"page.wallet.keyring-item.dropdown.view-recovery-path-title": "查看助记词",
378378
"page.wallet.keyring-item.dropdown.view-private-key-title": "查看私钥",
379+
"page.wallet.keyring-item.dropdown.smart-account-title": "EVM 智能账户",
380+
381+
"page.wallet.smart-account.title": "智能账户",
382+
"page.wallet.smart-account.description": "按网络启用或禁用智能账户。",
383+
"page.wallet.smart-account.status.unsupported": "不支持",
384+
"page.wallet.smart-account.confirm.title": "交易确认",
385+
"page.wallet.smart-account.confirm.section-title": "交易摘要",
386+
"page.wallet.smart-account.confirm.switch-to": "切换到",
387+
"page.wallet.smart-account.confirm.summary.upgrade": "升级为智能账户",
388+
"page.wallet.smart-account.confirm.summary.upgrade.desc": "普通账户切换为智能账户。地址保持不变。",
389+
"page.wallet.smart-account.confirm.summary.downgrade": "恢复为标准账户",
390+
"page.wallet.smart-account.confirm.summary.downgrade.desc": "智能账户切换为普通账户。可随时切换回来。",
391+
"page.wallet.smart-account.confirm.current": "当前",
392+
"page.wallet.smart-account.confirm.current.eoa": "普通账户 (EOA)",
393+
"page.wallet.smart-account.confirm.current.smart": "智能账户",
394+
"page.wallet.smart-account.confirm.delegator": "委托合约",
395+
"page.wallet.smart-account.confirm.network": "网络",
396+
"page.wallet.smart-account.confirm.account": "账户",
397+
"page.wallet.smart-account.confirm.fee": "网络费用",
398+
"page.wallet.smart-account.confirm.fee.insufficient": "余额不足以支付网络费用。",
399+
"page.wallet.smart-account.confirm.fee.failed": "无法估算",
400+
"page.wallet.smart-account.confirm.fee.retry": "点击重试",
379401

380402
"page.wallet.change-name.previous-name-input-label": "原钱包名称",
381403
"page.wallet.change-name.new-name-input-label": "新钱包名称",

packages/background/src/keyring-ethereum/helper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,11 @@ export function buildDummyAuthorizationList(
108108
return [
109109
{
110110
address,
111-
chainId,
111+
chainId: `0x${chainId.toString(16)}`,
112112
nonce: "0x1",
113113
r: "0x" + "1".repeat(64),
114114
s: "0x" + "1".repeat(64),
115-
yParity: 1,
115+
yParity: "0x1",
116116
},
117117
];
118118
}

packages/design-system/src/foundation/typography/typography.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React from "react";
22
import { dsTypographyTokens } from "./typography-tokens";
33
import type { DSTypographySize } from "./typography-tokens";
4+
import { DSColor } from "../color";
45

56
type Weight = "semibold" | "medium" | "regular";
67

@@ -17,7 +18,7 @@ export interface DSTypographyProps extends React.HTMLAttributes<HTMLElement> {
1718
weight?: Weight;
1819
/** Override token font size (px) */
1920
fontSize?: number;
20-
/** Text color — `DSColor.typography.primary`, `DSColor.blue400`, or any CSS color */
21+
/** Text color — defaults to `DSColor.typography.primary`. Accepts any CSS color. */
2122
color?: string;
2223
/** HTML element to render as — `"span"`, `"p"`, `"h1"`, `"div"`, `"label"`, etc. */
2324
as?: React.ElementType;
@@ -47,7 +48,7 @@ export const DSTypography = React.forwardRef<HTMLElement, DSTypographyProps>(
4748
lineHeight: token?.lineHeight,
4849
letterSpacing: token?.letterSpacing,
4950
fontWeight: WEIGHT_VALUE[weight],
50-
color,
51+
color: color ?? DSColor.typography.primary,
5152
...style,
5253
}}
5354
{...rest}

0 commit comments

Comments
 (0)