mirror of
https://github.com/tonytins/amtkstat.git
synced 2026-10-24 05:32:54 -04:00
This change adds proper singular/plural labels for minutes and hours in the lateness display, fixes green status text contrast for dark mode, and updates the README to credit the Amtrak.js models used as a base.
7 lines
147 B
Swift
7 lines
147 B
Swift
import Foundation
|
|
|
|
extension Int {
|
|
func pluralized(singular: String, plural: String) -> String {
|
|
self == 1 ? singular : plural
|
|
}
|
|
}
|