thirdweb 5.105.31-nightly-a3909e17947419728d5fecce1f83cfa50678a095-20250810000431 → 5.105.32-nightly-c661a485d0fd74a6c6db424b2c0975e51c0dc5f4-20250812000352
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/react/core/hooks/usePaymentMethods.js +8 -16
- package/dist/cjs/react/core/hooks/usePaymentMethods.js.map +1 -1
- package/dist/cjs/react/web/ui/Bridge/BridgeOrchestrator.js +1 -0
- package/dist/cjs/react/web/ui/Bridge/BridgeOrchestrator.js.map +1 -1
- package/dist/cjs/react/web/ui/Bridge/BuyWidget.js +25 -2
- package/dist/cjs/react/web/ui/Bridge/BuyWidget.js.map +1 -1
- package/dist/cjs/react/web/ui/Bridge/CheckoutWidget.js +39 -1
- package/dist/cjs/react/web/ui/Bridge/CheckoutWidget.js.map +1 -1
- package/dist/cjs/react/web/ui/Bridge/TransactionWidget.js +24 -0
- package/dist/cjs/react/web/ui/Bridge/TransactionWidget.js.map +1 -1
- package/dist/cjs/react/web/ui/Bridge/payment-selection/FiatProviderSelection.js +2 -4
- package/dist/cjs/react/web/ui/Bridge/payment-selection/FiatProviderSelection.js.map +1 -1
- package/dist/cjs/react/web/ui/Bridge/payment-selection/PaymentSelection.js +1 -1
- package/dist/cjs/react/web/ui/Bridge/payment-selection/PaymentSelection.js.map +1 -1
- package/dist/cjs/react/web/ui/Bridge/payment-selection/TokenSelection.js +6 -5
- package/dist/cjs/react/web/ui/Bridge/payment-selection/TokenSelection.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/locale/getConnectLocale.js +3 -0
- package/dist/cjs/react/web/ui/ConnectWallet/locale/getConnectLocale.js.map +1 -1
- package/dist/cjs/react/web/ui/ConnectWallet/locale/zh.js +120 -0
- package/dist/cjs/react/web/ui/ConnectWallet/locale/zh.js.map +1 -0
- package/dist/cjs/react/web/wallets/injected/locale/getInjectedWalletLocale.js +2 -0
- package/dist/cjs/react/web/wallets/injected/locale/getInjectedWalletLocale.js.map +1 -1
- package/dist/cjs/react/web/wallets/injected/locale/zh.js +27 -0
- package/dist/cjs/react/web/wallets/injected/locale/zh.js.map +1 -0
- package/dist/cjs/react/web/wallets/shared/locale/getConnectLocale.js +2 -0
- package/dist/cjs/react/web/wallets/shared/locale/getConnectLocale.js.map +1 -1
- package/dist/cjs/react/web/wallets/shared/locale/zh.js +59 -0
- package/dist/cjs/react/web/wallets/shared/locale/zh.js.map +1 -0
- package/dist/cjs/react/web/wallets/smartWallet/locale/getSmartWalletLocale.js +2 -0
- package/dist/cjs/react/web/wallets/smartWallet/locale/getSmartWalletLocale.js.map +1 -1
- package/dist/cjs/react/web/wallets/smartWallet/locale/zh.js +13 -0
- package/dist/cjs/react/web/wallets/smartWallet/locale/zh.js.map +1 -0
- package/dist/cjs/version.js +1 -1
- package/dist/esm/react/core/hooks/usePaymentMethods.js +8 -16
- package/dist/esm/react/core/hooks/usePaymentMethods.js.map +1 -1
- package/dist/esm/react/web/ui/Bridge/BridgeOrchestrator.js +1 -0
- package/dist/esm/react/web/ui/Bridge/BridgeOrchestrator.js.map +1 -1
- package/dist/esm/react/web/ui/Bridge/BuyWidget.js +25 -2
- package/dist/esm/react/web/ui/Bridge/BuyWidget.js.map +1 -1
- package/dist/esm/react/web/ui/Bridge/CheckoutWidget.js +39 -1
- package/dist/esm/react/web/ui/Bridge/CheckoutWidget.js.map +1 -1
- package/dist/esm/react/web/ui/Bridge/TransactionWidget.js +24 -0
- package/dist/esm/react/web/ui/Bridge/TransactionWidget.js.map +1 -1
- package/dist/esm/react/web/ui/Bridge/payment-selection/FiatProviderSelection.js +2 -4
- package/dist/esm/react/web/ui/Bridge/payment-selection/FiatProviderSelection.js.map +1 -1
- package/dist/esm/react/web/ui/Bridge/payment-selection/PaymentSelection.js +1 -1
- package/dist/esm/react/web/ui/Bridge/payment-selection/PaymentSelection.js.map +1 -1
- package/dist/esm/react/web/ui/Bridge/payment-selection/TokenSelection.js +7 -6
- package/dist/esm/react/web/ui/Bridge/payment-selection/TokenSelection.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/locale/getConnectLocale.js +3 -0
- package/dist/esm/react/web/ui/ConnectWallet/locale/getConnectLocale.js.map +1 -1
- package/dist/esm/react/web/ui/ConnectWallet/locale/zh.js +118 -0
- package/dist/esm/react/web/ui/ConnectWallet/locale/zh.js.map +1 -0
- package/dist/esm/react/web/wallets/injected/locale/getInjectedWalletLocale.js +2 -0
- package/dist/esm/react/web/wallets/injected/locale/getInjectedWalletLocale.js.map +1 -1
- package/dist/esm/react/web/wallets/injected/locale/zh.js +25 -0
- package/dist/esm/react/web/wallets/injected/locale/zh.js.map +1 -0
- package/dist/esm/react/web/wallets/shared/locale/getConnectLocale.js +2 -0
- package/dist/esm/react/web/wallets/shared/locale/getConnectLocale.js.map +1 -1
- package/dist/esm/react/web/wallets/shared/locale/zh.js +57 -0
- package/dist/esm/react/web/wallets/shared/locale/zh.js.map +1 -0
- package/dist/esm/react/web/wallets/smartWallet/locale/getSmartWalletLocale.js +2 -0
- package/dist/esm/react/web/wallets/smartWallet/locale/getSmartWalletLocale.js.map +1 -1
- package/dist/esm/react/web/wallets/smartWallet/locale/zh.js +11 -0
- package/dist/esm/react/web/wallets/smartWallet/locale/zh.js.map +1 -0
- package/dist/esm/version.js +1 -1
- package/dist/types/bridge/Routes.d.ts +4 -1
- package/dist/types/bridge/Routes.d.ts.map +1 -1
- package/dist/types/react/core/hooks/usePaymentMethods.d.ts.map +1 -1
- package/dist/types/react/web/ui/Bridge/BridgeOrchestrator.d.ts.map +1 -1
- package/dist/types/react/web/ui/Bridge/BuyWidget.d.ts +28 -2
- package/dist/types/react/web/ui/Bridge/BuyWidget.d.ts.map +1 -1
- package/dist/types/react/web/ui/Bridge/CheckoutWidget.d.ts +42 -1
- package/dist/types/react/web/ui/Bridge/CheckoutWidget.d.ts.map +1 -1
- package/dist/types/react/web/ui/Bridge/TransactionWidget.d.ts +27 -0
- package/dist/types/react/web/ui/Bridge/TransactionWidget.d.ts.map +1 -1
- package/dist/types/react/web/ui/Bridge/payment-selection/FiatProviderSelection.d.ts.map +1 -1
- package/dist/types/react/web/ui/Bridge/payment-selection/PaymentSelection.d.ts.map +1 -1
- package/dist/types/react/web/ui/Bridge/payment-selection/TokenSelection.d.ts +3 -1
- package/dist/types/react/web/ui/Bridge/payment-selection/TokenSelection.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/locale/getConnectLocale.d.ts.map +1 -1
- package/dist/types/react/web/ui/ConnectWallet/locale/zh.d.ts +4 -0
- package/dist/types/react/web/ui/ConnectWallet/locale/zh.d.ts.map +1 -0
- package/dist/types/react/web/ui/types.d.ts +1 -1
- package/dist/types/react/web/ui/types.d.ts.map +1 -1
- package/dist/types/react/web/wallets/injected/locale/getInjectedWalletLocale.d.ts.map +1 -1
- package/dist/types/react/web/wallets/injected/locale/zh.d.ts +7 -0
- package/dist/types/react/web/wallets/injected/locale/zh.d.ts.map +1 -0
- package/dist/types/react/web/wallets/shared/locale/getConnectLocale.d.ts.map +1 -1
- package/dist/types/react/web/wallets/shared/locale/zh.d.ts +58 -0
- package/dist/types/react/web/wallets/shared/locale/zh.d.ts.map +1 -0
- package/dist/types/react/web/wallets/smartWallet/locale/getSmartWalletLocale.d.ts.map +1 -1
- package/dist/types/react/web/wallets/smartWallet/locale/zh.d.ts +4 -0
- package/dist/types/react/web/wallets/smartWallet/locale/zh.d.ts.map +1 -0
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/bridge/Routes.ts +4 -1
- package/src/react/core/hooks/usePaymentMethods.ts +13 -31
- package/src/react/web/ui/Bridge/BridgeOrchestrator.tsx +1 -0
- package/src/react/web/ui/Bridge/BuyWidget.tsx +28 -2
- package/src/react/web/ui/Bridge/CheckoutWidget.tsx +42 -1
- package/src/react/web/ui/Bridge/TransactionWidget.tsx +27 -0
- package/src/react/web/ui/Bridge/payment-selection/FiatProviderSelection.tsx +5 -6
- package/src/react/web/ui/Bridge/payment-selection/PaymentSelection.tsx +1 -0
- package/src/react/web/ui/Bridge/payment-selection/TokenSelection.tsx +31 -17
- package/src/react/web/ui/ConnectWallet/locale/getConnectLocale.ts +3 -0
- package/src/react/web/ui/ConnectWallet/locale/zh.ts +121 -0
- package/src/react/web/ui/types.ts +2 -1
- package/src/react/web/wallets/injected/locale/getInjectedWalletLocale.ts +2 -0
- package/src/react/web/wallets/injected/locale/zh.ts +27 -0
- package/src/react/web/wallets/shared/locale/getConnectLocale.ts +2 -0
- package/src/react/web/wallets/shared/locale/zh.ts +58 -0
- package/src/react/web/wallets/smartWallet/locale/getSmartWalletLocale.ts +2 -0
- package/src/react/web/wallets/smartWallet/locale/zh.ts +13 -0
- package/src/version.ts +1 -1
@@ -1,10 +1,14 @@
|
|
1
1
|
"use client";
|
2
2
|
import type { Token } from "../../../../../bridge/types/Token.js";
|
3
3
|
import type { ThirdwebClient } from "../../../../../client/client.js";
|
4
|
+
import type { SupportedFiatCurrency } from "../../../../../pay/convert/type.js";
|
4
5
|
import { useCustomTheme } from "../../../../core/design-system/CustomThemeProvider.js";
|
5
6
|
import { radius, spacing } from "../../../../core/design-system/index.js";
|
6
7
|
import type { PaymentMethod } from "../../../../core/machines/paymentMachine.js";
|
7
|
-
import {
|
8
|
+
import {
|
9
|
+
formatCurrencyAmount,
|
10
|
+
formatTokenAmount,
|
11
|
+
} from "../../ConnectWallet/screens/formatTokenBalance.js";
|
8
12
|
import { Container } from "../../components/basic.js";
|
9
13
|
import { Button } from "../../components/buttons.js";
|
10
14
|
import { Skeleton } from "../../components/Skeleton.js";
|
@@ -21,6 +25,7 @@ interface TokenSelectionProps {
|
|
21
25
|
destinationToken: Token;
|
22
26
|
destinationAmount: bigint;
|
23
27
|
feePayer?: "sender" | "receiver";
|
28
|
+
currency?: SupportedFiatCurrency;
|
24
29
|
}
|
25
30
|
|
26
31
|
// Individual payment method token row component
|
@@ -31,12 +36,14 @@ interface PaymentMethodTokenRowProps {
|
|
31
36
|
client: ThirdwebClient;
|
32
37
|
onPaymentMethodSelected: (paymentMethod: PaymentMethod) => void;
|
33
38
|
feePayer?: "sender" | "receiver";
|
39
|
+
currency?: SupportedFiatCurrency;
|
34
40
|
}
|
35
41
|
|
36
42
|
function PaymentMethodTokenRow({
|
37
43
|
paymentMethod,
|
38
44
|
client,
|
39
45
|
onPaymentMethodSelected,
|
46
|
+
currency,
|
40
47
|
}: PaymentMethodTokenRowProps) {
|
41
48
|
const theme = useCustomTheme();
|
42
49
|
|
@@ -44,6 +51,7 @@ function PaymentMethodTokenRow({
|
|
44
51
|
const hasEnoughBalance = displayOriginAmount
|
45
52
|
? paymentMethod.balance >= displayOriginAmount
|
46
53
|
: false;
|
54
|
+
const currencyPrice = paymentMethod.originToken.prices[currency || "USD"];
|
47
55
|
|
48
56
|
return (
|
49
57
|
<Button
|
@@ -79,26 +87,30 @@ function PaymentMethodTokenRow({
|
|
79
87
|
gap="3xs"
|
80
88
|
style={{ alignItems: "flex-end", flex: 1 }}
|
81
89
|
>
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
90
|
+
{currencyPrice && (
|
91
|
+
<Text
|
92
|
+
color="primaryText"
|
93
|
+
size="sm"
|
94
|
+
style={{ fontWeight: 600, textWrap: "nowrap" }}
|
95
|
+
>
|
96
|
+
{formatCurrencyAmount(
|
97
|
+
currency || "USD",
|
98
|
+
Number(
|
99
|
+
formatTokenAmount(
|
100
|
+
paymentMethod.balance,
|
101
|
+
paymentMethod.originToken.decimals,
|
102
|
+
),
|
103
|
+
) * currencyPrice,
|
104
|
+
)}
|
96
105
|
</Text>
|
106
|
+
)}
|
107
|
+
<Container flex="row" gap="3xs">
|
97
108
|
<Text color={hasEnoughBalance ? "success" : "danger"} size="xs">
|
98
109
|
{formatTokenAmount(
|
99
110
|
paymentMethod.balance,
|
100
111
|
paymentMethod.originToken.decimals,
|
101
|
-
)}
|
112
|
+
)}{" "}
|
113
|
+
{paymentMethod.originToken.symbol}
|
102
114
|
</Text>
|
103
115
|
</Container>
|
104
116
|
</Container>
|
@@ -116,6 +128,7 @@ export function TokenSelection({
|
|
116
128
|
destinationToken,
|
117
129
|
destinationAmount,
|
118
130
|
feePayer,
|
131
|
+
currency,
|
119
132
|
}: TokenSelectionProps) {
|
120
133
|
const theme = useCustomTheme();
|
121
134
|
|
@@ -210,7 +223,7 @@ export function TokenSelection({
|
|
210
223
|
return (
|
211
224
|
<>
|
212
225
|
<Text color="primaryText" size="md">
|
213
|
-
|
226
|
+
Your token balances
|
214
227
|
</Text>
|
215
228
|
<Spacer y="sm" />
|
216
229
|
<Container
|
@@ -233,6 +246,7 @@ export function TokenSelection({
|
|
233
246
|
key={`${method.originToken.address}-${method.originToken.chainId}`}
|
234
247
|
onPaymentMethodSelected={onPaymentMethodSelected}
|
235
248
|
paymentMethod={method}
|
249
|
+
currency={currency}
|
236
250
|
/>
|
237
251
|
))}
|
238
252
|
</Container>
|
@@ -30,6 +30,9 @@ export async function getConnectLocale(localeId: LocaleId) {
|
|
30
30
|
case "pt_BR": {
|
31
31
|
return (await import("./br.js")).default;
|
32
32
|
}
|
33
|
+
case "zh_CN": {
|
34
|
+
return (await import("./zh.js")).default;
|
35
|
+
}
|
33
36
|
default: {
|
34
37
|
return (await import("./en.js")).default;
|
35
38
|
}
|
@@ -0,0 +1,121 @@
|
|
1
|
+
import type { ConnectLocale } from "./types.js";
|
2
|
+
|
3
|
+
const connectLocaleZh: ConnectLocale = {
|
4
|
+
agreement: {
|
5
|
+
and: "和",
|
6
|
+
prefix: "连接即表示您同意",
|
7
|
+
privacyPolicy: "隐私政策",
|
8
|
+
termsOfService: "服务条款",
|
9
|
+
},
|
10
|
+
backupWallet: "备份钱包",
|
11
|
+
buy: "购买",
|
12
|
+
confirmInWallet: "在钱包中确认",
|
13
|
+
connectAWallet: "连接钱包",
|
14
|
+
connectedToSmartWallet: "智能钱包",
|
15
|
+
connecting: "连接中",
|
16
|
+
continueAsGuest: "以访客身份继续",
|
17
|
+
copyAddress: "复制地址",
|
18
|
+
currentNetwork: "当前网络",
|
19
|
+
defaultButtonTitle: "连接",
|
20
|
+
defaultModalTitle: "登录",
|
21
|
+
disconnectWallet: "断开钱包连接",
|
22
|
+
getStarted: "开始使用",
|
23
|
+
goBackButton: "返回",
|
24
|
+
guest: "访客",
|
25
|
+
guestWalletWarning:
|
26
|
+
"这是一个临时访客钱包。如果您不想失去访问权限,请备份钱包",
|
27
|
+
id: "zh_CN",
|
28
|
+
installed: "已安装",
|
29
|
+
manageWallet: {
|
30
|
+
connectAnApp: "连接应用",
|
31
|
+
exportPrivateKey: "导出私钥",
|
32
|
+
linkedProfiles: "已关联配置文件",
|
33
|
+
linkProfile: "关联配置文件",
|
34
|
+
title: "管理钱包",
|
35
|
+
},
|
36
|
+
networkSelector: {
|
37
|
+
addCustomNetwork: "添加自定义网络",
|
38
|
+
allNetworks: "全部",
|
39
|
+
categoryLabel: {
|
40
|
+
others: "所有网络",
|
41
|
+
popular: "热门",
|
42
|
+
recentlyUsed: "最近使用",
|
43
|
+
},
|
44
|
+
failedToSwitch: "网络切换失败",
|
45
|
+
inputPlaceholder: "搜索网络或链 ID",
|
46
|
+
loading: "加载中",
|
47
|
+
mainnets: "主网",
|
48
|
+
testnets: "测试网",
|
49
|
+
title: "选择网络",
|
50
|
+
},
|
51
|
+
newToWallets: "刚接触钱包?",
|
52
|
+
or: "或",
|
53
|
+
passkeys: {
|
54
|
+
linkPasskey: "添加通行密钥",
|
55
|
+
title: "通行密钥",
|
56
|
+
},
|
57
|
+
payTransactions: "法币交易",
|
58
|
+
personalWallet: "个人钱包",
|
59
|
+
receive: "接收",
|
60
|
+
receiveFundsScreen: {
|
61
|
+
instruction: "复制地址以向此钱包发送资金",
|
62
|
+
title: "接收资金",
|
63
|
+
},
|
64
|
+
recommended: "推荐",
|
65
|
+
requestTestnetFunds: "申请测试网资金",
|
66
|
+
send: "发送",
|
67
|
+
sendFundsScreen: {
|
68
|
+
amount: "金额",
|
69
|
+
insufficientFunds: "余额不足",
|
70
|
+
invalidAddress: "地址无效",
|
71
|
+
noTokensFound: "未找到代币",
|
72
|
+
searchToken: "搜索或粘贴代币地址",
|
73
|
+
selectTokenTitle: "选择代币",
|
74
|
+
sending: "发送中",
|
75
|
+
sendTo: "发送到",
|
76
|
+
submitButton: "发送",
|
77
|
+
successMessage: "交易成功",
|
78
|
+
title: "发送资金",
|
79
|
+
token: "代币",
|
80
|
+
transactionFailed: "交易失败",
|
81
|
+
transactionRejected: "交易被拒绝",
|
82
|
+
},
|
83
|
+
signatureScreen: {
|
84
|
+
instructionScreen: {
|
85
|
+
disconnectWallet: "断开钱包连接",
|
86
|
+
instruction: "请在您的钱包中签署消息请求以继续",
|
87
|
+
signInButton: "登录",
|
88
|
+
title: "登录",
|
89
|
+
},
|
90
|
+
signingScreen: {
|
91
|
+
approveTransactionInSafe: "在 Safe 中批准交易",
|
92
|
+
failedToSignIn: "登录失败",
|
93
|
+
inProgress: "等待确认",
|
94
|
+
prompt: "在您的钱包中签署签名请求",
|
95
|
+
promptForSafe: "在您的钱包中签署签名请求并在 Safe 中批准交易",
|
96
|
+
title: "登录中",
|
97
|
+
tryAgain: "重试",
|
98
|
+
},
|
99
|
+
},
|
100
|
+
signIn: "登录",
|
101
|
+
smartWallet: "智能钱包",
|
102
|
+
switchAccount: "切换账户",
|
103
|
+
switchingNetwork: "网络切换中",
|
104
|
+
switchNetwork: "切换网络",
|
105
|
+
switchTo: "切换到",
|
106
|
+
transactions: "交易",
|
107
|
+
viewAllTransactions: "查看所有交易",
|
108
|
+
viewFunds: {
|
109
|
+
title: "查看资产",
|
110
|
+
viewAssets: "查看资产",
|
111
|
+
viewNFTs: "查看NFT资产",
|
112
|
+
viewTokens: "查看代币",
|
113
|
+
},
|
114
|
+
walletTransactions: "钱包交易",
|
115
|
+
welcomeScreen: {
|
116
|
+
defaultSubtitle: "连接钱包以开始使用",
|
117
|
+
defaultTitle: "您通往去中心化世界的门户",
|
118
|
+
},
|
119
|
+
};
|
120
|
+
|
121
|
+
export default connectLocaleZh;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import type { InjectedWalletLocale } from "./types.js";
|
2
|
+
|
3
|
+
/**
|
4
|
+
* @internal
|
5
|
+
*/
|
6
|
+
const injectedWalletLocaleZh = (wallet: string): InjectedWalletLocale => ({
|
7
|
+
connectionScreen: {
|
8
|
+
failed: "连接失败",
|
9
|
+
inProgress: "等待用户确认",
|
10
|
+
instruction: `请在 ${wallet} 中接受连接请求`,
|
11
|
+
retry: "重试",
|
12
|
+
},
|
13
|
+
download: {
|
14
|
+
android: "从 Google Play 下载",
|
15
|
+
chrome: "下载 Chrome 扩展",
|
16
|
+
iOS: "从 App Store 下载",
|
17
|
+
},
|
18
|
+
getStartedLink: `没有 ${wallet}?`,
|
19
|
+
getStartedScreen: {
|
20
|
+
instruction: `扫描二维码下载 ${wallet} 应用`,
|
21
|
+
},
|
22
|
+
scanScreen: {
|
23
|
+
instruction: `用 ${wallet} 扫描二维码连接`,
|
24
|
+
},
|
25
|
+
});
|
26
|
+
|
27
|
+
export default injectedWalletLocaleZh;
|
@@ -0,0 +1,58 @@
|
|
1
|
+
import type { InAppWalletLocale } from "./types.js";
|
2
|
+
|
3
|
+
export default {
|
4
|
+
createPassword: {
|
5
|
+
confirmation: "我已保存密码",
|
6
|
+
failedToSetPassword: "设置密码失败",
|
7
|
+
inputPlaceholder: "输入密码",
|
8
|
+
instruction: "为账户设置密码。使用新设备登录时需要此密码。",
|
9
|
+
saveInstruction: "请妥善保存密码",
|
10
|
+
submitButton: "设置密码",
|
11
|
+
title: "创建密码",
|
12
|
+
},
|
13
|
+
emailLoginScreen: {
|
14
|
+
enterCodeSendTo: "输入发送至您邮箱的验证码",
|
15
|
+
enterRecoveryCode: "输入您首次注册时邮箱收到的恢复码",
|
16
|
+
failedToSendCode: "发送验证码失败",
|
17
|
+
invalidCode: "验证码无效",
|
18
|
+
invalidCodeOrRecoveryCode: "验证码或恢复码无效",
|
19
|
+
newDeviceDetected: "检测到新设备",
|
20
|
+
resendCode: "重新发送验证码",
|
21
|
+
sendingCode: "正在发送验证码",
|
22
|
+
title: "登录",
|
23
|
+
verify: "验证",
|
24
|
+
},
|
25
|
+
emailPlaceholder: "邮箱地址",
|
26
|
+
emailRequired: "请输入邮箱地址",
|
27
|
+
enterPassword: {
|
28
|
+
inputPlaceholder: "输入您的密码",
|
29
|
+
instruction: "输入您账户的密码",
|
30
|
+
submitButton: "验证",
|
31
|
+
title: "输入密码",
|
32
|
+
wrongPassword: "密码错误",
|
33
|
+
},
|
34
|
+
invalidEmail: "邮箱地址无效",
|
35
|
+
invalidPhone: "手机号码无效",
|
36
|
+
linkWallet: "连接钱包",
|
37
|
+
loginAsGuest: "以访客身份继续",
|
38
|
+
maxAccountsExceeded: "账户数量已达上限。请联系应用开发者。",
|
39
|
+
or: "或",
|
40
|
+
passkey: "通行密钥",
|
41
|
+
phonePlaceholder: "手机号码",
|
42
|
+
phoneRequired: "手机号码为必填项",
|
43
|
+
signIn: "登录",
|
44
|
+
signInWithApple: "Apple",
|
45
|
+
signInWithDiscord: "Discord",
|
46
|
+
signInWithEmail: "邮箱登录",
|
47
|
+
signInWithFacebook: "Facebook",
|
48
|
+
signInWithGoogle: "Google",
|
49
|
+
signInWithPhone: "使用手机号登录",
|
50
|
+
signInWithWallet: "使用钱包登录",
|
51
|
+
socialLoginScreen: {
|
52
|
+
failed: "登录失败",
|
53
|
+
instruction: "请在弹窗中登录账户",
|
54
|
+
retry: "重试",
|
55
|
+
title: "登录",
|
56
|
+
},
|
57
|
+
submitEmail: "继续",
|
58
|
+
} satisfies InAppWalletLocale;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import type { SmartWalletLocale } from "./types.js";
|
2
|
+
|
3
|
+
const smartWalletLocalZh: SmartWalletLocale = {
|
4
|
+
connecting: "正在连接智能账户",
|
5
|
+
failedToConnect: "连接智能账户失败",
|
6
|
+
wrongNetworkScreen: {
|
7
|
+
failedToSwitch: "网络切换失败",
|
8
|
+
subtitle: "钱包未连接至所需网络",
|
9
|
+
title: "网络错误",
|
10
|
+
},
|
11
|
+
};
|
12
|
+
|
13
|
+
export default smartWalletLocalZh;
|
package/src/version.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const version = "5.105.
|
1
|
+
export const version = "5.105.32-nightly-c661a485d0fd74a6c6db424b2c0975e51c0dc5f4-20250812000352";
|