Str-context-split: "Follow"

## Issue
4192
This commit is contained in:
infiinte-persistence 2020-10-09 15:13:28 +08:00 committed by Sean Yesmunt
parent d7a178d259
commit 80b4600f60
5 changed files with 8 additions and 4 deletions

View file

@ -21,6 +21,8 @@
"Library": "Library", "Library": "Library",
"Purchased": "Purchased", "Purchased": "Purchased",
"Following": "Following", "Following": "Following",
"Following --[sidebar button]--": "Following",
"Following --[button label indicating a channel has been followed]--": "Following",
"The tags you follow will change what's trending for you.": "The tags you follow will change what's trending for you.", "The tags you follow will change what's trending for you.": "The tags you follow will change what's trending for you.",
"Tags": "Tags", "Tags": "Tags",
"Send a tip": "Send a tip", "Send a tip": "Send a tip",

View file

@ -21,7 +21,7 @@ const HOME = {
}; };
const RECENT_FROM_FOLLOWING = { const RECENT_FROM_FOLLOWING = {
label: 'Following', label: 'Following --[sidebar button]--',
navigate: `/$/${PAGES.CHANNELS_FOLLOWING}`, navigate: `/$/${PAGES.CHANNELS_FOLLOWING}`,
icon: ICONS.SUBSCRIBE, icon: ICONS.SUBSCRIBE,
}; };

View file

@ -41,7 +41,9 @@ export default function SubscribeButton(props: Props) {
const claimName = '@' + channelName; const claimName = '@' + channelName;
const subscriptionHandler = isSubscribed ? doChannelUnsubscribe : doChannelSubscribe; const subscriptionHandler = isSubscribed ? doChannelUnsubscribe : doChannelSubscribe;
const subscriptionLabel = isSubscribed ? __('Following') : __('Follow'); const subscriptionLabel = isSubscribed
? __('Following --[button label indicating a channel has been followed]--')
: __('Follow');
const unfollowOverride = isSubscribed && isHovering && __('Unfollow'); const unfollowOverride = isSubscribed && isHovering && __('Unfollow');
const label = isMobile && shrinkOnMobile ? '' : unfollowOverride || subscriptionLabel; const label = isMobile && shrinkOnMobile ? '' : unfollowOverride || subscriptionLabel;

View file

@ -148,7 +148,7 @@ export default function TagsSearch(props: Props) {
%selectTagsLabel% (%number% left) %selectTagsLabel% (%number% left)
</I18nMessage> </I18nMessage>
) : ( ) : (
label || __('Following') label || __('Following --[button label indicating a channel has been followed]--')
)} )}
</label> </label>
<ul className="tags--remove"> <ul className="tags--remove">

View file

@ -50,7 +50,7 @@ function DiscoverPage(props: Props) {
const tag = (tags && tags[0]) || null; const tag = (tags && tags[0]) || null;
const isFollowing = followedTags.map(({ name }) => name).includes(tag); const isFollowing = followedTags.map(({ name }) => name).includes(tag);
let label = isFollowing ? __('Following') : __('Follow'); let label = isFollowing ? __('Following --[button label indicating a channel has been followed]--') : __('Follow');
if (isHovering && isFollowing) { if (isHovering && isFollowing) {
label = __('Unfollow'); label = __('Unfollow');
} }