We need locale to applied locally in case we need to handle many locales in an application.
Here is a way to work with locale locally.
moment().locale(String|Boolean);
moment.locale("pt"); var a = moment().fromNow(); moment.locale("hi"); var b = moment().fromNow();
moment.locale("pt"); var a = moment().format('LLLL'); moment.locale("hi"); var b = moment().format('LLLL');