File tree Expand file tree Collapse file tree 3 files changed +22
-8
lines changed
libs/translations/translations
pages/Account/Transactions Expand file tree Collapse file tree 3 files changed +22
-8
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @venusprotocol/evm " : minor
3+ ---
4+
5+ Added helper comments for extract-translations
Original file line number Diff line number Diff line change 9393 },
9494 "txType" : {
9595 "all" : " All transactions" ,
96- "mint" : " Supply" ,
97- "borrow" : " Borrow" ,
98- "redeem" : " Withdraw" ,
99- "repay" : " Repayment" ,
10096 "approve" : " Approval" ,
97+ "borrow" : " Borrow" ,
10198 "enterMarket" : " Enabled collateral" ,
102- "exitMarket" : " Disabled collateral"
99+ "exitMarket" : " Disabled collateral" ,
100+ "mint" : " Supply" ,
101+ "redeem" : " Withdraw" ,
102+ "repay" : " Repayment"
103103 }
104104 },
105105 "today" : " Today" ,
976976 "label" : " Price impact" ,
977977 "tooltip" : " Difference between the market price and estimated price due to trade size."
978978 },
979+ "slippageTolerance" : {
980+ "label" : " Slippage tolerance"
981+ },
979982 "slippageToleranceModal" : {
980983 "description" : " Setting a high slippage tolerance can help transactions succeed, but you may not get such a good price. Use with caution." ,
981984 "title" : " Slippage tolerance"
982- },
983- "slippageTolerance" : {
984- "label" : " Slippage tolerance"
985985 }
986986 },
987987 "swapPage" : {
Original file line number Diff line number Diff line change @@ -15,6 +15,15 @@ const PAGE_PARAM_KEY = 'page';
1515const TX_TYPE_PARAM_KEY = 'txType' ;
1616const CONTRACT_ADDRESS_PARAM_KEY = 'contractAddress' ;
1717
18+ // DO NOT REMOVE COMMENT: needed by i18next to extract translation key
19+ // t('account.transactions.selects.txType.mint')
20+ // t('account.transactions.selects.txType.repay')
21+ // t('account.transactions.selects.txType.borrow')
22+ // t('account.transactions.selects.txType.redeem')
23+ // t('account.transactions.selects.txType.approve')
24+ // t('account.transactions.selects.txType.exitMarket')
25+ // t('account.transactions.selects.txType.enterMarket')
26+
1827const getTxTypeOptionTranslationKey = ( txType : TxType ) => {
1928 switch ( txType ) {
2029 case TxType . Mint :
You can’t perform that action at this time.
0 commit comments