fix international for views

This commit is contained in:
Jeremy Kauffman 2020-01-03 14:33:35 -05:00
parent 7dfc727a0a
commit 7527cef3fe
2 changed files with 4 additions and 2 deletions

View file

@ -942,5 +942,7 @@
"Unlock Rewards": "Unlock Rewards",
"A lbry.tv account allows you to earn more than %credit_amount% in rewards, backup your data, and get content and security updates.": "A lbry.tv account allows you to earn more than %credit_amount% in rewards, backup your data, and get content and security updates.",
"Deposit cannot be higher than your balance": "Deposit cannot be higher than your balance",
"Earn %rewards_link% for inviting your friends. Read our %referral_faq_link% to learn more about referrals.": "Earn %rewards_link% for inviting your friends. Read our %referral_faq_link% to learn more about referrals."
"Earn %rewards_link% for inviting your friends. Read our %referral_faq_link% to learn more about referrals.": "Earn %rewards_link% for inviting your friends. Read our %referral_faq_link% to learn more about referrals.",
"%view_count% Views": "%view_count% Views",
"1 View": "1 View"
}

View file

@ -170,7 +170,7 @@ class FilePage extends React.Component<Props> {
<div className="media__subtitle--between">
<DateTime uri={uri} show={DateTime.SHOW_DATE} />
<span>
{viewCount} {viewCount !== 1 ? __('Views') : __('View')}
{viewCount !== 1 ? __('%view_count% Views', { view_count: viewCount }) : __('1 View')}
<HelpLink href="https://lbry.com/faq/views" />
</span>
</div>