As the error messages say, you just need to specify the desired language to solve the problem. If you only need fr locale, you can add something like this:
<script src="/vendors/moment/locale/fr.js"></script>
after moment import.
EDIT:
If you need multiple locales, you can import locales.js instead of fr.js In addition, moments provide a single file, moment-with-locales.min.js , a library of minutes + all supported locales.
If you want to dynamically set the locale for you, you can use locale :
// Example with german locale var localeString = 'de'; $('
source share