en-gb.js 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. //! moment.js locale configuration
  2. //! locale : English (United Kingdom) [en-gb]
  3. //! author : Chris Gedrim : https://github.com/chrisgedrim
  4. ;(function (global, factory) {
  5. typeof exports === 'object' && typeof module !== 'undefined'
  6. && typeof require === 'function' ? factory(require('../moment')) :
  7. typeof define === 'function' && define.amd ? define(['../moment'], factory) :
  8. factory(global.moment)
  9. }(this, (function (moment) { 'use strict';
  10. //! moment.js locale configuration
  11. var enGb = moment.defineLocale('en-gb', {
  12. months: 'January_February_March_April_May_June_July_August_September_October_November_December'.split(
  13. '_'
  14. ),
  15. monthsShort: 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),
  16. weekdays: 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split(
  17. '_'
  18. ),
  19. weekdaysShort: 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),
  20. weekdaysMin: 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),
  21. longDateFormat: {
  22. LT: 'HH:mm',
  23. LTS: 'HH:mm:ss',
  24. L: 'DD/MM/YYYY',
  25. LL: 'D MMMM YYYY',
  26. LLL: 'D MMMM YYYY HH:mm',
  27. LLLL: 'dddd, D MMMM YYYY HH:mm',
  28. },
  29. calendar: {
  30. sameDay: '[Today at] LT',
  31. nextDay: '[Tomorrow at] LT',
  32. nextWeek: 'dddd [at] LT',
  33. lastDay: '[Yesterday at] LT',
  34. lastWeek: '[Last] dddd [at] LT',
  35. sameElse: 'L',
  36. },
  37. relativeTime: {
  38. future: 'in %s',
  39. past: '%s ago',
  40. s: 'a few seconds',
  41. ss: '%d seconds',
  42. m: 'a minute',
  43. mm: '%d minutes',
  44. h: 'an hour',
  45. hh: '%d hours',
  46. d: 'a day',
  47. dd: '%d days',
  48. M: 'a month',
  49. MM: '%d months',
  50. y: 'a year',
  51. yy: '%d years',
  52. },
  53. dayOfMonthOrdinalParse: /\d{1,2}(st|nd|rd|th)/,
  54. ordinal: function (number) {
  55. var b = number % 10,
  56. output =
  57. ~~((number % 100) / 10) === 1
  58. ? 'th'
  59. : b === 1
  60. ? 'st'
  61. : b === 2
  62. ? 'nd'
  63. : b === 3
  64. ? 'rd'
  65. : 'th';
  66. return number + output;
  67. },
  68. week: {
  69. dow: 1, // Monday is the first day of the week.
  70. doy: 4, // The week that contains Jan 4th is the first week of the year.
  71. },
  72. });
  73. return enGb;
  74. })));