Fix localization concatenation + Cleanup unused strings #4239

Merged
infinite-persistence merged 9 commits from fix-localization-concat into master 2020-05-28 15:50:09 +02:00
2 changed files with 5 additions and 4 deletions
Showing only changes of commit 91a0c6b4fb - Show all commits

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>