Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

vi.js 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. //! moment.js locale configuration
  2. //! locale : Vietnamese [vi]
  3. //! author : Bang Nguyen : https://github.com/bangnk
  4. import moment from '../moment';
  5. export default moment.defineLocale('vi', {
  6. months : 'tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12'.split('_'),
  7. monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),
  8. monthsParseExact : true,
  9. weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
  10. weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  11. weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
  12. weekdaysParseExact : true,
  13. meridiemParse: /sa|ch/i,
  14. isPM : function (input) {
  15. return /^ch$/i.test(input);
  16. },
  17. meridiem : function (hours, minutes, isLower) {
  18. if (hours < 12) {
  19. return isLower ? 'sa' : 'SA';
  20. } else {
  21. return isLower ? 'ch' : 'CH';
  22. }
  23. },
  24. longDateFormat : {
  25. LT : 'HH:mm',
  26. LTS : 'HH:mm:ss',
  27. L : 'DD/MM/YYYY',
  28. LL : 'D MMMM [năm] YYYY',
  29. LLL : 'D MMMM [năm] YYYY HH:mm',
  30. LLLL : 'dddd, D MMMM [năm] YYYY HH:mm',
  31. l : 'DD/M/YYYY',
  32. ll : 'D MMM YYYY',
  33. lll : 'D MMM YYYY HH:mm',
  34. llll : 'ddd, D MMM YYYY HH:mm'
  35. },
  36. calendar : {
  37. sameDay: '[Hôm nay lúc] LT',
  38. nextDay: '[Ngày mai lúc] LT',
  39. nextWeek: 'dddd [tuần tới lúc] LT',
  40. lastDay: '[Hôm qua lúc] LT',
  41. lastWeek: 'dddd [tuần rồi lúc] LT',
  42. sameElse: 'L'
  43. },
  44. relativeTime : {
  45. future : '%s tới',
  46. past : '%s trước',
  47. s : 'vài giây',
  48. ss : '%d giây' ,
  49. m : 'một phút',
  50. mm : '%d phút',
  51. h : 'một giờ',
  52. hh : '%d giờ',
  53. d : 'một ngày',
  54. dd : '%d ngày',
  55. M : 'một tháng',
  56. MM : '%d tháng',
  57. y : 'một năm',
  58. yy : '%d năm'
  59. },
  60. dayOfMonthOrdinalParse: /\d{1,2}/,
  61. ordinal : function (number) {
  62. return number;
  63. },
  64. week : {
  65. dow : 1, // Monday is the first day of the week.
  66. doy : 4 // The week that contains Jan 4th is the first week of the year.
  67. }
  68. });