Fetching contributors…
Cannot retrieve contributors at this time
18 lines (13 sloc) 536 Bytes
title version signature
Loading locales in NodeJS

Loading locales in NodeJS is super easy. If there is a locale file in moment-root/locale/ named after that key, the first call to moment.locale will load it.

var moment = require('moment');
moment(1316116057189).fromNow(); // il y a une heure

If you want your locale supported, create a pull request to the develop branch with the required locale and unit test files.