D
D
Dos2019-10-22 04:53:13
symfony
Dos, 2019-10-22 04:53:13

How to internationalize dates?

Tell me, please, about working with dates in the symphony.
1. How to display dates in Russian or other languages?
2. How to translate dates in forms?
3. How globally can I change the Format of all dates in twig and forms?
4. How can I display something like this: “5 minutes ago”, “just now”, “Today” ...
5. How to display age?
Perhaps there are some bundles.
Thanks for the help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daria Motorina, 2019-10-22
@pro-dev

4. KnpTimeBundle , it was shown and used in SymfonyCasts
Otherwise, you need to twirl Intl Extension - Symfony has the main documentation on setting up the locale, then you need to google your cases and settings for them

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question