@lifi/widget 1.21.0 → 1.22.1

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.
Files changed (206) hide show
  1. package/AppDrawer.style.d.ts +1 -1
  2. package/AppProvider.js +2 -4
  3. package/AppRoutes.js +4 -0
  4. package/cjs/AppDrawer.style.d.ts +1 -1
  5. package/cjs/AppProvider.js +1 -3
  6. package/cjs/AppRoutes.js +4 -0
  7. package/cjs/components/ActiveSwaps/ActiveSwaps.style.d.ts +1 -1
  8. package/cjs/components/BottomSheet/BottomSheet.d.ts +1 -1
  9. package/cjs/components/ChainSelect/ChainSelect.js +1 -3
  10. package/cjs/components/ChainSelect/useChainSelect.d.ts +1 -1
  11. package/cjs/components/Header/Header.style.d.ts +34 -1
  12. package/cjs/components/Header/Header.style.js +19 -1
  13. package/cjs/components/Header/NavigationHeader.js +6 -2
  14. package/cjs/components/Header/WalletHeader.js +34 -9
  15. package/cjs/components/Menu.d.ts +1 -0
  16. package/cjs/components/Menu.js +24 -0
  17. package/cjs/components/PoweredBy/PoweredBy.style.d.ts +1 -1
  18. package/cjs/components/ReverseTokensButton/ReverseTokensButton.style.d.ts +1 -1
  19. package/cjs/components/SelectChainAndToken.js +6 -1
  20. package/cjs/components/SelectTokenButton/SelectTokenButton.js +11 -6
  21. package/cjs/components/SelectTokenButton/SelectTokenButton.style.js +2 -1
  22. package/cjs/components/SendToWallet/SendToWallet.js +5 -0
  23. package/cjs/components/SendToWallet/SendToWallet.style.d.ts +1 -1
  24. package/cjs/components/SendToWallet/SendToWalletButton.js +5 -1
  25. package/cjs/components/Step/StepProcess.style.d.ts +2 -2
  26. package/cjs/components/Step/StepTimer.js +1 -1
  27. package/cjs/components/StepActions/StepActions.js +6 -1
  28. package/cjs/components/SwapButton/SwapButton.js +9 -4
  29. package/cjs/components/SwapInput/FormPriceHelperText.js +4 -4
  30. package/cjs/components/SwapInput/SwapInput.js +5 -2
  31. package/cjs/components/SwapInput/SwapInput.style.d.ts +1 -1
  32. package/cjs/components/SwapInput/SwapInputAdornment.style.d.ts +1 -1
  33. package/cjs/components/SwapRouteCard/SwapRouteCard.js +5 -3
  34. package/cjs/components/SwapRouteCard/SwapRouteCard.style.d.ts +1 -1
  35. package/cjs/components/SwapRouteCard/SwapRouteCardSkeleton.js +3 -1
  36. package/cjs/components/SwapRoutes/SwapRoutes.js +8 -3
  37. package/cjs/components/Token/Token.js +6 -5
  38. package/cjs/components/TokenAvatar/TokenAvatar.d.ts +11 -1
  39. package/cjs/components/TokenAvatar/TokenAvatar.js +14 -3
  40. package/cjs/components/TokenList/TokenList.js +2 -23
  41. package/cjs/components/TokenList/TokenListItem.d.ts +2 -1
  42. package/cjs/components/TokenList/TokenListItem.js +12 -6
  43. package/cjs/components/TokenList/index.d.ts +1 -0
  44. package/cjs/components/TokenList/index.js +1 -0
  45. package/cjs/components/TokenList/types.d.ts +6 -0
  46. package/cjs/components/TokenList/useTokenSelect.d.ts +2 -0
  47. package/cjs/components/TokenList/useTokenSelect.js +33 -0
  48. package/cjs/config/version.d.ts +1 -1
  49. package/cjs/config/version.js +1 -1
  50. package/cjs/hooks/useChain.d.ts +2 -2
  51. package/cjs/hooks/useChains.d.ts +2 -2
  52. package/cjs/hooks/useExpandableVariant.js +3 -5
  53. package/cjs/hooks/useProcessMessage.d.ts +2 -2
  54. package/cjs/hooks/useSwapRoutes.js +11 -7
  55. package/cjs/i18n/de.json +199 -0
  56. package/cjs/i18n/en.json +162 -151
  57. package/cjs/i18n/es.json +200 -0
  58. package/cjs/i18n/fr.json +199 -0
  59. package/cjs/i18n/index.d.ts +8 -200
  60. package/cjs/i18n/index.js +15 -19
  61. package/cjs/i18n/it.json +199 -0
  62. package/cjs/i18n/uk.json +200 -0
  63. package/cjs/i18n/zh.json +199 -0
  64. package/cjs/pages/SelectChainPage/SelectChainPage.d.ts +2 -2
  65. package/cjs/pages/SelectChainPage/SelectChainPage.js +13 -9
  66. package/cjs/pages/SelectChainPage/types.d.ts +4 -0
  67. package/cjs/pages/SelectChainPage/types.js +2 -0
  68. package/cjs/pages/SelectNativeTokenPage/SelectNativeTokenPage.d.ts +3 -0
  69. package/cjs/pages/SelectNativeTokenPage/SelectNativeTokenPage.js +21 -0
  70. package/cjs/pages/SelectNativeTokenPage/SelectNativeTokenPage.style.d.ts +21 -0
  71. package/cjs/pages/SelectNativeTokenPage/SelectNativeTokenPage.style.js +20 -0
  72. package/cjs/pages/SelectNativeTokenPage/index.d.ts +1 -0
  73. package/cjs/pages/SelectNativeTokenPage/index.js +17 -0
  74. package/cjs/pages/SettingsPage/ColorSchemeButtonGroup.style.d.ts +1 -1
  75. package/cjs/pages/SettingsPage/LanguageSelect.d.ts +2 -0
  76. package/cjs/pages/SettingsPage/LanguageSelect.js +38 -0
  77. package/cjs/pages/SettingsPage/SettingsPage.js +2 -1
  78. package/cjs/pages/SettingsPage/ShowDestinationWallet.d.ts +1 -1
  79. package/cjs/pages/SettingsPage/ShowDestinationWallet.js +6 -0
  80. package/cjs/pages/SwapDetailsPage/SwapDetailsPage.js +4 -2
  81. package/cjs/pages/SwapHistoryPage/SwapHistoryItem.js +4 -2
  82. package/cjs/pages/SwapPage/StatusBottomSheet.js +3 -3
  83. package/cjs/pages/SwapPage/SwapPage.js +1 -3
  84. package/cjs/pages/SwapPage/TokenValueBottomSheet.js +1 -1
  85. package/cjs/providers/I18nProvider/I18nProvider.d.ts +2 -0
  86. package/cjs/providers/I18nProvider/I18nProvider.js +62 -0
  87. package/cjs/providers/I18nProvider/index.d.ts +2 -0
  88. package/cjs/providers/I18nProvider/index.js +18 -0
  89. package/cjs/providers/I18nProvider/types.d.ts +16 -0
  90. package/cjs/providers/I18nProvider/types.js +2 -0
  91. package/cjs/providers/WidgetProvider/utils.d.ts +1 -1
  92. package/cjs/providers/WidgetProvider/utils.js +4 -4
  93. package/cjs/providers/index.d.ts +1 -0
  94. package/cjs/providers/index.js +1 -0
  95. package/cjs/stores/settings/types.d.ts +1 -0
  96. package/cjs/stores/settings/useSettingsStore.d.ts +2 -0
  97. package/cjs/types/widget.d.ts +24 -7
  98. package/cjs/types/widget.js +8 -0
  99. package/cjs/utils/deepMerge.d.ts +1 -0
  100. package/cjs/utils/deepMerge.js +18 -0
  101. package/cjs/utils/index.d.ts +1 -0
  102. package/cjs/utils/index.js +1 -0
  103. package/cjs/utils/input.js +3 -1
  104. package/cjs/utils/navigationRoutes.d.ts +8 -7
  105. package/cjs/utils/navigationRoutes.js +10 -7
  106. package/components/ActiveSwaps/ActiveSwaps.style.d.ts +1 -1
  107. package/components/BottomSheet/BottomSheet.d.ts +1 -1
  108. package/components/ChainSelect/ChainSelect.js +1 -3
  109. package/components/ChainSelect/useChainSelect.d.ts +1 -1
  110. package/components/Header/Header.style.d.ts +34 -1
  111. package/components/Header/Header.style.js +19 -1
  112. package/components/Header/NavigationHeader.js +7 -3
  113. package/components/Header/WalletHeader.js +37 -12
  114. package/components/Menu.d.ts +1 -0
  115. package/components/Menu.js +21 -0
  116. package/components/PoweredBy/PoweredBy.style.d.ts +1 -1
  117. package/components/ReverseTokensButton/ReverseTokensButton.style.d.ts +1 -1
  118. package/components/SelectChainAndToken.js +7 -2
  119. package/components/SelectTokenButton/SelectTokenButton.js +12 -7
  120. package/components/SelectTokenButton/SelectTokenButton.style.js +2 -1
  121. package/components/SendToWallet/SendToWallet.js +6 -1
  122. package/components/SendToWallet/SendToWallet.style.d.ts +1 -1
  123. package/components/SendToWallet/SendToWalletButton.js +6 -2
  124. package/components/Step/StepProcess.style.d.ts +2 -2
  125. package/components/Step/StepTimer.js +1 -1
  126. package/components/StepActions/StepActions.js +6 -1
  127. package/components/SwapButton/SwapButton.js +9 -4
  128. package/components/SwapInput/FormPriceHelperText.js +4 -4
  129. package/components/SwapInput/SwapInput.js +6 -3
  130. package/components/SwapInput/SwapInput.style.d.ts +1 -1
  131. package/components/SwapInput/SwapInputAdornment.style.d.ts +1 -1
  132. package/components/SwapRouteCard/SwapRouteCard.js +5 -3
  133. package/components/SwapRouteCard/SwapRouteCard.style.d.ts +1 -1
  134. package/components/SwapRouteCard/SwapRouteCardSkeleton.js +3 -1
  135. package/components/SwapRoutes/SwapRoutes.js +8 -3
  136. package/components/Token/Token.js +7 -6
  137. package/components/TokenAvatar/TokenAvatar.d.ts +11 -1
  138. package/components/TokenAvatar/TokenAvatar.js +11 -2
  139. package/components/TokenList/TokenList.js +4 -25
  140. package/components/TokenList/TokenListItem.d.ts +2 -1
  141. package/components/TokenList/TokenListItem.js +10 -5
  142. package/components/TokenList/index.d.ts +1 -0
  143. package/components/TokenList/index.js +1 -0
  144. package/components/TokenList/types.d.ts +6 -0
  145. package/components/TokenList/useTokenSelect.d.ts +2 -0
  146. package/components/TokenList/useTokenSelect.js +29 -0
  147. package/config/version.d.ts +1 -1
  148. package/config/version.js +1 -1
  149. package/hooks/useChain.d.ts +2 -2
  150. package/hooks/useChains.d.ts +2 -2
  151. package/hooks/useExpandableVariant.js +3 -5
  152. package/hooks/useProcessMessage.d.ts +2 -2
  153. package/hooks/useSwapRoutes.js +12 -8
  154. package/i18n/de.json +199 -0
  155. package/i18n/en.json +162 -151
  156. package/i18n/es.json +200 -0
  157. package/i18n/fr.json +199 -0
  158. package/i18n/index.d.ts +8 -200
  159. package/i18n/index.js +8 -18
  160. package/i18n/it.json +199 -0
  161. package/i18n/uk.json +200 -0
  162. package/i18n/zh.json +199 -0
  163. package/package.json +19 -18
  164. package/pages/SelectChainPage/SelectChainPage.d.ts +2 -2
  165. package/pages/SelectChainPage/SelectChainPage.js +13 -9
  166. package/pages/SelectChainPage/types.d.ts +4 -0
  167. package/pages/SelectChainPage/types.js +1 -0
  168. package/pages/SelectNativeTokenPage/SelectNativeTokenPage.d.ts +3 -0
  169. package/pages/SelectNativeTokenPage/SelectNativeTokenPage.js +17 -0
  170. package/pages/SelectNativeTokenPage/SelectNativeTokenPage.style.d.ts +21 -0
  171. package/pages/SelectNativeTokenPage/SelectNativeTokenPage.style.js +17 -0
  172. package/pages/SelectNativeTokenPage/index.d.ts +1 -0
  173. package/pages/SelectNativeTokenPage/index.js +1 -0
  174. package/pages/SettingsPage/ColorSchemeButtonGroup.style.d.ts +1 -1
  175. package/pages/SettingsPage/LanguageSelect.d.ts +2 -0
  176. package/pages/SettingsPage/LanguageSelect.js +34 -0
  177. package/pages/SettingsPage/SettingsPage.js +2 -1
  178. package/pages/SettingsPage/ShowDestinationWallet.d.ts +1 -1
  179. package/pages/SettingsPage/ShowDestinationWallet.js +6 -0
  180. package/pages/SwapDetailsPage/SwapDetailsPage.js +4 -2
  181. package/pages/SwapHistoryPage/SwapHistoryItem.js +4 -2
  182. package/pages/SwapPage/StatusBottomSheet.js +3 -3
  183. package/pages/SwapPage/SwapPage.js +1 -3
  184. package/pages/SwapPage/TokenValueBottomSheet.js +1 -1
  185. package/providers/I18nProvider/I18nProvider.d.ts +2 -0
  186. package/providers/I18nProvider/I18nProvider.js +58 -0
  187. package/providers/I18nProvider/index.d.ts +2 -0
  188. package/providers/I18nProvider/index.js +2 -0
  189. package/providers/I18nProvider/types.d.ts +16 -0
  190. package/providers/I18nProvider/types.js +1 -0
  191. package/providers/WidgetProvider/utils.d.ts +1 -1
  192. package/providers/WidgetProvider/utils.js +4 -4
  193. package/providers/index.d.ts +1 -0
  194. package/providers/index.js +1 -0
  195. package/stores/settings/types.d.ts +1 -0
  196. package/stores/settings/useSettingsStore.d.ts +2 -0
  197. package/tsconfig.cjs.tsbuildinfo +1 -1
  198. package/types/widget.d.ts +24 -7
  199. package/types/widget.js +7 -1
  200. package/utils/deepMerge.d.ts +1 -0
  201. package/utils/deepMerge.js +14 -0
  202. package/utils/index.d.ts +1 -0
  203. package/utils/index.js +1 -0
  204. package/utils/input.js +3 -1
  205. package/utils/navigationRoutes.d.ts +8 -7
  206. package/utils/navigationRoutes.js +10 -7
