mirror of
https://github.com/cupcakearmy/uhrwerk.git
synced 2024-12-22 07:26:24 +00:00
Update README.md
This commit is contained in:
parent
8100b7fbad
commit
7b73034b1b
@ -124,6 +124,7 @@ a.humanize() // 'a few minutes'
|
||||
##### Own rules / i18n
|
||||
|
||||
If you want to pass a different humanize function you can.
|
||||
The order of the array is important. The first match will return, like in a standard server router. The first argument is a function that takes the duration and returns a boolean. The second takes also matched duration and returns a string for the user.
|
||||
|
||||
###### Example
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user