From ffe22e1c5035e64021e92bf272a824b128223ff5 Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Fri, 20 Aug 2021 09:21:26 +0800 Subject: [PATCH] i18n --- static/app-strings.json | 13 +++++++++---- ui/component/claimPreview/view.jsx | 4 +--- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/static/app-strings.json b/static/app-strings.json index 896dd1b96..7b2e6774a 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -1450,7 +1450,6 @@ "Controversial": "Controversial", "Show Replies": "Show Replies", "Hide replies": "Hide replies", - "Unable to create comment, please try again later.": "Unable to create comment, please try again later.", "Unable to comment. This channel has blocked you.": "Unable to comment. This channel has blocked you.", "Unable to comment. Your channel has been blocked by an admin.": "Unable to comment. Your channel has been blocked by an admin.", "Unable to comment. The content owner has disabled comments.": "Unable to comment. The content owner has disabled comments.", @@ -1621,7 +1620,7 @@ "No Reposts Found": "No Reposts Found", "Publish Something": "Publish Something", "Repost Something": "Repost Something", - "Watch on lbry.tv": "Watch on lbry.tv", + "Watch on %SITE_NAME%": "Watch on %SITE_NAME%", "Paid content cannot be embedded.": "Paid content cannot be embedded.", "Please wait a bit, we are still getting your account ready.": "Please wait a bit, we are still getting your account ready.", "this channel is connected to a different account. Contact hello@lbry.com for help.": "this channel is connected to a different account. Contact hello@lbry.com for help.", @@ -1944,6 +1943,7 @@ "Enabling a minimum amount to comment will force all comments, including livestreams, to have tips associated with them. This can help prevent spam.": "Enabling a minimum amount to comment will force all comments, including livestreams, to have tips associated with them. This can help prevent spam.", "Minimum %lbc% tip amount for hyperchats": "Minimum %lbc% tip amount for hyperchats", "Enabling a minimum amount to hyperchat will force all TIPPED comments to have this value in order to be shown. This still allows regular comments to be posted.": "Enabling a minimum amount to hyperchat will force all TIPPED comments to have this value in order to be shown. This still allows regular comments to be posted.", + "This settings is not applicable if all comments require a tip.": "This settings is not applicable if all comments require a tip.", "Settings unavailable for this channel": "Settings unavailable for this channel", "This channel isn't staking enough LBRY Credits to enable Creator Settings.": "This channel isn't staking enough LBRY Credits to enable Creator Settings.", "Not a channel (prefix with \"@\", or enter the channel URL)": "Not a channel (prefix with \"@\", or enter the channel URL)", @@ -2090,10 +2090,15 @@ "Expand Comments": "Expand Comments", "Expand": "Expand", "Load More": "Load More", - "%channelSubCount% Followers": "%channelSubCount% Followers", - "%channelSubCount% Follower": "%channelSubCount% Follower", + "%formattedSubCount% Followers": "%formattedSubCount% Followers", + "1 Follower": "1 Follower", "Collection": "Collection", "%channelName% isn't live right now, but the chat is! Check back later to watch the stream.": "%channelName% isn't live right now, but the chat is! Check back later to watch the stream.", "Review": "Review", + "Account History": "Account History", + "Payment History": "Payment History", + "There was an error from the server, please try again later": "There was an error from the server, please try again later", + "There was an error getting your card setup, please try again later": "There was an error getting your card setup, please try again later", + "View Transactions": "View Transactions", "--end--": "--end--" } diff --git a/ui/component/claimPreview/view.jsx b/ui/component/claimPreview/view.jsx index 5370d14f4..2e1844ac9 100644 --- a/ui/component/claimPreview/view.jsx +++ b/ui/component/claimPreview/view.jsx @@ -175,9 +175,7 @@ const ClaimPreview = forwardRef((props: Props, ref: any) => { const formattedSubCount = Number(channelSubCount).toLocaleString(); return ( - {channelSubCount === 1 - ? __('%formattedSubCount% Follower', { formattedSubCount }) - : __('%formattedSubCount% Followers', { formattedSubCount })} + {channelSubCount === 1 ? __('1 Follower') : __('%formattedSubCount% Followers', { formattedSubCount })} ); }, [channelSubCount]);