@@ -1,10 +1,10 @@
1
1
  import type { EVMChain, Process, Step } from '@lifi/sdk';
2
- import type { TFunction } from 'react-i18next';
2
+ import type { TFunction } from 'i18next';
3
3
  export declare const useProcessMessage: (step?: Step, process?: Process) => {
4
4
  title?: string | undefined;
5
5
  message?: string | undefined;
6
6
  };
7
- export declare function getProcessMessage(t: TFunction<'translation', undefined>, getChainById: (chainId: number) => EVMChain | undefined, step: Step, process: Process): {
7
+ export declare function getProcessMessage(t: TFunction, getChainById: (chainId: number) => EVMChain | undefined, step: Step, process: Process): {
8
8
  title?: string;
9
9
  message?: string;
10
10
  };
@@ -21,6 +21,7 @@ const refetchTime = 60000;
21
21
  const useSwapRoutes = () => {
22
22
  var _a;
23
23
  const lifi = (0, providers_1.useLiFi)();
24
+ const { variant } = (0, providers_1.useWidgetConfig)();
24
25
  const { account, provider } = (0, providers_1.useWallet)();
25
26
  const queryClient = (0, react_query_1.useQueryClient)();
26
27
  const { slippage, enabledBridges, enabledExchanges, routePriority } = (0, stores_1.useSettings)([
@@ -39,13 +40,14 @@ const useSwapRoutes = () => {
39
40
  ],
40
41
  });
41
42
  const [fromTokenAmount] = (0, _1.useDebouncedWatch)([providers_1.SwapFormKey.FromAmount], 320);
42
- const { token } = (0, _1.useToken)(fromChainId, fromTokenAddress);
43
+ const { token: fromToken } = (0, _1.useToken)(fromChainId, fromTokenAddress);
44
+ const { token: toToken } = (0, _1.useToken)(toChainId, toTokenAddress);
43
45
  const isEnabled =
44
46
  // Boolean(account.address) &&
45
47
  !isNaN(fromChainId) &&
46
48
  !isNaN(toChainId) &&
47
- Boolean(token === null || token === void 0 ? void 0 : token.address) &&
48
- Boolean(toTokenAddress) &&
49
+ Boolean(fromToken === null || fromToken === void 0 ? void 0 : fromToken.address) &&
50
+ Boolean(toToken === null || toToken === void 0 ? void 0 : toToken.address) &&
49
51
  !isNaN(fromTokenAmount) &&
50
52
  Number(fromTokenAmount) > 0 &&
51
53
  !Number.isNaN(slippage);
@@ -53,21 +55,22 @@ const useSwapRoutes = () => {
53
55
  'routes',
54
56
  account.address,
55
57
  fromChainId,
56
- token === null || token === void 0 ? void 0 : token.address,
58
+ fromToken === null || fromToken === void 0 ? void 0 : fromToken.address,
57
59
  fromTokenAmount,
58
60
  toChainId,
59
- toTokenAddress,
61
+ toToken === null || toToken === void 0 ? void 0 : toToken.address,
60
62
  toAddress,
61
63
  slippage,
62
64
  enabledBridges,
63
65
  enabledExchanges,
64
66
  routePriority,
67
+ variant,
65
68
  ];
66
69
  const previousDataUpdatedAt = (_a = queryClient.getQueryState(queryKey)) === null || _a === void 0 ? void 0 : _a.dataUpdatedAt;
67
70
  const refetchInterval = previousDataUpdatedAt
68
71
  ? Math.min(Math.abs(refetchTime - (Date.now() - previousDataUpdatedAt)), refetchTime)
69
72
  : refetchTime;
70
- const { data, isLoading, isFetching, isFetched, dataUpdatedAt, refetch } = (0, react_query_1.useQuery)(queryKey, ({ queryKey: [_, fromAddress, fromChainId, fromTokenAddress, fromTokenAmount, toChainId, toTokenAddress, toAddress, slippage, enabledBridges, enabledExchanges, routePriority,], signal, }) => __awaiter(void 0, void 0, void 0, function* () {
73
+ const { data, isLoading, isFetching, isFetched, dataUpdatedAt, refetch } = (0, react_query_1.useQuery)(queryKey, ({ queryKey: [_, fromAddress, fromChainId, fromTokenAddress, fromTokenAmount, toChainId, toTokenAddress, toAddress, slippage, enabledBridges, enabledExchanges, routePriority, variant,], signal, }) => __awaiter(void 0, void 0, void 0, function* () {
71
74
  var _b, _c;
72
75
  let toWalletAddress;
73
76
  try {
@@ -77,7 +80,7 @@ const useSwapRoutes = () => {
77
80
  catch (_d) {
78
81
  toWalletAddress = (0, address_1.isAddress)(toAddress) ? toAddress : fromAddress;
79
82
  }
80
- const fromAmount = (0, big_js_1.default)(Number(fromTokenAmount) * Math.pow(10, ((_c = token === null || token === void 0 ? void 0 : token.decimals) !== null && _c !== void 0 ? _c : 0))).toString();
83
+ const fromAmount = (0, big_js_1.default)(Number(fromTokenAmount) * Math.pow(10, ((_c = fromToken === null || fromToken === void 0 ? void 0 : fromToken.decimals) !== null && _c !== void 0 ? _c : 0))).toString();
81
84
  const formattedSlippage = parseFloat(slippage) / 100;
82
85
  return lifi.getRoutes({
83
86
  fromChainId,
@@ -96,6 +99,7 @@ const useSwapRoutes = () => {
96
99
  allow: enabledExchanges,
97
100
  },
98
101
  order: routePriority,
102
+ allowSwitchChain: variant !== 'refuel',
99
103
  },
100
104
  }, { signal });
101
105
  }), {
@@ -0,0 +1,199 @@
1
+ {
2
+ "button": {
3
+ "auto": "Auto",
4
+ "cancel": "Absagen",
5
+ "connectWallet": "Brieftasche verbinden",
6
+ "contactSupport": "Kontaktieren Sie Support",
7
+ "continue": "Fortsetzen",
8
+ "copyAddress": "Adresse kopieren",
9
+ "dark": "Dunkel",
10
+ "delete": "Löschen",
11
+ "disconnectWallet": "Wallet trennen",
12
+ "done": "Fertig",
13
+ "hide": "Ausblenden",
14
+ "lifiSwap": "LI.FI Tausch",
15
+ "light": "Licht",
16
+ "max": "max",
17
+ "ok": "OK",
18
+ "okay": "Okay",
19
+ "removeSwap": "Austausch entfernen",
20
+ "restartSwap": "Swap neu starten",
21
+ "reviewSwap": "Bewertungstausch",
22
+ "seeDetails": "Siehe Einzelheiten",
23
+ "showAll": "Zeige alles",
24
+ "startSwap": "Tausch starten",
25
+ "swap": "Tausch",
26
+ "tryAgain": "Versuchen Sie es nochmal"
27
+ },
28
+ "format": {
29
+ "currency": "{{value, currency(currency: USD)}}",
30
+ "number": "{{value, number(maximumFractionDigits: 4)}}"
31
+ },
32
+ "header": {
33
+ "activeSwaps": "Aktive Swaps",
34
+ "from": "Abtauschen",
35
+ "routes": "Du erhältst",
36
+ "selectChain": "Kette auswählen",
37
+ "selectWallet": "Wählen Sie Ihre Geldbörse aus",
38
+ "settings": "Einstellungen",
39
+ "swap": "Tausch",
40
+ "swapDetails": "Details tauschen",
41
+ "swapHistory": "Historie tauschen",
42
+ "to": "Wechseln zu",
43
+ "walletConnected": "Brieftasche verbunden"
44
+ },
45
+ "language": {
46
+ "name": "Deutsch",
47
+ "title": "Sprache"
48
+ },
49
+ "settings": {
50
+ "advancedPreferences": "Erweiterte Einstellungen",
51
+ "enabledBridges": "Aktivierte Brücken",
52
+ "enabledExchanges": "Aktivierter Austausch",
53
+ "gasPrice": {
54
+ "fast": "Schnell",
55
+ "normal": "Normal",
56
+ "slow": "Langsam",
57
+ "title": "Gaspreis"
58
+ },
59
+ "resetToDefault": "Zurücksetzen",
60
+ "routePriority": "Routenpriorität",
61
+ "selectEnabledBridges": "Wählen Sie aktivierte Bridges aus",
62
+ "selectEnabledExchanges": "Wählen Sie aktivierte Börsen aus",
63
+ "showDestinationWallet": "Zielgeldbörse anzeigen",
64
+ "slippage": "Abweichung"
65
+ },
66
+ "swap": {
67
+ "crossStepDetails": "Brücke von {{from}} nach {{to}} über {{tool}}",
68
+ "error": {
69
+ "message": {
70
+ "slippageTooLarge": "Der Schlupf ist größer als der definierte Schwellenwert. Bitte fordern Sie eine neue Route an, um ein neues Angebot zu erhalten.",
71
+ "transactionFailed": "Weitere Informationen finden Sie im Block-Explorer.",
72
+ "transactionNotSent": "Die Transaktion wurde nicht gesendet, Ihr Geld befindet sich noch in Ihrer Brieftasche ({{amount, number(maximumFractionDigits: 4)}} {{tokenSymbol}} auf {{chainName}}).",
73
+ "transactionRejected": "Ihre Unterschrift ist erforderlich, um die Transaktion abzuschließen. {{amount, number(maximumFractionDigits: 4)}} {{tokenSymbol}} auf {{chainName}} verbleiben in Ihrem Wallet."
74
+ },
75
+ "title": {
76
+ "chainSwitch": "Kettenschalter erforderlich.",
77
+ "failed": "Austausch fehlgeschlagen.",
78
+ "slippageTooLarge": "Schlupf zu groß.",
79
+ "transactionFailed": "Transaktion ist fehlgeschlagen.",
80
+ "transactionRejected": "Signatur benötigt.",
81
+ "transactionUnderpriced": "Transaktion ist unterbewertet.",
82
+ "transactionUnprepared": "Transaktion kann nicht vorbereitet werden.",
83
+ "unknown": "Etwas ist schief gelaufen.",
84
+ "walletAddressInvalid": "Wallet-Adresse ist ungültig.",
85
+ "walletEnsAddressInvalid": "Die Wallet-Adresse ist ungültig oder das Netzwerk unterstützt ENS nicht."
86
+ }
87
+ },
88
+ "estimatedTime": "{{value}} m",
89
+ "featuredTokens": "Ausgewählte Token",
90
+ "from": "Aus",
91
+ "fromAmount": "Sie bezahlen",
92
+ "gasCost": "Gaskosten",
93
+ "inProgress": "im Gange",
94
+ "info": {
95
+ "message": {
96
+ "emptyActiveSwaps": "Laufende Swaps werden hier angezeigt. Sobald Sie fertig sind, finden Sie sie im Swap-Verlauf.",
97
+ "emptySwapHistory": "Der Swap-Verlauf wird nur lokal gespeichert und gelöscht, wenn Sie Ihre Browserdaten löschen.",
98
+ "emptyTokenList": "Wir konnten keine Tokens in der Kette {{chainName}} finden oder Sie haben keine. Bitte versuchen Sie die Suche erneut oder wählen Sie eine andere Kette.",
99
+ "routeNotFound": "Probieren Sie eine andere Token-Kombination aus."
100
+ },
101
+ "title": {
102
+ "emptyActiveSwaps": "Keine aktiven Swaps",
103
+ "emptySwapHistory": "Keine kürzlichen Swaps",
104
+ "routeNotFound": "Keine Routen verfügbar"
105
+ }
106
+ },
107
+ "otherTokens": "Andere Token",
108
+ "process": {
109
+ "crossChain": {
110
+ "actionRequired": "Bitte signieren Sie die Transaktion.",
111
+ "done": "Transaktion genehmigt.",
112
+ "pending": "Warten auf Transaktion.",
113
+ "started": "Transaktion vorbereiten."
114
+ },
115
+ "receivingChain": {
116
+ "done": "Erhaltene Mittel.",
117
+ "pending": "Warten auf Empfänger-Chain."
118
+ },
119
+ "swap": {
120
+ "actionRequired": "Bitte signieren Sie die Transaktion.",
121
+ "done": "Austausch abgeschlossen.",
122
+ "pending": "Austauschen.",
123
+ "started": "Austausch vorbereiten."
124
+ },
125
+ "switchChain": {
126
+ "actionRequired": "Kettenschalter erforderlich.",
127
+ "done": "Chain erfolgreich gewechselt."
128
+ },
129
+ "tokenAllowance": {
130
+ "done": "Token-Zulassung genehmigt.",
131
+ "pending": "Warten auf Token-Genehmigung.",
132
+ "started": "Token-Freigabe festlegen."
133
+ }
134
+ },
135
+ "receiving": "Empfang",
136
+ "routes": "Du erhältst",
137
+ "selectChain": "Chain",
138
+ "selectChainAndToken": "Kette und Token auswählen",
139
+ "selectToken": "Token",
140
+ "sendToWallet": "An eine andere Brieftasche senden",
141
+ "stepBridge": "Brücke",
142
+ "stepSwap": "Tausch",
143
+ "stepSwapAndBridge": "Tauschen und überbrücken",
144
+ "success": {
145
+ "message": {
146
+ "swapSuccessful": "Es sind jetzt {{amount, number(maximumFractionDigits: 4)}} {{tokenSymbol}} in wallet {{walletAddress}} auf chain {{chainName}}."
147
+ },
148
+ "title": {
149
+ "swapSuccessful": "Tausch erfolgreich"
150
+ }
151
+ },
152
+ "supportId": "Support-ID",
153
+ "swapStepDetails": "Tausche auf {{chain}} über {{tool}}",
154
+ "swapping": "Austauschen",
155
+ "tags": {
156
+ "ALTERNATIVE": "ALTERNATIVE",
157
+ "CHEAPEST": "BILLIG",
158
+ "FASTEST": "SCHNELL",
159
+ "RECOMMENDED": "EMPFOHLEN",
160
+ "SAFEST": "SICHER"
161
+ },
162
+ "to": "Zu",
163
+ "tokenOnChain": "{{tokenSymbol}} auf {{chainName}}",
164
+ "tokenOnChainAmount": "{{amount, number(maximumFractionDigits: 4)}} {{tokenSymbol}} auf {{chainName}}",
165
+ "tokenSearch": "Suchen Sie Ihr Token",
166
+ "valueLoss": "Wertverlust",
167
+ "walletAddressOrEns": "Wallet-Adresse oder ENS-Name",
168
+ "warning": {
169
+ "message": {
170
+ "deleteActiveSwaps": "Aktive Swaps werden nur lokal gespeichert und können nicht wiederhergestellt werden, wenn Sie sie löschen.",
171
+ "deleteSwapHistory": "Der Swap-Verlauf wird nur lokal gespeichert und kann nicht wiederhergestellt werden, wenn Sie ihn löschen.",
172
+ "highValueLoss": "Der Wert der erhaltenen Token ist deutlich niedriger als die getauschten Token und die Transaktionskosten.",
173
+ "insufficientFunds": "Sie haben nicht genug Geld, um den Tausch durchzuführen.",
174
+ "insufficientGas": "Sie müssen mindestens hinzufügen:"
175
+ },
176
+ "title": {
177
+ "deleteActiveSwaps": "Alle aktiven Swaps löschen?",
178
+ "deleteSwap": "Diesen Tausch löschen?",
179
+ "deleteSwapHistory": "Swap-Verlauf löschen?",
180
+ "highValueLoss": "Hoher Wertverlust",
181
+ "insufficientGas": "Unzureichendes Gas"
182
+ }
183
+ }
184
+ },
185
+ "tooltip": {
186
+ "estimatedNetworkFee": "Geschätzte Netzwerkgebühr.",
187
+ "estimatedTime": "Geschätzte Tausch-Ausführungszeit in Minuten.",
188
+ "notFound": {
189
+ "text": "Wir konnten diese Seite nicht finden.",
190
+ "title": "404"
191
+ },
192
+ "numberOfSteps": "Eine Anzahl von Tausch-Schritten. Jeder Schritt kann 2 Transaktionen enthalten, die eine Unterschrift erfordern.",
193
+ "progressToNextUpdate": "Angezeigte Daten werden nach {{value}} Sekunden automatisch aktualisiert. Klicken Sie hier, um manuell zu aktualisieren.",
194
+ "settingsModified": "Einstellungen (geändert)"
195
+ },
196
+ "wallet": {
197
+ "extensionNotFound": "Bitte stellen Sie sicher, dass nur die Browsererweiterung {{name}} aktiv ist, bevor Sie dieses Wallet auswählen."
198
+ }
199
+ }
package/cjs/i18n/en.json CHANGED
@@ -1,194 +1,205 @@
1
1
  {
2
- "language": "English",
3
- "header": {
4
- "walletConnected": "Wallet connected",
5
- "connectWallet": "Connect wallet",
6
- "selectWallet": "Select your wallet",
7
- "swap": "Swap",
8
- "from": "Swap from",
9
- "to": "Swap to",
10
- "selectChain": "Select chain",
11
- "settings": "Settings",
12
- "routes": "You get",
13
- "swapHistory": "Swap history",
14
- "swapDetails": "Swap details",
15
- "activeSwaps": "Active swaps"
16
- },
17
2
  "button": {
3
+ "auto": "Auto",
4
+ "cancel": "Cancel",
18
5
  "connectWallet": "Connect wallet",
19
- "swap": "Swap",
20
- "reviewSwap": "Review swap",
21
- "startSwap": "Start swap",
22
- "restartSwap": "Restart swap",
23
- "removeSwap": "Remove swap",
24
- "done": "Done",
25
- "okay": "Okay",
6
+ "contactSupport": "Contact support",
26
7
  "continue": "Continue",
27
- "seeDetails": "See details",
28
- "tryAgain": "Try again",
29
- "light": "Light",
8
+ "copyAddress": "Copy address",
30
9
  "dark": "Dark",
31
- "auto": "Auto",
32
- "ok": "Ok",
33
- "cancel": "Cancel",
34
10
  "delete": "Delete",
11
+ "disconnectWallet": "Disconnect wallet",
12
+ "done": "Done",
13
+ "getGas": "Get gas",
35
14
  "hide": "Hide",
15
+ "lifiSwap": "LI.FI Swap",
16
+ "light": "Light",
36
17
  "max": "max",
18
+ "ok": "Ok",
19
+ "okay": "Okay",
20
+ "removeSwap": "Remove swap",
21
+ "restartSwap": "Restart swap",
22
+ "reviewSwap": "Review swap",
23
+ "seeDetails": "See details",
37
24
  "showAll": "Show all",
38
- "contactSupport": "Contact support",
39
- "lifiSwap": "LI.FI Swap"
25
+ "startGasSwap": "Start gas swap",
26
+ "startSwap": "Start swap",
27
+ "swap": "Swap",
28
+ "tryAgain": "Try again"
40
29
  },
41
- "swap": {
42
- "from": "From",
43
- "to": "To",
44
- "amount": "You pay",
45
- "maxAmount": "/ {{amount}}",
46
- "routes": "You get",
47
- "approximateCurrency": "\u2248 {{value, currency(currency: USD)}}",
30
+ "format": {
48
31
  "currency": "{{value, currency(currency: USD)}}",
49
- "tokenSearch": "Search your token",
50
- "selectChain": "Chain",
51
- "selectToken": "Token",
52
- "selectChainAndToken": "Select chain and token",
53
- "featuredTokens": "Featured tokens",
54
- "otherTokens": "Other tokens",
55
- "inProgress": "in progress",
56
- "stepSwap": "Swap",
57
- "stepBridge": "Bridge",
58
- "stepSwapAndBridge": "Swap and bridge",
59
- "estimatedTime": "{{value}}m",
60
- "crossStepDetails": "Bridge from {{from}} to {{to}} via {{tool}}",
61
- "swapStepDetails": "Swap on {{chain}} via {{tool}}",
62
- "tokenOnChain": "{{tokenSymbol}} on {{chainName}}",
63
- "tokenOnChainAmount": "{{amount}} {{tokenSymbol}} on {{chainName}}",
64
- "supportId": "Support ID",
65
- "sendToWallet": "Send to a different wallet",
66
- "walletAddressOrEns": "Wallet address or ENS name",
67
- "swapping": "Swapping",
68
- "gasCost": "Gas cost",
69
- "receiving": "Receiving",
70
- "valueLoss": "Value loss",
71
- "tags": {
72
- "RECOMMENDED": "RECOMMENDED",
73
- "FASTEST": "FAST",
74
- "CHEAPEST": "CHEAP",
75
- "SAFEST": "SAFE",
76
- "ALTERNATIVE": "ALTERNATIVE"
77
- },
78
- "success": {
79
- "title": {
80
- "fundsReceived": "Funds received"
81
- },
82
- "message": {
83
- "fundsReceived": "There are now {{amount}} {{tokenSymbol}} in wallet {{walletAddress}} on {{chainName}} chain."
84
- }
32
+ "number": "{{value, number(maximumFractionDigits: 4)}}"
33
+ },
34
+ "header": {
35
+ "activeSwaps": "Active swaps",
36
+ "from": "Swap from",
37
+ "gas": "Gas",
38
+ "gasSwap": "Gas swap",
39
+ "routes": "You get",
40
+ "selectChain": "Select chain",
41
+ "selectWallet": "Select your wallet",
42
+ "settings": "Settings",
43
+ "swap": "Swap",
44
+ "swapDetails": "Swap details",
45
+ "swapHistory": "Swap history",
46
+ "to": "Swap to",
47
+ "walletConnected": "Wallet connected"
48
+ },
49
+ "language": {
50
+ "name": "English",
51
+ "title": "Language"
52
+ },
53
+ "settings": {
54
+ "advancedPreferences": "Advanced preferences",
55
+ "enabledBridges": "Enabled bridges",
56
+ "enabledExchanges": "Enabled exchanges",
57
+ "gasPrice": {
58
+ "fast": "Fast",
59
+ "normal": "Normal",
60
+ "slow": "Slow",
61
+ "title": "Gas price"
85
62
  },
86
- "info": {
87
- "title": {
88
- "routeNotFound": "No routes available",
89
- "emptySwapHistory": "No recent swaps",
90
- "emptyActiveSwaps": "No active swaps"
91
- },
63
+ "resetToDefault": "Reset to default",
64
+ "routePriority": "Route priority",
65
+ "selectEnabledBridges": "Select enabled bridges",
66
+ "selectEnabledExchanges": "Select enabled exchanges",
67
+ "showDestinationWallet": "Show destination wallet",
68
+ "slippage": "Slippage"
69
+ },
70
+ "swap": {
71
+ "crossStepDetails": "Bridge from {{from}} to {{to}} via {{tool}}",
72
+ "error": {
92
73
  "message": {
93
- "routeNotFound": "Try another token combination.",
94
- "emptySwapHistory": "Swap history is only stored locally and will be deleted if you clear your browser data.",
95
- "emptyActiveSwaps": "Swaps in progress will appear here. Once completed, find them in swap history.",
96
- "emptyTokenList": "We couldn't find tokens on {{chainName}} chain or you don't have any. Please try search again or choose another chain."
97
- }
98
- },
99
- "warning": {
100
- "title": {
101
- "insufficientGas": "Insufficient gas",
102
- "deleteSwap": "Delete this swap?",
103
- "deleteSwapHistory": "Delete swap history?",
104
- "deleteActiveSwaps": "Delete all active swaps?",
105
- "highValueLoss": "High value loss"
74
+ "slippageTooLarge": "The slippage is larger than the defined threshold. Please request a new route to get a fresh quote.",
75
+ "transactionFailed": "Please check the block explorer for more information.",
76
+ "transactionNotSent": "Transaction was not sent, your funds are still in your wallet ({{amount, number(maximumFractionDigits: 4)}} {{tokenSymbol}} on {{chainName}}).",
77
+ "transactionRejected": "Your signature is required to complete the transaction. {{amount, number(maximumFractionDigits: 4)}} {{tokenSymbol}} on {{chainName}} remain in your wallet."
106
78
  },
107
- "message": {
108
- "insufficientFunds": "You don't have enough funds to execute the swap.",
109
- "insufficientGas": "You need to add at least:",
110
- "deleteSwapHistory": "Swap history is only stored locally and can't be recovered if you delete it.",
111
- "deleteActiveSwaps": "Active swaps are only stored locally and can't be recovered if you delete them.",
112
- "highValueLoss": "The value of the received tokens is significantly lower than the swapped tokens and transaction cost."
113
- }
114
- },
115
- "error": {
116
79
  "title": {
117
- "failed": "Swap failed.",
118
80
  "chainSwitch": "Chain switch required.",
81
+ "failed": "Swap failed.",
82
+ "slippageTooLarge": "Slippage too large.",
119
83
  "transactionFailed": "Transaction has failed.",
84
+ "transactionRejected": "Signature required.",
120
85
  "transactionUnderpriced": "Transaction is underpriced.",
121
86
  "transactionUnprepared": "Unable to prepare transaction.",
122
- "transactionRejected": "Signature required.",
123
87
  "unknown": "Something went wrong.",
124
- "slippageTooLarge": "Slippage too large.",
125
88
  "walletAddressInvalid": "Wallet address is invalid.",
126
89
  "walletEnsAddressInvalid": "Wallet address is invalid or network doesn't support ENS."
127
- },
90
+ }
91
+ },
92
+ "estimatedTime": "{{value}}m",
93
+ "featuredTokens": "Featured tokens",
94
+ "from": "From",
95
+ "fromAmount": "You pay",
96
+ "gasCost": "Gas cost",
97
+ "inProgress": "in progress",
98
+ "info": {
128
99
  "message": {
129
- "transactionRejected": "Your signature is required to complete the transaction. {{amount}} {{tokenSymbol}} on {{chainName}} remain in your wallet.",
130
- "transactionFailed": "Please check the block explorer for more information.",
131
- "transactionNotSent": "Transaction was not sent, your funds are still in your wallet ({{amount}} {{tokenSymbol}} on {{chainName}}).",
132
- "slippageTooLarge": "The slippage is larger than the defined threshold. Please request a new route to get a fresh quote."
100
+ "emptyActiveSwaps": "Swaps in progress will appear here. Once completed, find them in swap history.",
101
+ "emptySwapHistory": "Swap history is only stored locally and will be deleted if you clear your browser data.",
102
+ "emptyTokenList": "We couldn't find tokens on {{chainName}} chain or you don't have any. Please try search again or choose another chain.",
103
+ "routeNotFound": "Try another token combination."
104
+ },
105
+ "title": {
106
+ "emptyActiveSwaps": "No active swaps",
107
+ "emptySwapHistory": "No recent swaps",
108
+ "routeNotFound": "No routes available"
133
109
  }
134
110
  },
111
+ "onChain": "on {{chainName}}",
112
+ "otherTokens": "Other tokens",
135
113
  "process": {
136
- "tokenAllowance": {
137
- "started": "Setting token allowance.",
138
- "pending": "Waiting for token allowance.",
139
- "done": "Token allowance approved."
114
+ "crossChain": {
115
+ "actionRequired": "Please sign the transaction.",
116
+ "done": "Transaction approved.",
117
+ "pending": "Waiting for transaction.",
118
+ "started": "Preparing transaction."
140
119
  },
141
- "switchChain": {
142
- "actionRequired": "Chain switch required.",
143
- "done": "Chain switched successfully."
120
+ "receivingChain": {
121
+ "done": "Funds received.",
122
+ "pending": "Waiting for receiving chain."
144
123
  },
145
124
  "swap": {
146
- "started": "Preparing swap.",
147
125
  "actionRequired": "Please sign the transaction.",
126
+ "done": "Swap completed.",
148
127
  "pending": "Swapping.",
149
- "done": "Swap completed."
128
+ "started": "Preparing swap."
150
129
  },
151
- "crossChain": {
152
- "started": "Preparing transaction.",
153
- "actionRequired": "Please sign the transaction.",
154
- "pending": "Waiting for transaction.",
155
- "done": "Transaction approved."
130
+ "switchChain": {
131
+ "actionRequired": "Chain switch required.",
132
+ "done": "Chain switched successfully."
156
133
  },
157
- "receivingChain": {
158
- "pending": "Waiting for receiving chain.",
159
- "done": "Funds received."
134
+ "tokenAllowance": {
135
+ "done": "Token allowance approved.",
136
+ "pending": "Waiting for token allowance.",
137
+ "started": "Setting token allowance."
160
138
  }
161
- }
162
- },
163
- "settings": {
164
- "routePriority": "Route priority",
165
- "slippage": "Slippage",
166
- "gasPrice": {
167
- "title": "Gas price",
168
- "slow": "Slow",
169
- "normal": "Normal",
170
- "fast": "Fast"
171
139
  },
172
- "advancedPreferences": "Advanced preferences",
173
- "showDestinationWallet": "Show destination wallet",
174
- "enabledBridges": "Enabled bridges",
175
- "selectEnabledBridges": "Select enabled bridges",
176
- "enabledExchanges": "Enabled exchanges",
177
- "selectEnabledExchanges": "Select enabled exchanges",
178
- "resetToDefault": "Reset to default"
179
- },
180
- "wallet": {
181
- "extensionNotFound": "Please make sure that only the {{name}} browser extension is active before choosing this wallet."
140
+ "receiving": "Receiving",
141
+ "routes": "You get",
142
+ "selectChain": "Chain",
143
+ "selectChainAndToken": "Select chain and token",
144
+ "selectToken": "Token",
145
+ "sendToWallet": "Send to a different wallet",
146
+ "stepBridge": "Bridge",
147
+ "stepSwap": "Swap",
148
+ "stepSwapAndBridge": "Swap and bridge",
149
+ "success": {
150
+ "message": {
151
+ "swapSuccessful": "There are now {{amount, number(maximumFractionDigits: 4)}} {{tokenSymbol}} in wallet {{walletAddress}} on {{chainName}} chain."
152
+ },
153
+ "title": {
154
+ "gasSwapSuccessful": "Gas swap successful",
155
+ "swapSuccessful": "Swap successful"
156
+ }
157
+ },
158
+ "supportId": "Support ID",
159
+ "swapStepDetails": "Swap on {{chain}} via {{tool}}",
160
+ "swapping": "Swapping",
161
+ "tags": {
162
+ "ALTERNATIVE": "ALTERNATIVE",
163
+ "CHEAPEST": "CHEAP",
164
+ "FASTEST": "FAST",
165
+ "RECOMMENDED": "RECOMMENDED",
166
+ "SAFEST": "SAFE"
167
+ },
168
+ "to": "To",
169
+ "tokenOnChain": "{{tokenSymbol}} on {{chainName}}",
170
+ "tokenOnChainAmount": "{{amount, number(maximumFractionDigits: 4)}} {{tokenSymbol}} on {{chainName}}",
171
+ "tokenSearch": "Search your token",
172
+ "valueLoss": "Value loss",
173
+ "walletAddressOrEns": "Wallet address or ENS name",
174
+ "warning": {
175
+ "message": {
176
+ "deleteActiveSwaps": "Active swaps are only stored locally and can't be recovered if you delete them.",
177
+ "deleteSwapHistory": "Swap history is only stored locally and can't be recovered if you delete it.",
178
+ "highValueLoss": "The value of the received tokens is significantly lower than the swapped tokens and transaction cost.",
179
+ "insufficientFunds": "You don't have enough funds to execute the swap.",
180
+ "insufficientGas": "You need to add at least:"
181
+ },
182
+ "title": {
183
+ "deleteActiveSwaps": "Delete all active swaps?",
184
+ "deleteSwap": "Delete this swap?",
185
+ "deleteSwapHistory": "Delete swap history?",
186
+ "highValueLoss": "High value loss",
187
+ "insufficientGas": "Insufficient gas"
188
+ }
189
+ }
182
190
  },
183
191
  "tooltip": {
192
+ "estimatedNetworkFee": "Estimated network fee.",
193
+ "estimatedTime": "Estimated swap execution time in minutes.",
184
194
  "notFound": {
185
- "title": "404",
186
- "text": "We couldn't find this page."
195
+ "text": "We couldn't find this page.",
196
+ "title": "404"
187
197
  },
198
+ "numberOfSteps": "A number of swap steps. Each step can contain 1-2 transactions that require a signature.",
188
199
  "progressToNextUpdate": "Displayed data will auto-refresh after {{value}} seconds. Click here to update manually.",
189
- "numberOfSteps": "A number of swap steps. Each step can contain 1-3 transactions that require a signature.",
190
- "estimatedTime": "Estimated swap execution time in minutes.",
191
- "estimatedNetworkFee": "Estimated network fee.",
192
200
  "settingsModified": "Settings (modified)"
201
+ },
202
+ "wallet": {
203
+ "extensionNotFound": "Please make sure that only the {{name}} browser extension is active before choosing this wallet."
193
204
  }
194
205
  }