[WIP] Plural Localization for banner-subtitle (IOS-241)
Caveat: doesn't work yet 🤡
This commit is contained in:
parent
ffc80268c5
commit
287587fcf1
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
|
@ -85,6 +85,6 @@ class NotificationFilteringBannerTableViewCell: UITableViewCell {
|
|||
}
|
||||
|
||||
func configure(with policy: Mastodon.Entity.NotificationPolicy) {
|
||||
subtitleLabel.text = "\(policy.summary.pendingRequestsCount) people you may know"
|
||||
subtitleLabel.text = L10n.Plural.FilteredNotificationBanner.subtitle(policy.summary.pendingRequestsCount)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1982,6 +1982,12 @@ public enum L10n {
|
|||
}
|
||||
}
|
||||
}
|
||||
public enum FilteredNotificationBanner {
|
||||
/// Plural format key: "%#@number_of_requests@"
|
||||
public static func subtitle(_ p1: Int) -> String {
|
||||
return L10n.tr("Localizable", "plural.filtered_notification_banner.subtitle", p1, fallback: "Plural format key: \"%#@number_of_requests@\"")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// swiftlint:enable explicit_type_interface function_parameter_count identifier_name line_length
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue