Skip to content

Commit 1fe431e

Browse files
fix: translation comments (#4963)
* chore: add changeset * fix: add helper comments for yarn extract-translations
1 parent 4137515 commit 1fe431e

File tree

3 files changed

+22
-8
lines changed

3 files changed

+22
-8
lines changed

.changeset/odd-cooks-punch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@venusprotocol/evm": minor
3+
---
4+
5+
Added helper comments for extract-translations

apps/evm/src/libs/translations/translations/en.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,13 @@
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",
@@ -976,12 +976,12 @@
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": {

apps/evm/src/pages/Account/Transactions/index.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,15 @@ const PAGE_PARAM_KEY = 'page';
1515
const TX_TYPE_PARAM_KEY = 'txType';
1616
const 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+
1827
const getTxTypeOptionTranslationKey = (txType: TxType) => {
1928
switch (txType) {
2029
case TxType.Mint:

0 commit comments

Comments
 (0)