Fix split sentence: "%view_count% %views%"

The only issue I have with this as a translator is that I have no idea what this sentence is about, as both chunks are variables. This fix is more for clarity.

#4239
This commit is contained in:
infiinte-persistence 2020-05-26 20:49:21 +08:00
parent a29ac63178
commit 91a0c6b4fb
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0
2 changed files with 5 additions and 4 deletions

View file

@ -885,6 +885,8 @@
"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",
"%view_count% Views": "%view_count% Views",
"%view_count% views": "%view_count% views",
"%view_count% view": "%view_count% view",
"1 View": "1 View",
"There was an error. It's been reported and will be fixed. Try %refreshing_the_app_link% to fix it. If that doesn't work, try pressing Ctrl+R/Cmd+R.": "There was an error. It's been reported and will be fixed. Try %refreshing_the_app_link% to fix it. If that doesn't work, try pressing Ctrl+R/Cmd+R.",
"Upload your thumbnail to %speech_link%. Recommended size is 16:9.": "Upload your thumbnail to %speech_link%. Recommended size is 16:9.",

View file

@ -178,10 +178,9 @@ export default function CreatorAnalytics(props: Props) {
</div>
<div className="section__subtitle card__data-subtitle">
<span>
{__('%view_count% %views%', {
view_count: stats.VideoViewsTopNew,
views: stats.VideoViewsTopNew === 1 ? 'view' : 'views',
})}
{stats.VideoViewsTopNew === 1
? __('%view_count% view', { view_count: stats.VideoViewsTopNew })
: __('%view_count% views', { view_count: stats.VideoViewsTopNew })}
</span>
{stats.VideoViewsTopNew > 0 && <Icon icon={ICONS.SUPPORT} iconColor="green" size={18} />}
</div>