Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fmtTime for plural words #15

Open
nickpalenchar opened this issue May 25, 2020 · 0 comments
Open

fmtTime for plural words #15

nickpalenchar opened this issue May 25, 2020 · 0 comments

Comments

@nickpalenchar
Copy link
Owner

Ability to add words (usually a human name for the unit), that will automatically be pluralized if the value is anything but 1.

timer.fmtTime('%S {%s:second} left') // => "10 seconds left", "1 second left"

signature proposed

{%unit:WORD}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant