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

what about future times? #29

Open
fdncred opened this issue Sep 8, 2023 · 2 comments
Open

what about future times? #29

fdncred opened this issue Sep 8, 2023 · 2 comments

Comments

@fdncred
Copy link

fdncred commented Sep 8, 2023

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.

@vi
Copy link
Owner

vi commented Sep 17, 2023

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.

@fdncred
Copy link
Author

fdncred commented Sep 17, 2023

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

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

2 participants