marcreichel/alpine-timeago

Remove "less than", "about" prefixes?

jaimeiniesta opened this issue ยท 2 comments

Hi!

I see there's an option to remove the "ago" suffix, but I don't see how to remove the prefixes for "less than", "about", etc.

In some cases I find this handy to produce shorter strings, so for example:

"less than 20 seconds ago" -> "20 seconds ago"
"less than a minute ago" -> "a minute ago"
"about 20 hours ago" -> "20 hours ago"

@jaimeiniesta Thanks for requesting this feature.

I've implemented it in version 1.4.0 ๐Ÿ‘๐Ÿผ Feel free to update ๐Ÿ‘๐Ÿผ The docs for the directive can be found here and the docs for the magic function can be found here.

Wow, that was quick, thanks!