@lifi/widget 2.0.0-beta.11 → 2.0.0-beta.13
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/cjs/components/SwapInput/FormPriceHelperText.d.ts +6 -0
- package/cjs/components/SwapInput/FormPriceHelperText.js +11 -5
- package/cjs/components/SwapInput/SwapInput.d.ts +9 -1
- package/cjs/components/SwapInput/SwapInput.js +25 -9
- package/cjs/components/TokenList/TokenListItem.js +1 -1
- package/cjs/config/version.d.ts +1 -1
- package/cjs/config/version.js +1 -1
- package/cjs/hooks/useGasRecommendation.d.ts +1 -1
- package/cjs/hooks/useGasRecommendation.js +5 -0
- package/cjs/hooks/useTokens.js +21 -9
- package/cjs/i18n/id.json +24 -7
- package/cjs/i18n/it.json +38 -10
- package/cjs/i18n/pt.json +2 -2
- package/cjs/i18n/uk.json +2 -2
- package/cjs/i18n/vi.json +30 -5
- package/cjs/i18n/zh.json +26 -9
- package/cjs/types/events.d.ts +6 -6
- package/cjs/types/widget.d.ts +2 -1
- package/cjs/utils/format.d.ts +1 -1
- package/cjs/utils/format.js +13 -10
- package/components/SwapInput/FormPriceHelperText.d.ts +6 -0
- package/components/SwapInput/FormPriceHelperText.js +8 -3
- package/components/SwapInput/SwapInput.d.ts +9 -1
- package/components/SwapInput/SwapInput.js +26 -11
- package/components/TokenList/TokenListItem.js +1 -1
- package/config/version.d.ts +1 -1
- package/config/version.js +1 -1
- package/hooks/useGasRecommendation.d.ts +1 -1
- package/hooks/useGasRecommendation.js +5 -0
- package/hooks/useTokens.js +21 -9
- package/i18n/id.json +24 -7
- package/i18n/it.json +38 -10
- package/i18n/pt.json +2 -2
- package/i18n/uk.json +2 -2
- package/i18n/vi.json +30 -5
- package/i18n/zh.json +26 -9
- package/package.json +3 -3
- package/tsconfig.cjs.tsbuildinfo +1 -1
- package/types/events.d.ts +6 -6
- package/types/widget.d.ts +2 -1
- package/utils/format.d.ts +1 -1
- package/utils/format.js +13 -10
- package/cjs/components/SwapInput/FitInputText.d.ts +0 -3
- package/cjs/components/SwapInput/FitInputText.js +0 -19
- package/components/SwapInput/FitInputText.d.ts +0 -3
- package/components/SwapInput/FitInputText.js +0 -16
package/i18n/id.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"button": {
|
|
3
3
|
"auto": "Otomatis",
|
|
4
|
+
"buy": "Beli",
|
|
5
|
+
"buyNow": "Beli sekarang",
|
|
4
6
|
"cancel": "Batal",
|
|
5
7
|
"connectWallet": "Hubungkan dompet",
|
|
6
8
|
"contactSupport": "Kontak bantuan",
|
|
@@ -23,6 +25,7 @@
|
|
|
23
25
|
"resetSettings": "Setel ulang pengaturan",
|
|
24
26
|
"restartSwap": "Mengulang kembali swap",
|
|
25
27
|
"reviewGasSwap": "Tinjau gas swap",
|
|
28
|
+
"reviewPurchase": "Tinjau pembelian",
|
|
26
29
|
"reviewSwap": "Tinjau swap",
|
|
27
30
|
"seeDetails": "Lihat rinciannya",
|
|
28
31
|
"showAll": "Tampilkan semua",
|
|
@@ -39,10 +42,14 @@
|
|
|
39
42
|
},
|
|
40
43
|
"header": {
|
|
41
44
|
"activeSwaps": "Swap aktif",
|
|
45
|
+
"bridge": "Bridge",
|
|
42
46
|
"checkout": "Checkout",
|
|
43
47
|
"from": "Swap dari",
|
|
44
48
|
"gas": "Gas",
|
|
45
49
|
"gasSwap": "Gas swap",
|
|
50
|
+
"payWith": "Bayar dengan",
|
|
51
|
+
"purchase": "Pembelian",
|
|
52
|
+
"purchaseDetails": "Detail pembelian",
|
|
46
53
|
"routes": "Anda mendapatkan",
|
|
47
54
|
"selectChain": "Pilih jaringan",
|
|
48
55
|
"selectWallet": "Pilih dompet",
|
|
@@ -75,6 +82,8 @@
|
|
|
75
82
|
"currentAmount": "Jumlah saat ini",
|
|
76
83
|
"error": {
|
|
77
84
|
"message": {
|
|
85
|
+
"allowanceRequired": "Jumlah transfer untuk {{tokenSymbol}} melebihi jatah Anda saat ini. Tingkatkan jatah Anda dan coba lagi.",
|
|
86
|
+
"insufficientFunds": "Anda tidak memiliki cukup gas untuk menutup biaya transaksi.",
|
|
78
87
|
"slippageThreshold": "Slippage lebih besar dari ambang batas yang ditentukan. Silakan minta rute baru untuk mendapatkan penawaran baru.",
|
|
79
88
|
"transactionFailed": "Silakan periksa block explorer untuk informasi lebih lanjut.",
|
|
80
89
|
"transactionNotSent": "Transaksi tidak terkirim. {{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}} di {{chainName}} tetap berada di dompet Anda.",
|
|
@@ -82,10 +91,12 @@
|
|
|
82
91
|
"unknown": "Silakan coba lagi atau hubungi bagian dukungan."
|
|
83
92
|
},
|
|
84
93
|
"title": {
|
|
94
|
+
"allowanceRequired": "Saldo tidak mencukupi",
|
|
85
95
|
"balanceIsTooLow": "Saldo Anda terlalu sedikit",
|
|
86
96
|
"chainSwitch": "Penggantian jaringan diperlukan",
|
|
87
97
|
"failed": "Pertukaran gagal",
|
|
88
98
|
"gasLimitIsTooLow": "Gas limit terlalu rendah",
|
|
99
|
+
"insufficientFunds": "Dana tidak mencukupi",
|
|
89
100
|
"slippageNotMet": "Kondisi slippage tidak terpenuhi",
|
|
90
101
|
"transactionCanceled": "Transaksi dibatalkan",
|
|
91
102
|
"transactionFailed": "Transaksi gagal",
|
|
@@ -108,8 +119,8 @@
|
|
|
108
119
|
"inProgress": "dalam proses",
|
|
109
120
|
"insurance": {
|
|
110
121
|
"bridgeExploits": "Malfungsi jembatan, peretasan, atau eksploitasi",
|
|
111
|
-
"insure": "Asuransikan
|
|
112
|
-
"insured": "Anda telah mengasuransikan
|
|
122
|
+
"insure": "Asuransikan <strong>{{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}}</strong> dalam perjalanan.",
|
|
123
|
+
"insured": "Anda telah mengasuransikan <strong>{{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}}</strong> dalam perjalanan:",
|
|
113
124
|
"slippageError": "Kesalahan dalam slippage untuk token yang diterima"
|
|
114
125
|
},
|
|
115
126
|
"info": {
|
|
@@ -131,7 +142,6 @@
|
|
|
131
142
|
"onChain": "di {{chainName}}",
|
|
132
143
|
"otherTokens": "Token lainnya",
|
|
133
144
|
"ownedBy": "Dimiliki oleh",
|
|
134
|
-
"payWith": "Bayar dengan",
|
|
135
145
|
"process": {
|
|
136
146
|
"crossChain": {
|
|
137
147
|
"actionRequired": "Mohon konfirmasi transaksi",
|
|
@@ -139,6 +149,9 @@
|
|
|
139
149
|
"pending": "Menunggu transaksi bridge",
|
|
140
150
|
"started": "Mempersiapkan transaksi bridge"
|
|
141
151
|
},
|
|
152
|
+
"nft": {
|
|
153
|
+
"done": "NFT dibeli"
|
|
154
|
+
},
|
|
142
155
|
"receivingChain": {
|
|
143
156
|
"done": "Bridge selesai",
|
|
144
157
|
"partial": "Bridge sebagian selesai",
|
|
@@ -165,24 +178,27 @@
|
|
|
165
178
|
"rateChange": "Perubahan rate",
|
|
166
179
|
"receiving": "Menerima",
|
|
167
180
|
"refuelStepDetails": "Dapatkan gas melalui {{tool}}",
|
|
168
|
-
"
|
|
169
|
-
"selectChain": "Jaringan",
|
|
181
|
+
"selectChain": "Pilih jaringan",
|
|
170
182
|
"selectChainAndToken": "Pilih jaringan dan token",
|
|
171
|
-
"selectToken": "
|
|
183
|
+
"selectToken": "Pilih token",
|
|
172
184
|
"sendToAddress": "Kirim ke {{address}}",
|
|
173
185
|
"sendToWallet": "Kirim ke dompet berbeda",
|
|
174
186
|
"sentToAddress": "Dikirim ke {{address}}",
|
|
175
187
|
"stepBridge": "Bridge",
|
|
188
|
+
"stepBridgeAndBuy": "Bridge dan beli",
|
|
176
189
|
"stepDetails": "{{tool}} melalui LI.FI",
|
|
177
190
|
"stepSwap": "Swap",
|
|
178
191
|
"stepSwapAndBridge": "Swap dan bridge",
|
|
192
|
+
"stepSwapAndBuy": "Swap dan beli",
|
|
179
193
|
"success": {
|
|
180
194
|
"message": {
|
|
181
195
|
"swapPartiallySuccessful": "Kami telah mencoba menyelesaikan pertukaran, tetapi {{tool}} kehabisan likuiditas untuk token {{tokenSymbol}}.",
|
|
196
|
+
"purchaseSuccessful": "Anda sekarang memiliki {{assetName}} di dompet {{walletAddress}} di chain {{chainName}}.",
|
|
182
197
|
"swapSuccessful": "Sekarang ada {{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}} di dompet {{walletAddress}} pada jaringan {{chainName}}."
|
|
183
198
|
},
|
|
184
199
|
"title": {
|
|
185
200
|
"gasSwapSuccessful": "Pertukaran gas berhasil",
|
|
201
|
+
"purchaseSuccessful": "Pembelian berhasil",
|
|
186
202
|
"refundIssued": "Pengembalian dana diterbitkan",
|
|
187
203
|
"swapPartiallySuccessful": "Swap sebagian berhasil",
|
|
188
204
|
"swapSuccessful": "Swap berhasil"
|
|
@@ -203,7 +219,7 @@
|
|
|
203
219
|
"to": "Kepada",
|
|
204
220
|
"tokenOnChain": "{{tokenSymbol}} di {{chainName}}",
|
|
205
221
|
"tokenOnChainAmount": "{{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}} di {{chainName}}",
|
|
206
|
-
"tokenSearch": "Cari token",
|
|
222
|
+
"tokenSearch": "Cari berdasarkan nama atau alamat token",
|
|
207
223
|
"valueLoss": "Kehilangan nilai",
|
|
208
224
|
"walletAddressOrEns": "Alamat dompet atau nama ENS",
|
|
209
225
|
"warning": {
|
|
@@ -237,6 +253,7 @@
|
|
|
237
253
|
},
|
|
238
254
|
"numberOfSteps": "Sejumlah langkah swap. Setiap langkah dapat berisi 1-2 transaksi yang memerlukan tanda tangan.",
|
|
239
255
|
"progressToNextUpdate": "Data yang ditampilkan akan disegarkan secara otomatis setelah {{value}} detik. Klik di sini untuk memperbarui secara manual.",
|
|
256
|
+
"recommended": "Rute murah yang menyeimbangkan kerumitan dan kemudahan penggunaan.",
|
|
240
257
|
"settingsModified": "Pengaturan (diubah)"
|
|
241
258
|
},
|
|
242
259
|
"wallet": {
|
package/i18n/it.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"button": {
|
|
3
3
|
"auto": "Auto",
|
|
4
|
+
"buy": "Acquista",
|
|
5
|
+
"buyNow": "Acquista subito",
|
|
4
6
|
"cancel": "Annulla",
|
|
5
7
|
"connectWallet": "Collega il portafoglio",
|
|
6
8
|
"contactSupport": "Contatta l'assistenza",
|
|
@@ -12,6 +14,7 @@
|
|
|
12
14
|
"done": "Fatto",
|
|
13
15
|
"getGas": "Ottieni gas",
|
|
14
16
|
"hide": "Nascondi",
|
|
17
|
+
"learnMore": "Ulteriori informazioni",
|
|
15
18
|
"lifiSwap": "Scambio LI.FI",
|
|
16
19
|
"light": "Chiaro",
|
|
17
20
|
"max": "massimo",
|
|
@@ -22,6 +25,7 @@
|
|
|
22
25
|
"resetSettings": "Ripristina impostazioni",
|
|
23
26
|
"restartSwap": "Riavvia lo scambio",
|
|
24
27
|
"reviewGasSwap": "Rivedi lo scambio di gas",
|
|
28
|
+
"reviewPurchase": "Rivedi acquisto",
|
|
25
29
|
"reviewSwap": "Rivedi lo scambio",
|
|
26
30
|
"seeDetails": "Vedi dettagli",
|
|
27
31
|
"showAll": "Mostra tutto",
|
|
@@ -29,6 +33,7 @@
|
|
|
29
33
|
"startSwap": "Avvia lo scambio",
|
|
30
34
|
"swap": "Scambio",
|
|
31
35
|
"tryAgain": "Riprova",
|
|
36
|
+
"viewCoverage": "Vedi copertura",
|
|
32
37
|
"viewOnExplorer": "Visualizza sull'Explorer"
|
|
33
38
|
},
|
|
34
39
|
"format": {
|
|
@@ -37,10 +42,14 @@
|
|
|
37
42
|
},
|
|
38
43
|
"header": {
|
|
39
44
|
"activeSwaps": "Scambi attivi",
|
|
45
|
+
"bridge": "Bridge",
|
|
40
46
|
"checkout": "Checkout",
|
|
41
47
|
"from": "Scambia da",
|
|
42
48
|
"gas": "Gas",
|
|
43
49
|
"gasSwap": "Scambio di gas",
|
|
50
|
+
"payWith": "Paga con",
|
|
51
|
+
"purchase": "Acquista",
|
|
52
|
+
"purchaseDetails": "Dettagli di acquisto",
|
|
44
53
|
"routes": "Ottieni",
|
|
45
54
|
"selectChain": "Seleziona la chain",
|
|
46
55
|
"selectWallet": "Seleziona il tuo portafoglio",
|
|
@@ -73,6 +82,8 @@
|
|
|
73
82
|
"currentAmount": "Quantità corrente",
|
|
74
83
|
"error": {
|
|
75
84
|
"message": {
|
|
85
|
+
"allowanceRequired": "L'importo di {{tokenSymbol}} supera la tua quota massima permessa. Aumenta la quota e riprova.",
|
|
86
|
+
"insufficientFunds": "Non hai abbastanza gas per coprire il costo della transazione.",
|
|
76
87
|
"slippageThreshold": "Lo slittamento di prezzo è più alto della soglia definita. Si prega di richiedere una nuova route per ottenere una quota aggiornata.",
|
|
77
88
|
"transactionFailed": "Per ulteriori informazioni, consultare il block explorer.",
|
|
78
89
|
"transactionNotSent": "La transazione non è stata inviata. {{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}} su {{chainName}} sono ancora presenti nel tuo portafoglio.",
|
|
@@ -80,10 +91,12 @@
|
|
|
80
91
|
"unknown": "Riprova o contatta il nostro supporto."
|
|
81
92
|
},
|
|
82
93
|
"title": {
|
|
94
|
+
"allowanceRequired": "Quota massima insufficiente",
|
|
83
95
|
"balanceIsTooLow": "Il saldo è troppo basso",
|
|
84
96
|
"chainSwitch": "È necessario cambiare la chain",
|
|
85
97
|
"failed": "Scambio fallito",
|
|
86
98
|
"gasLimitIsTooLow": "Limite di gas troppo basso",
|
|
99
|
+
"insufficientFunds": "Fondi insufficienti",
|
|
87
100
|
"slippageNotMet": "Condizioni di slittamento di prezzo non rispettate",
|
|
88
101
|
"transactionCanceled": "Transazione cancellata",
|
|
89
102
|
"transactionFailed": "Transazione fallita",
|
|
@@ -104,6 +117,12 @@
|
|
|
104
117
|
"gasFeeEstimated": "tassa di gas stimata",
|
|
105
118
|
"gasFeePaid": "tassa di gas pagata",
|
|
106
119
|
"inProgress": "in corso",
|
|
120
|
+
"insurance": {
|
|
121
|
+
"bridgeExploits": "Malfunzionamenti, hack o exploit di bridge",
|
|
122
|
+
"insure": "Assicura <strong>{{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}}</strong> in transito.",
|
|
123
|
+
"insured": "Hai assicurato <strong>{{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}}</strong> in transito:",
|
|
124
|
+
"slippageError": "Errore nello slippage dei token ricevuti"
|
|
125
|
+
},
|
|
107
126
|
"info": {
|
|
108
127
|
"message": {
|
|
109
128
|
"autoRefuel": "Livello basso di gas su {{chainName}}. Continuando avrai abbastanza gas per completare lo scambio.",
|
|
@@ -123,7 +142,6 @@
|
|
|
123
142
|
"onChain": "su {{chainName}}",
|
|
124
143
|
"otherTokens": "Altri token",
|
|
125
144
|
"ownedBy": "Di proprietà di",
|
|
126
|
-
"payWith": "Paga con",
|
|
127
145
|
"process": {
|
|
128
146
|
"crossChain": {
|
|
129
147
|
"actionRequired": "Si prega di firmare la transazione",
|
|
@@ -131,6 +149,9 @@
|
|
|
131
149
|
"pending": "In attesa della transazione di bridge",
|
|
132
150
|
"started": "Preparazione della transazione di bridge"
|
|
133
151
|
},
|
|
152
|
+
"nft": {
|
|
153
|
+
"done": "NFT acquistati"
|
|
154
|
+
},
|
|
134
155
|
"receivingChain": {
|
|
135
156
|
"done": "Bridge completato",
|
|
136
157
|
"partial": "Bridge parzialmente completato",
|
|
@@ -157,24 +178,27 @@
|
|
|
157
178
|
"rateChange": "Tasso di scambio",
|
|
158
179
|
"receiving": "In ricezione",
|
|
159
180
|
"refuelStepDetails": "Ottieni gas tramite {{tool}}",
|
|
160
|
-
"
|
|
161
|
-
"selectChain": "Chain",
|
|
181
|
+
"selectChain": "Seleziona la chain",
|
|
162
182
|
"selectChainAndToken": "Selezionare la chain ed il token",
|
|
163
|
-
"selectToken": "
|
|
183
|
+
"selectToken": "Seleziona un token",
|
|
164
184
|
"sendToAddress": "Invia a {{address}}",
|
|
165
185
|
"sendToWallet": "Invia ad un altro portafoglio",
|
|
166
186
|
"sentToAddress": "Inviati a {{address}}",
|
|
167
187
|
"stepBridge": "Bridge",
|
|
188
|
+
"stepBridgeAndBuy": "Trasferisci e acquista",
|
|
168
189
|
"stepDetails": "{{tool}} tramite LI.FI",
|
|
169
190
|
"stepSwap": "Scambio",
|
|
170
191
|
"stepSwapAndBridge": "Scambia e bridge",
|
|
192
|
+
"stepSwapAndBuy": "Scambia e acquista",
|
|
171
193
|
"success": {
|
|
172
194
|
"message": {
|
|
173
195
|
"swapPartiallySuccessful": "Abbiamo provato a completare lo scambio, ma {{tool}} ha terminato la liquidità per {{tokenSymbol}} token.",
|
|
196
|
+
"purchaseSuccessful": "Ora possiedi {{assetName}} nel wallet {{walletAddress}} sulla chain {{chainName}}.",
|
|
174
197
|
"swapSuccessful": "Sono presenti ora {{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}} nel portafoglio {{walletAddress}} sulla chain {{chainName}}."
|
|
175
198
|
},
|
|
176
199
|
"title": {
|
|
177
200
|
"gasSwapSuccessful": "Scambio di swap avvenuto con successo",
|
|
201
|
+
"purchaseSuccessful": "Acquisto completato",
|
|
178
202
|
"refundIssued": "Rimborso inviato",
|
|
179
203
|
"swapPartiallySuccessful": "Scambio parzialmente completato con successo",
|
|
180
204
|
"swapSuccessful": "Scambio completato con successo"
|
|
@@ -184,16 +208,18 @@
|
|
|
184
208
|
"swapStepDetails": "Scambio su {{chain}} tramite {{tool}}.",
|
|
185
209
|
"swapping": "In fase di scambio",
|
|
186
210
|
"tags": {
|
|
187
|
-
"
|
|
188
|
-
"
|
|
189
|
-
"
|
|
190
|
-
"
|
|
191
|
-
"
|
|
211
|
+
"cheapest": "Economico",
|
|
212
|
+
"fastest": "Veloce",
|
|
213
|
+
"insurable": "Assicurabile",
|
|
214
|
+
"insurance": "Assicurazione",
|
|
215
|
+
"insured": "Assicurato",
|
|
216
|
+
"recommended": "Consigliato",
|
|
217
|
+
"safest": "Sicuro"
|
|
192
218
|
},
|
|
193
219
|
"to": "A",
|
|
194
220
|
"tokenOnChain": "{{tokenSymbol}} su {{chainName}}",
|
|
195
221
|
"tokenOnChainAmount": "{{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}} su {{chainName}}",
|
|
196
|
-
"tokenSearch": "Cerca
|
|
222
|
+
"tokenSearch": "Cerca per nome token o indirizzo",
|
|
197
223
|
"valueLoss": "Perdita di valore",
|
|
198
224
|
"walletAddressOrEns": "Indirizzo del portafoglio o nome ENS",
|
|
199
225
|
"warning": {
|
|
@@ -218,6 +244,7 @@
|
|
|
218
244
|
}
|
|
219
245
|
},
|
|
220
246
|
"tooltip": {
|
|
247
|
+
"additionalProviderFee": "Bridge aggiuntivi, DEX e spese di servizio.",
|
|
221
248
|
"estimatedNetworkFee": "Costo di rete stimato.",
|
|
222
249
|
"estimatedTime": "Tempo di esecuzione dello scambio stimato in minuti.",
|
|
223
250
|
"notFound": {
|
|
@@ -226,6 +253,7 @@
|
|
|
226
253
|
},
|
|
227
254
|
"numberOfSteps": "Una serie di fasi di scambio. Ogni fase può contenere 1-3 transazioni che richiedono una firma.",
|
|
228
255
|
"progressToNextUpdate": "I dati visualizzati si aggiorneranno automaticamente dopo {{value}} secondi. Fai click qui per aggiornare manualmente.",
|
|
256
|
+
"recommended": "Una rotta economica che equilibra complessità e facilità di utilizzo.",
|
|
229
257
|
"settingsModified": "Impostazioni (modificate)"
|
|
230
258
|
},
|
|
231
259
|
"wallet": {
|
package/i18n/pt.json
CHANGED
|
@@ -119,8 +119,8 @@
|
|
|
119
119
|
"inProgress": "em andamento",
|
|
120
120
|
"insurance": {
|
|
121
121
|
"bridgeExploits": "Mau funcionamento da ponte, hacks ou exploits",
|
|
122
|
-
"insure": "
|
|
123
|
-
"insured": "Você
|
|
122
|
+
"insure": "Contratar seguro para <strong>{{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}}</strong> em trânsito.",
|
|
123
|
+
"insured": "Você contratou seguro para <strong>{{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}}</strong> em trânsito:",
|
|
124
124
|
"slippageError": "Erro na discrepância para tokens recebidos"
|
|
125
125
|
},
|
|
126
126
|
"info": {
|
package/i18n/uk.json
CHANGED
|
@@ -119,8 +119,8 @@
|
|
|
119
119
|
"inProgress": "в процесі",
|
|
120
120
|
"insurance": {
|
|
121
121
|
"bridgeExploits": "Збої в роботі бриджу, зломи чи експлойти",
|
|
122
|
-
"insure": "Застрахуйте
|
|
123
|
-
"insured": "Ви застрахували
|
|
122
|
+
"insure": "Застрахуйте <strong>{{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}}</strong> токенів транзакції.",
|
|
123
|
+
"insured": "Ви застрахували <strong>{{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}}</strong> токенів транзакції:",
|
|
124
124
|
"slippageError": "Помилка в прослизанні для отриманих токенів"
|
|
125
125
|
},
|
|
126
126
|
"info": {
|
package/i18n/vi.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"button": {
|
|
3
3
|
"auto": "Tự động",
|
|
4
|
+
"buy": "Mua",
|
|
5
|
+
"buyNow": "Mua ngay bây giờ",
|
|
4
6
|
"cancel": "Huỷ bỏ",
|
|
5
7
|
"connectWallet": "Kết nối ví",
|
|
6
8
|
"contactSupport": "Liên hệ hỗ trợ",
|
|
@@ -12,6 +14,7 @@
|
|
|
12
14
|
"done": "Hoàn thành",
|
|
13
15
|
"getGas": "Thiết lập gas",
|
|
14
16
|
"hide": "Ẩn",
|
|
17
|
+
"learnMore": "Xem thêm",
|
|
15
18
|
"lifiSwap": "LI.FI Swap",
|
|
16
19
|
"light": "Sáng",
|
|
17
20
|
"max": "Tối đa",
|
|
@@ -22,6 +25,7 @@
|
|
|
22
25
|
"resetSettings": "Đặt lại cài đặt",
|
|
23
26
|
"restartSwap": "Thiết lập lại",
|
|
24
27
|
"reviewGasSwap": "Xem lại gas swap",
|
|
28
|
+
"reviewPurchase": "Đánh giá thanh toán",
|
|
25
29
|
"reviewSwap": "Xem lại Swap",
|
|
26
30
|
"seeDetails": "Xem chi tiết",
|
|
27
31
|
"showAll": "Hiển thị tất cả",
|
|
@@ -29,6 +33,7 @@
|
|
|
29
33
|
"startSwap": "Bắt đầu Swap",
|
|
30
34
|
"swap": "Swap",
|
|
31
35
|
"tryAgain": "Thử lại",
|
|
36
|
+
"viewCoverage": "Xem phạm vi bảo hiểm",
|
|
32
37
|
"viewOnExplorer": "Xem tại Explorer"
|
|
33
38
|
},
|
|
34
39
|
"format": {
|
|
@@ -37,10 +42,14 @@
|
|
|
37
42
|
},
|
|
38
43
|
"header": {
|
|
39
44
|
"activeSwaps": "Active swaps",
|
|
45
|
+
"bridge": "Bridge",
|
|
40
46
|
"checkout": "Thanh toán",
|
|
41
47
|
"from": "Swap từ",
|
|
42
48
|
"gas": "Gas",
|
|
43
49
|
"gasSwap": "Gas swap",
|
|
50
|
+
"payWith": "Thanh toán bằng",
|
|
51
|
+
"purchase": "Thanh toán",
|
|
52
|
+
"purchaseDetails": "Thông tin chi tiết",
|
|
44
53
|
"routes": "Kết quả",
|
|
45
54
|
"selectChain": "Chọn chain",
|
|
46
55
|
"selectWallet": "Chọn ví",
|
|
@@ -73,6 +82,8 @@
|
|
|
73
82
|
"currentAmount": "Số lượng hiện tại",
|
|
74
83
|
"error": {
|
|
75
84
|
"message": {
|
|
85
|
+
"allowanceRequired": "Chuyển số lượng {{tokenSymbol}} vượt quá mức cho phép hiện tại của bạn. Vui lòng tăng mức độ cho phép sử dụng token và thử lại.",
|
|
86
|
+
"insufficientFunds": "Bạn không có đủ gas để chi trả cho chi phí giao dịch.",
|
|
76
87
|
"slippageThreshold": "Độ trượt giá lớn hơn ngưỡng xác định. Vui lòng yêu cầu một tuyến đường mới để nhận báo giá mới.",
|
|
77
88
|
"transactionFailed": "Vui lòng kiểm tra block explorer để biết thêm thông tin.",
|
|
78
89
|
"transactionNotSent": "Giao dịch chưa được gửi. {{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}} tại {{chainName}} vẫn còn trong ví của bạn.",
|
|
@@ -80,10 +91,12 @@
|
|
|
80
91
|
"unknown": "Vui lòng thử lại hoặc liên hệ hỗ trợ."
|
|
81
92
|
},
|
|
82
93
|
"title": {
|
|
94
|
+
"allowanceRequired": "Sự cho phép không đủ",
|
|
83
95
|
"balanceIsTooLow": "Số dư quá thấp",
|
|
84
96
|
"chainSwitch": "Yêu cầu đổi chain",
|
|
85
97
|
"failed": "Việc Swap thất bại",
|
|
86
98
|
"gasLimitIsTooLow": "Giới hạn gas quá thấp",
|
|
99
|
+
"insufficientFunds": "Không đủ tài sản",
|
|
87
100
|
"slippageNotMet": "Điều kiện trượt giá không được đáp ứng",
|
|
88
101
|
"transactionCanceled": "Giao dịch bị huỷ",
|
|
89
102
|
"transactionFailed": "Giao dịch không thành công",
|
|
@@ -104,6 +117,12 @@
|
|
|
104
117
|
"gasFeeEstimated": "phí Gas ước tính",
|
|
105
118
|
"gasFeePaid": "phí Gas đã trả",
|
|
106
119
|
"inProgress": "đang xử lý",
|
|
120
|
+
"insurance": {
|
|
121
|
+
"bridgeExploits": "Cầu trục trặc, bị hack hoặc bị khai thác",
|
|
122
|
+
"insure": "Bảo hiểm <strong>{{amount, number(maximumFractionDigits: 9)}}{{tokenSymbol}}</strong> trong quá trình vận chuyển.",
|
|
123
|
+
"insured": "Bạn đã bảo hiểm <strong>{{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}}</strong> trong quá trình vận chuyển:",
|
|
124
|
+
"slippageError": "Lỗi trượt giá đối với token nhận được"
|
|
125
|
+
},
|
|
107
126
|
"info": {
|
|
108
127
|
"message": {
|
|
109
128
|
"autoRefuel": "Gas trên {{chainName}} chain của bạn đang thấp. Để tiếp tục, bạn nên có thêm gas để hoàn thành việc swap.",
|
|
@@ -123,7 +142,6 @@
|
|
|
123
142
|
"onChain": "tại {{chainName}}",
|
|
124
143
|
"otherTokens": "Token khác",
|
|
125
144
|
"ownedBy": "Được sở hữu bởi",
|
|
126
|
-
"payWith": "Trả bằng",
|
|
127
145
|
"process": {
|
|
128
146
|
"crossChain": {
|
|
129
147
|
"actionRequired": "Vui lòng ký hoàn thành giao dịch",
|
|
@@ -131,6 +149,9 @@
|
|
|
131
149
|
"pending": "Chờ giao dịch Bridge",
|
|
132
150
|
"started": "Chuẩn bị giao dịch Bridge"
|
|
133
151
|
},
|
|
152
|
+
"nft": {
|
|
153
|
+
"done": "NFT đã mua"
|
|
154
|
+
},
|
|
134
155
|
"receivingChain": {
|
|
135
156
|
"done": "Bridge thành công",
|
|
136
157
|
"partial": "Bridge thành công 1 phần",
|
|
@@ -157,24 +178,27 @@
|
|
|
157
178
|
"rateChange": "Thay đổi tỉ giá",
|
|
158
179
|
"receiving": "Đang nhận",
|
|
159
180
|
"refuelStepDetails": "Lấy gas thông qua {{tool}}",
|
|
160
|
-
"
|
|
161
|
-
"selectChain": "Chain",
|
|
181
|
+
"selectChain": "Chọn chain",
|
|
162
182
|
"selectChainAndToken": "Chọn chain và token",
|
|
163
|
-
"selectToken": "Token",
|
|
183
|
+
"selectToken": "Chọn Token",
|
|
164
184
|
"sendToAddress": "Gửi đến {{address}}",
|
|
165
185
|
"sendToWallet": "Gửi đến địa chỉ khác",
|
|
166
186
|
"sentToAddress": "Gửi đến {{address}}",
|
|
167
187
|
"stepBridge": "Bridge",
|
|
188
|
+
"stepBridgeAndBuy": "Chuyển và mua",
|
|
168
189
|
"stepDetails": "{{tool}} thông qua LI.FI",
|
|
169
190
|
"stepSwap": "Swap",
|
|
170
191
|
"stepSwapAndBridge": "Swap và Bridge",
|
|
192
|
+
"stepSwapAndBuy": "Hoán đổi và mua",
|
|
171
193
|
"success": {
|
|
172
194
|
"message": {
|
|
173
195
|
"swapPartiallySuccessful": "Chúng tôi đã cố gắng hoàn thành việc hoán đổi, nhưng {{tool}} đã cạn thanh khoản cho token {{tokenSymbol}}.",
|
|
196
|
+
"purchaseSuccessful": "Hiện tại bạn đang nắm giữ {{assetName}} tại ví {{walletAddress}} trên chain {{chainName}}.",
|
|
174
197
|
"swapSuccessful": "Hiện tại {{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}} trong ví {{walletAddress}} tại {{chainName}} chain."
|
|
175
198
|
},
|
|
176
199
|
"title": {
|
|
177
200
|
"gasSwapSuccessful": "Gas Swap thành công",
|
|
201
|
+
"purchaseSuccessful": "Mua thành công",
|
|
178
202
|
"refundIssued": "Đã Refund",
|
|
179
203
|
"swapPartiallySuccessful": "Swap thành công một phần",
|
|
180
204
|
"swapSuccessful": "Swap thành công"
|
|
@@ -195,7 +219,7 @@
|
|
|
195
219
|
"to": "Đến",
|
|
196
220
|
"tokenOnChain": "{{tokenSymbol}} tại {{chainName}}",
|
|
197
221
|
"tokenOnChainAmount": "{{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}} tại {{chainName}}",
|
|
198
|
-
"tokenSearch": "Tìm kiếm token",
|
|
222
|
+
"tokenSearch": "Tìm kiếm bằng tên token hoặc địa chỉ",
|
|
199
223
|
"valueLoss": "Bạn sẽ mất",
|
|
200
224
|
"walletAddressOrEns": "Địa chỉ hoặc tên miền ENS",
|
|
201
225
|
"warning": {
|
|
@@ -229,6 +253,7 @@
|
|
|
229
253
|
},
|
|
230
254
|
"numberOfSteps": "Một số bước swap. Mỗi bước có thể chứa 1-2 giao dịch yêu cầu chữ ký.",
|
|
231
255
|
"progressToNextUpdate": "Thông tin hiển thị sẽ tự động làm mới sau {{value}} giây. Bấm vào đây để cập nhật thủ công.",
|
|
256
|
+
"recommended": "Một tuyến đường giá rẻ cân bằng giữa sự phức tạp và dễ sử dụng.",
|
|
232
257
|
"settingsModified": "Thiết lập (Đã điều chỉnh)"
|
|
233
258
|
},
|
|
234
259
|
"wallet": {
|
package/i18n/zh.json
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"button": {
|
|
3
3
|
"auto": "自动",
|
|
4
|
+
"buy": "购买",
|
|
5
|
+
"buyNow": "立即购买",
|
|
4
6
|
"cancel": "取消",
|
|
5
7
|
"connectWallet": "关联钱包",
|
|
6
8
|
"contactSupport": "联系技术支持",
|
|
@@ -23,6 +25,7 @@
|
|
|
23
25
|
"resetSettings": "恢复默认设置",
|
|
24
26
|
"restartSwap": "重新兑换",
|
|
25
27
|
"reviewGasSwap": "查看燃气费兑换",
|
|
28
|
+
"reviewPurchase": "审查购买",
|
|
26
29
|
"reviewSwap": "查看该兑换",
|
|
27
30
|
"seeDetails": "查看详情",
|
|
28
31
|
"showAll": "显示所有",
|
|
@@ -39,10 +42,14 @@
|
|
|
39
42
|
},
|
|
40
43
|
"header": {
|
|
41
44
|
"activeSwaps": "正在进行的兑换",
|
|
45
|
+
"bridge": "跨链",
|
|
42
46
|
"checkout": "支付",
|
|
43
47
|
"from": "兑换自",
|
|
44
48
|
"gas": "燃气费",
|
|
45
49
|
"gasSwap": "燃气费兑换",
|
|
50
|
+
"payWith": "支付方式",
|
|
51
|
+
"purchase": "购买",
|
|
52
|
+
"purchaseDetails": "交易明细",
|
|
46
53
|
"routes": "您获得",
|
|
47
54
|
"selectChain": "选择网络",
|
|
48
55
|
"selectWallet": "选择你的钱包",
|
|
@@ -75,6 +82,8 @@
|
|
|
75
82
|
"currentAmount": "当前余额",
|
|
76
83
|
"error": {
|
|
77
84
|
"message": {
|
|
85
|
+
"allowanceRequired": "{{tokenSymbol}} 的转账金额超过了您设置的支出上限。请提高该代币的支出上限,然后重试。",
|
|
86
|
+
"insufficientFunds": "您没有足够的燃气费支付该交易。",
|
|
78
87
|
"slippageThreshold": "滑点大于预设值,请选择其他路由并获取新的价格。",
|
|
79
88
|
"transactionFailed": "请查看区块浏览器以了解更多信息。",
|
|
80
89
|
"transactionNotSent": "交易未发送,不用担心,{{chainName}} 链上{{amount, number(maximumFractionDigits: 9)}} 个{{tokenSymbol}} 仍在您的钱包里。",
|
|
@@ -82,10 +91,12 @@
|
|
|
82
91
|
"unknown": "请再试一次或者联系支持。"
|
|
83
92
|
},
|
|
84
93
|
"title": {
|
|
94
|
+
"allowanceRequired": "余额不足",
|
|
85
95
|
"balanceIsTooLow": "余额太低",
|
|
86
96
|
"chainSwitch": "请切换当前网络",
|
|
87
97
|
"failed": "兑换失败",
|
|
88
98
|
"gasLimitIsTooLow": "燃气费设置过低",
|
|
99
|
+
"insufficientFunds": "资金不足",
|
|
89
100
|
"slippageNotMet": "滑点未满足",
|
|
90
101
|
"transactionCanceled": "交易取消",
|
|
91
102
|
"transactionFailed": "交易失败",
|
|
@@ -108,8 +119,8 @@
|
|
|
108
119
|
"inProgress": "进行中",
|
|
109
120
|
"insurance": {
|
|
110
121
|
"bridgeExploits": "跨链桥故障、被黑或者被利用漏洞",
|
|
111
|
-
"insure": "
|
|
112
|
-
"insured": "
|
|
122
|
+
"insure": "在跨链期间为<strong>{{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}}</strong> 投保。",
|
|
123
|
+
"insured": "在跨链期间为<strong>{{amount, number(maximumFractionDigits: 9)}} {{tokenSymbol}}</strong> 投保。",
|
|
113
124
|
"slippageError": "目标链代币的滑点错误"
|
|
114
125
|
},
|
|
115
126
|
"info": {
|
|
@@ -131,7 +142,6 @@
|
|
|
131
142
|
"onChain": "在{{chainName}} 上",
|
|
132
143
|
"otherTokens": "其他代币",
|
|
133
144
|
"ownedBy": "属于",
|
|
134
|
-
"payWith": "付款方式为",
|
|
135
145
|
"process": {
|
|
136
146
|
"crossChain": {
|
|
137
147
|
"actionRequired": "请签署此交易",
|
|
@@ -139,6 +149,9 @@
|
|
|
139
149
|
"pending": "跨链交易进行中",
|
|
140
150
|
"started": "准备执行跨链交易"
|
|
141
151
|
},
|
|
152
|
+
"nft": {
|
|
153
|
+
"done": "NFT 已购买"
|
|
154
|
+
},
|
|
142
155
|
"receivingChain": {
|
|
143
156
|
"done": "跨链完成",
|
|
144
157
|
"partial": "跨链部分完成",
|
|
@@ -165,24 +178,27 @@
|
|
|
165
178
|
"rateChange": "波动率",
|
|
166
179
|
"receiving": "接收",
|
|
167
180
|
"refuelStepDetails": "通过 {{tool}} 获取燃气费",
|
|
168
|
-
"
|
|
169
|
-
"selectChain": "网络",
|
|
181
|
+
"selectChain": "选择网络",
|
|
170
182
|
"selectChainAndToken": "选择链和代币",
|
|
171
|
-
"selectToken": "
|
|
183
|
+
"selectToken": "选择代币",
|
|
172
184
|
"sendToAddress": "发送到{{address}}",
|
|
173
185
|
"sendToWallet": "发送到另外的钱包",
|
|
174
186
|
"sentToAddress": "发送到{{address}}",
|
|
175
187
|
"stepBridge": "跨链",
|
|
188
|
+
"stepBridgeAndBuy": "跨链并购买",
|
|
176
189
|
"stepDetails": "通过 LI.FI {{tool}}",
|
|
177
190
|
"stepSwap": "兑换",
|
|
178
191
|
"stepSwapAndBridge": "兑换和跨链",
|
|
192
|
+
"stepSwapAndBuy": "兑换并购买",
|
|
179
193
|
"success": {
|
|
180
194
|
"message": {
|
|
181
195
|
"swapPartiallySuccessful": "我们试图完成兑换,但 {{tool}} 的 {{tokenSymbol}} 代币流动性不足。",
|
|
196
|
+
"purchaseSuccessful": "您的 {{walletAddress}} 钱包在 {{chainName}} 链上拥有该 {{assetName}} 财产",
|
|
182
197
|
"swapSuccessful": "现在有 {{amount, number(maximumFractionDigits: 9)}} 个{{tokenSymbol}} 在{{chainName}} 链上的{{walletAddress}} 钱包里。"
|
|
183
198
|
},
|
|
184
199
|
"title": {
|
|
185
200
|
"gasSwapSuccessful": "燃气费兑换成功",
|
|
201
|
+
"purchaseSuccessful": "购买成功",
|
|
186
202
|
"refundIssued": "退款已受理",
|
|
187
203
|
"swapPartiallySuccessful": "兑换部分完成",
|
|
188
204
|
"swapSuccessful": "兑换成功"
|
|
@@ -194,16 +210,16 @@
|
|
|
194
210
|
"tags": {
|
|
195
211
|
"cheapest": "便宜的",
|
|
196
212
|
"fastest": "快速的",
|
|
197
|
-
"insurable": "
|
|
213
|
+
"insurable": "可投保",
|
|
198
214
|
"insurance": "保险",
|
|
199
|
-
"insured": "
|
|
215
|
+
"insured": "受保中",
|
|
200
216
|
"recommended": "建议的",
|
|
201
217
|
"safest": "最佳/安全"
|
|
202
218
|
},
|
|
203
219
|
"to": "到",
|
|
204
220
|
"tokenOnChain": "{{chainName}}链上的{{tokenSymbol}}",
|
|
205
221
|
"tokenOnChainAmount": "{{chainName}} 链上{{amount, number(maximumFractionDigits: 9)}} 个{{tokenSymbol}}",
|
|
206
|
-
"tokenSearch": "
|
|
222
|
+
"tokenSearch": "按代币名称或者地址搜索",
|
|
207
223
|
"valueLoss": "资金损失",
|
|
208
224
|
"walletAddressOrEns": "钱包地址或ENS名称",
|
|
209
225
|
"warning": {
|
|
@@ -237,6 +253,7 @@
|
|
|
237
253
|
},
|
|
238
254
|
"numberOfSteps": "一系列的兑换步骤,每个步骤可能包含1-2个需要签名的交易。",
|
|
239
255
|
"progressToNextUpdate": "数据将在{{value}} 秒后自动刷新,点击这里可以手动更新。",
|
|
256
|
+
"recommended": "一个价格低廉但是兼顾复杂性和易用性的路由方案。",
|
|
240
257
|
"settingsModified": "设置(已修改)"
|
|
241
258
|
},
|
|
242
259
|
"wallet": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lifi/widget",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.13",
|
|
4
4
|
"description": "LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
"@ethersproject/address": "^5.7.0",
|
|
44
44
|
"@ethersproject/experimental": "^5.7.0",
|
|
45
45
|
"@ethersproject/providers": "^5.7.2",
|
|
46
|
-
"@lifi/sdk": "^2.0.0-beta.
|
|
47
|
-
"@lifi/wallet-management": "^2.0.0-beta.
|
|
46
|
+
"@lifi/sdk": "^2.0.0-beta.15",
|
|
47
|
+
"@lifi/wallet-management": "^2.0.0-beta.8",
|
|
48
48
|
"@mui/icons-material": "^5.11.16",
|
|
49
49
|
"@mui/lab": "^5.0.0-alpha.131",
|
|
50
50
|
"@mui/material": "^5.13.2",
|