PATH:
usr
/
local
/
lib
/
node_modules
/
pm2
/
node_modules
/
moment
/
src
/
lib
/
moment
import { getLocale } from '../locale/locales'; import { deprecate } from '../utils/deprecate'; // If passed a locale key, it will set the locale for this // instance. Otherwise, it will return the locale configuration // variables for this instance. export function locale (key) { var newLocaleData; if (key === undefined) { return this._locale._abbr; } else { newLocaleData = getLocale(key); if (newLocaleData != null) { this._locale = newLocaleData; } return this; } } export var lang = deprecate( 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.', function (key) { if (key === undefined) { return this.localeData(); } else { return this.locale(key); } } ); export function localeData () { return this._locale; }
[-] valid.js
[edit]
[+]
..
[-] start-end-of.js
[edit]
[-] now.js
[edit]
[-] to.js
[edit]
[-] min-max.js
[edit]
[-] constructor.js
[edit]
[-] to-type.js
[edit]
[-] diff.js
[edit]
[-] get-set.js
[edit]
[-] creation-data.js
[edit]
[-] compare.js
[edit]
[-] format.js
[edit]
[-] prototype.js
[edit]
[-] add-subtract.js
[edit]
[-] calendar.js
[edit]
[-] locale.js
[edit]
[-] moment.js
[edit]
[-] from.js
[edit]
[-] clone.js
[edit]