blob: f9560575ecdf9c9de347979f2843b71b2864e4bf [file] [log] [blame]
pineafane625d782022-05-09 18:04:32 +01001function addPlural(amount: any, unit: string) {
2 if (amount === '1') return `${amount} ${unit}`
3 return `${amount} ${unit}s`
4}
5
6export default addPlural;