feat: dynamic singular and plural strings on triggers descriptions
This commit is contained in:
parent
58b74a6425
commit
95e10190b1
2 changed files with 19 additions and 6 deletions
|
|
@ -26,4 +26,7 @@ const startCase = R.compose(
|
|||
splitOnUpper
|
||||
)
|
||||
|
||||
export { startCase, onlyFirstToUpper, formatLong }
|
||||
const singularOrPlural = (amount, singularStr, pluralStr) =>
|
||||
parseInt(amount) === 1 ? singularStr : pluralStr
|
||||
|
||||
export { startCase, onlyFirstToUpper, formatLong, singularOrPlural }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue