4d15d0d11e94d4b55a2354c0dd7eb1f30b15f5c5e2c55b21ef8bc73fd6007e8fbe4f570af58735d414d76c374aef5aa12108e9a7e6fabc06edef9ade748a31 806 B

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