5b41c888dac51fbde380662189bb36c334980f64911bcd993648ccd5006b9bc1284b54715f1c2925fb81ba89b08cd4095e366e3d961a772cf52e63ccbcf117 829 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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(
  32. 'moment.lang is deprecated. Use moment.locale instead.',
  33. getSetGlobalLocale
  34. );
  35. hooks.langData = deprecate(
  36. 'moment.langData is deprecated. Use moment.localeData instead.',
  37. getLocale
  38. );
  39. import './en';