mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-04-24 16:46:02 +02:00
11 lines
323 B
Swift
11 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)"
|
|
}
|
|
}
|