(count: number, singular: string, plural: string)
| 71 | |
| 72 | /** `n thing` or `n things`, so a generated sentence never reads as machine output. */ |
| 73 | export function countOf(count: number, singular: string, plural: string): string { |
| 74 | return `${count} ${count === 1 ? singular : plural}`; |
| 75 | } |
| 76 | |
| 77 | // --------------------------------------------------------------------------- |
| 78 | // Empty states, one per surface. Never a blank panel. |
no outgoing calls
no test coverage detected