rearrange translation logic (#8880)
This commit is contained in:
@@ -513,12 +513,19 @@ export function FollowButtonInner({
|
|||||||
comment: 'User is following this account, click to unfollow',
|
comment: 'User is following this account, click to unfollow',
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
const followLabel = _(
|
const followLabel = profile.viewer?.followedBy
|
||||||
msg({
|
? _(
|
||||||
message: profile.viewer?.followedBy ? 'Follow back' : 'Follow',
|
msg({
|
||||||
comment: 'User is not following this account, click to follow',
|
message: 'Follow back',
|
||||||
}),
|
comment: 'User is not following this account, click to follow back',
|
||||||
)
|
}),
|
||||||
|
)
|
||||||
|
: _(
|
||||||
|
msg({
|
||||||
|
message: 'Follow',
|
||||||
|
comment: 'User is not following this account, click to follow',
|
||||||
|
}),
|
||||||
|
)
|
||||||
|
|
||||||
if (!profile.viewer) return null
|
if (!profile.viewer) return null
|
||||||
if (
|
if (
|
||||||
|
|||||||
Reference in New Issue
Block a user