Skip to content

Commit

Permalink
fix: add missing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Jul 27, 2022
1 parent 3960544 commit 8fc5cbe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
7 changes: 5 additions & 2 deletions packages/widget/src/i18n/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"button": {
"connectWallet": "Connect wallet",
"switchChain": "Switch chain",
"swap": "Swap",
"reviewSwap": "Review swap",
"startSwap": "Start swap",
"restartSwap": "Restart swap",
Expand Down Expand Up @@ -78,10 +79,12 @@
},
"info": {
"title": {
"routeNotFound": "No routes available"
"routeNotFound": "No routes available",
"emptySwapHistory": "No recent swaps"
},
"message": {
"routeNotFound": "Try another token combination."
"routeNotFound": "Try another token combination.",
"emptySwapHistory": "Swap history is only stored locally and will be deleted if you clear your browser data."
}
},
"warning": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,15 @@ export const SwapHistoryEmpty: React.FC = () => {
<HistoryIcon fontSize="inherit" />
</Typography>
<Typography fontSize={18} fontWeight={700}>
No recent swaps
{t('swap.info.title.emptySwapHistory')}
</Typography>
<Typography
fontSize={14}
color="text.secondary"
textAlign="center"
mt={2}
>
Swap history is only stored locally and will be deleted if you clear
your browser data.
{t('swap.info.message.emptySwapHistory')}
</Typography>
</Container>
);
Expand Down

0 comments on commit 8fc5cbe

Please sign in to comment.