Debian Codegraph @

vendor/static/moment/src/lib/locale/locale.js

raw
1 // Side effect imports
2 import './prototype';
3
4 import {
5 getSetGlobalLocale,
6 defineLocale,
7 updateLocale,
8 getLocale,
9 listLocales,
10 } from './locales';
11
12 import {
13 listMonths,
14 listMonthsShort,
15 listWeekdays,
16 listWeekdaysShort,
17 listWeekdaysMin,
18 } from './lists';
19
20 export {
21 getSetGlobalLocale,
22 defineLocale,
23 updateLocale,
24 getLocale,
25 listLocales,
26 listMonths,
27 listMonthsShort,
28 listWeekdays,
29 listWeekdaysShort,
30 listWeekdaysMin,
31 };
32
33 import { deprecate } from '../utils/deprecate';
34 import { hooks } from '../utils/hooks';
35
36 hooks.lang = deprecate(
37 'moment.lang is deprecated. Use moment.locale instead.',
38 getSetGlobalLocale
39 );
40 hooks.langData = deprecate(
41 'moment.langData is deprecated. Use moment.localeData instead.',
42 getLocale
43 );
44
45 import './en';