From 7eca3dfea2cb452f86a3c5f20e9705503e30d8ac Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Fri, 6 Dec 2019 15:58:17 +0100 Subject: [PATCH] i18n tweaks --- src/component/walletRewardsDriver/view.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/component/walletRewardsDriver/view.js b/src/component/walletRewardsDriver/view.js index ea99f21..c3220bf 100644 --- a/src/component/walletRewardsDriver/view.js +++ b/src/component/walletRewardsDriver/view.js @@ -13,15 +13,21 @@ class WalletRewardsDriver extends React.PureComponent { {signedIn && ( - {unclaimedRewardAmount > 0 ? unclaimedRewardAmount : ''} free credit{unclaimedRewardAmount === 1 ? '' : 's'}{' '} - available in rewards. Tap to learn more. + {unclaimedRewardAmount === 0 && __('Free credits available in rewards.')} + {unclaimedRewardAmount === 1 && + __('%amount% free credit available in rewards.', { amount: unclaimedRewardAmount })} + {unclaimedRewardAmount > 1 && + __('%amount% free credits available in rewards.', { amount: unclaimedRewardAmount })}{' '} + {__('Tap to learn more.')} )} {!signedIn && ( - Get {unclaimedRewardAmount > 0 ? unclaimedRewardAmount : ''} free credit - {unclaimedRewardAmount === 1 ? '' : 's'} after creating an account. + {unclaimedRewardAmount === 1 && + __('Get %amount% free credit after creating an account.', { amount: unclaimedRewardAmount })} + {unclaimedRewardAmount !== 1 && + __('Get %amount% free credits after creating an account.', { amount: unclaimedRewardAmount })} )}