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