According to moment.js docs: Downloading locales in a browser requires you to include locale files.
<script src="moment.js"></script> <script src="locale/fr.js"></script> <script src="locale/pt.js"></script> <script> moment.locale('fr'); </script>
Also, if you want, you can create a mini version of moment.js complete with the locale of your choice.
grunt embedLocales --embedLocales de
Update:
As mentioned in the comments and in accordance with the contribution guide executing this command:
grunt transpile:fr,ru
As a result, the user-defined local packages moment-with-locales.custom.js and locales.custom.js inside build/umd/min , containing only French and Russian.
source share