A
A
Andrew2020-08-05 08:18:04
JavaScript
Andrew, 2020-08-05 08:18:04

Dynamic locale change at moment in Vue?

How to make the localization of moment change dynamically for already rendered dates?

I set the localization as follows:
this.$moment.locale(locale)

But the localization changes only after reloading the data (re-rendering the component). Is there a way to do this reactively?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question