mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
10 lines
323 B
Swift
10 lines
323 B
Swift
import Foundation
|
|
import TelegramPresentationData
|
|
|
|
public func formatCollectibleNumber(_ number: Int32, dateTimeFormat: PresentationDateTimeFormat) -> String {
|
|
if number > 9999 {
|
|
return presentationStringsFormattedNumber(number, dateTimeFormat.groupingSeparator)
|
|
} else {
|
|
return "\(number)"
|
|
}
|
|
}
|