Change "Unfollow" to "Following"

This commit is contained in:
Justin Mazzocchi 2021-03-01 14:55:03 -08:00
parent 2508c0a15e
commit b235344268
No known key found for this signature in database
GPG key ID: E223E6937AAFB01C
2 changed files with 2 additions and 3 deletions

View file

@ -48,7 +48,6 @@
"account.unavailable" = "Profile unavailable";
"account.unblock" = "Unblock";
"account.unblock.confirm-%@" = "Unblock %@?";
"account.unfollow" = "Unfollow";
"account.unfollow.confirm-%@" = "Unfollow %@?";
"account.unmute" = "Unmute";
"account.unmute.confirm-%@" = "Unmute %@?";

View file

@ -67,7 +67,7 @@ final class AccountHeaderView: UIView {
unfollowButton.isHidden = !(relationship.following || relationship.requested)
unfollowButton.setTitle(
NSLocalizedString(
relationship.requested ? "account.request.cancel" : "account.unfollow",
relationship.requested ? "account.request.cancel" : "account.following",
comment: ""),
for: .normal)
@ -321,7 +321,7 @@ private extension AccountHeaderView {
systemName: "checkmark",
withConfiguration: UIImage.SymbolConfiguration(scale: .small)),
for: .normal)
unfollowButton.setTitle(NSLocalizedString("account.unfollow", comment: ""), for: .normal)
unfollowButton.setTitle(NSLocalizedString("account.following", comment: ""), for: .normal)
unfollowButton.isHidden = true
unfollowButton.addAction(
UIAction { [weak self] _ in self?.viewModel.accountViewModel?.confirmUnfollow() },