timeago icon indicating copy to clipboard operation
timeago copied to clipboard

what about future times?

Open fdncred opened this issue 2 years ago • 3 comments

It would be nice to have the equivalent of .ago("ago") but for future times like .in("in") so when you have a time in the future it says in 8 hours and ago() and in() are mutually exclusive.

fdncred avatar Sep 08 '23 14:09 fdncred

Will it be similarly easy in in other languages?

ago adjustable was created with an eye to allow prepending "in " manually if needed (by using .ago("")). But proper support should come with i18n.

vi avatar Sep 17 '23 14:09 vi

I don't speak other languages well, but google translate says it could work with:

English: in 8 hours French: dans 8 heures Spanish: en 8 horas Italian: tra 8 ore

fdncred avatar Sep 17 '23 14:09 fdncred