If you happen to use Node.js , you will have the locale files already in moment when you do npm install moment.
Observe the following example that is executed at Node.js end −
"use strict"; var moment = require('moment'); moment.locale('fr'); var k = moment().fromNow(); console.log(k);