Fix localization

This commit is contained in:
Ilya Laktyushin
2024-09-05 01:02:49 +04:00
parent 15e172aa2e
commit ae2a6bef84
2 changed files with 7 additions and 1 deletions

View File

@@ -973,7 +973,8 @@ public func universalServiceMessageString(presentationData: (PresentationTheme,
}
let resultTitleString: PresentationStrings.FormattedString
if let stars {
resultTitleString = isGroup ? strings.Notification_GiveawayStartedStarsGroup(compactAuthorName, "\(stars)") : strings.Notification_GiveawayStartedStars(compactAuthorName, "\(stars)")
let starsString = strings.Notification_StarsGiveawayStarted_Stars(Int32(stars))
resultTitleString = isGroup ? strings.Notification_StarsGiveawayStartedGroup(compactAuthorName, starsString) : strings.Notification_StarsGiveawayStarted(compactAuthorName, starsString)
} else {
resultTitleString = isGroup ? strings.Notification_GiveawayStartedGroup(compactAuthorName) : strings.Notification_GiveawayStarted(compactAuthorName)
}