chore: Add missing L10n
This commit is contained in:
parent
f112e68e79
commit
6a9b29e4a6
|
@ -725,7 +725,16 @@
|
|||
|
||||
},
|
||||
"followed_tags": {
|
||||
"title": "Followed Tags"
|
||||
"title": "Followed Tags",
|
||||
"header": {
|
||||
"posts": "posts",
|
||||
"participants": "participants",
|
||||
"posts_today": "posts today"
|
||||
},
|
||||
"actions": {
|
||||
"follow": "Follow",
|
||||
"unfollow": "Unfollow"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -105,9 +105,9 @@ private extension HashtagTimelineHeaderView {
|
|||
$0.font = UIFontMetrics(forTextStyle: .footnote).scaledFont(for: .systemFont(ofSize: 13, weight: .regular))
|
||||
}
|
||||
|
||||
postCountDescLabel.text = "posts"
|
||||
participantsDescLabel.text = "participants"
|
||||
postsTodayDescLabel.text = "posts today"
|
||||
postCountDescLabel.text = L10n.Scene.FollowedTags.Header.posts
|
||||
participantsDescLabel.text = L10n.Scene.FollowedTags.Header.participants
|
||||
postsTodayDescLabel.text = L10n.Scene.FollowedTags.Header.postsToday
|
||||
|
||||
followButton.addAction(UIAction(handler: { [weak self] _ in
|
||||
self?.onButtonTapped?()
|
||||
|
@ -152,7 +152,7 @@ private extension HashtagTimelineHeaderView {
|
|||
extension HashtagTimelineHeaderView {
|
||||
func update(_ entity: HashtagTimelineHeaderView.Data) {
|
||||
titleLabel.text = "#\(entity.name)"
|
||||
followButton.setTitle(entity.following == true ? "Unfollow" : "Follow", for: .normal)
|
||||
followButton.setTitle(entity.following == true ? L10n.Scene.FollowedTags.Actions.unfollow : L10n.Scene.FollowedTags.Actions.follow, for: .normal)
|
||||
|
||||
followButton.backgroundColor = entity.following == true ? Asset.Colors.Button.tagUnfollow.color : Asset.Colors.Button.tagFollow.color
|
||||
followButton.setTitleColor(
|
||||
|
|
|
@ -636,6 +636,20 @@ public enum L10n {
|
|||
public enum FollowedTags {
|
||||
/// Followed Tags
|
||||
public static let title = L10n.tr("Localizable", "Scene.FollowedTags.Title", fallback: "Followed Tags")
|
||||
public enum Actions {
|
||||
/// follow
|
||||
public static let follow = L10n.tr("Localizable", "Scene.FollowedTags.Actions.Follow", fallback: "follow")
|
||||
}
|
||||
public enum Header {
|
||||
/// participants
|
||||
public static let participants = L10n.tr("Localizable", "Scene.FollowedTags.Header.Participants", fallback: "participants")
|
||||
/// posts
|
||||
public static let posts = L10n.tr("Localizable", "Scene.FollowedTags.Header.Posts", fallback: "posts")
|
||||
/// posts today
|
||||
public static let postsToday = L10n.tr("Localizable", "Scene.FollowedTags.Header.PostsToday", fallback: "posts today")
|
||||
/// unfollow
|
||||
public static let unfollow = L10n.tr("Localizable", "Scene.FollowedTags.Header.Unfollow", fallback: "unfollow")
|
||||
}
|
||||
}
|
||||
public enum Follower {
|
||||
/// Followers from other servers are not displayed.
|
||||
|
|
|
@ -232,6 +232,11 @@ uploaded to Mastodon.";
|
|||
"Scene.Follower.Footer" = "Followers from other servers are not displayed.";
|
||||
"Scene.Follower.Title" = "follower";
|
||||
"Scene.FollowedTags.Title" = "Followed Tags";
|
||||
"Scene.FollowedTags.Header.Posts" = "posts";
|
||||
"Scene.FollowedTags.Header.Participants" = "participants";
|
||||
"Scene.FollowedTags.Header.PostsToday" = "posts today";
|
||||
"Scene.FollowedTags.Actions.Follow" = "follow";
|
||||
"Scene.FollowedTags.Header.Unfollow" = "unfollow";
|
||||
"Scene.Following.Footer" = "Follows from other servers are not displayed.";
|
||||
"Scene.Following.Title" = "following";
|
||||
"Scene.HomeTimeline.NavigationBarState.Accessibility.LogoHint" = "Tap to scroll to top and tap again to previous location";
|
||||
|
|
|
@ -232,6 +232,11 @@ uploaded to Mastodon.";
|
|||
"Scene.Follower.Footer" = "Followers from other servers are not displayed.";
|
||||
"Scene.Follower.Title" = "follower";
|
||||
"Scene.FollowedTags.Title" = "Followed Tags";
|
||||
"Scene.FollowedTags.Header.Posts" = "posts";
|
||||
"Scene.FollowedTags.Header.Participants" = "participants";
|
||||
"Scene.FollowedTags.Header.PostsToday" = "posts today";
|
||||
"Scene.FollowedTags.Actions.Follow" = "follow";
|
||||
"Scene.FollowedTags.Header.Unfollow" = "unfollow";
|
||||
"Scene.Following.Footer" = "Follows from other servers are not displayed.";
|
||||
"Scene.Following.Title" = "following";
|
||||
"Scene.HomeTimeline.NavigationBarState.Accessibility.LogoHint" = "Tap to scroll to top and tap again to previous location";
|
||||
|
|
Loading…
Reference in New Issue