This commit is contained in:
Sean Yesmunt 2020-05-25 12:19:15 -04:00
parent b2a57e0cf6
commit b244261715
2 changed files with 5 additions and 2 deletions

View file

@ -18,9 +18,11 @@ function FileViewCount(props: Props) {
}
}, [fetchViewCount, uri, claim]);
const formattedViewCount = Number(viewCount).toLocaleString();
return (
<span>
{viewCount !== 1 ? __('%view_count% Views', { view_count: viewCount }) : __('1 View')}
{viewCount !== 1 ? __('%view_count% Views', { view_count: formattedViewCount }) : __('1 View')}
<HelpLink href="https://lbry.com/faq/views" />
</span>
);

View file

@ -90,6 +90,7 @@ function ChannelPage(props: Props) {
const [searchResults, setSearchResults] = useState(undefined);
const [lastYtSyncDate, setLastYtSyncDate] = useState();
const claimId = claim.claim_id;
const formattedSubCount = Number(subCount).toLocaleString();
// If a user changes tabs, update the url so it stays on the same page if they refresh.
// We don't want to use links here because we can't animate the tab change and using links
@ -240,7 +241,7 @@ function ChannelPage(props: Props) {
<h1 className="channel__title">{title || '@' + channelName}</h1>
<div className="channel__meta">
<span>
{subCount} {subCount !== 1 ? __('Followers') : __('Follower')}
{formattedSubCount} {subCount !== 1 ? __('Followers') : __('Follower')}
<HelpLink href="https://lbry.com/faq/views" />
</span>
{channelIsMine && !editing && (