mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Gift format
This commit is contained in:
parent
a3f9ba1fe0
commit
1e4357c94e
1 changed files with 10 additions and 0 deletions
10
submodules/TelegramStringFormatting/Sources/GiftFormat.swift
Normal file
10
submodules/TelegramStringFormatting/Sources/GiftFormat.swift
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import Foundation
|
||||
import TelegramPresentationData
|
||||
|
||||
public func formatCollectibleNumber(_ number: Int32, dateTimeFormat: PresentationDateTimeFormat) -> String {
|
||||
if number > 9999 {
|
||||
return presentationStringsFormattedNumber(number, dateTimeFormat.groupingSeparator)
|
||||
} else {
|
||||
return "\(number)"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue