diff options
Diffstat (limited to 'library/moment/src/lib/moment/locale.js')
-rw-r--r-- | library/moment/src/lib/moment/locale.js | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/library/moment/src/lib/moment/locale.js b/library/moment/src/lib/moment/locale.js deleted file mode 100644 index fb46e6569..000000000 --- a/library/moment/src/lib/moment/locale.js +++ /dev/null @@ -1,34 +0,0 @@ -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; -} |