1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | ;(function (global, factory) {
|
7 | typeof exports === 'object' && typeof module !== 'undefined'
|
8 | && typeof require === 'function' ? factory(require('../moment')) :
|
9 | typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
10 | factory(global.moment)
|
11 | }(this, (function (moment) { 'use strict';
|
12 |
|
13 |
|
14 |
|
15 | var vi = moment.defineLocale('vi', {
|
16 | 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(
|
17 | '_'
|
18 | ),
|
19 | monthsShort:
|
20 | 'Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12'.split(
|
21 | '_'
|
22 | ),
|
23 | monthsParseExact: true,
|
24 | weekdays: 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split(
|
25 | '_'
|
26 | ),
|
27 | weekdaysShort: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
|
28 | weekdaysMin: 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
|
29 | weekdaysParseExact: true,
|
30 | meridiemParse: /sa|ch/i,
|
31 | isPM: function (input) {
|
32 | return /^ch$/i.test(input);
|
33 | },
|
34 | meridiem: function (hours, minutes, isLower) {
|
35 | if (hours < 12) {
|
36 | return isLower ? 'sa' : 'SA';
|
37 | } else {
|
38 | return isLower ? 'ch' : 'CH';
|
39 | }
|
40 | },
|
41 | longDateFormat: {
|
42 | LT: 'HH:mm',
|
43 | LTS: 'HH:mm:ss',
|
44 | L: 'DD/MM/YYYY',
|
45 | LL: 'D MMMM [năm] YYYY',
|
46 | LLL: 'D MMMM [năm] YYYY HH:mm',
|
47 | LLLL: 'dddd, D MMMM [năm] YYYY HH:mm',
|
48 | l: 'DD/M/YYYY',
|
49 | ll: 'D MMM YYYY',
|
50 | lll: 'D MMM YYYY HH:mm',
|
51 | llll: 'ddd, D MMM YYYY HH:mm',
|
52 | },
|
53 | calendar: {
|
54 | sameDay: '[Hôm nay lúc] LT',
|
55 | nextDay: '[Ngày mai lúc] LT',
|
56 | nextWeek: 'dddd [tuần tới lúc] LT',
|
57 | lastDay: '[Hôm qua lúc] LT',
|
58 | lastWeek: 'dddd [tuần trước lúc] LT',
|
59 | sameElse: 'L',
|
60 | },
|
61 | relativeTime: {
|
62 | future: '%s tới',
|
63 | past: '%s trước',
|
64 | s: 'vài giây',
|
65 | ss: '%d giây',
|
66 | m: 'một phút',
|
67 | mm: '%d phút',
|
68 | h: 'một giờ',
|
69 | hh: '%d giờ',
|
70 | d: 'một ngày',
|
71 | dd: '%d ngày',
|
72 | w: 'một tuần',
|
73 | ww: '%d tuần',
|
74 | M: 'một tháng',
|
75 | MM: '%d tháng',
|
76 | y: 'một năm',
|
77 | yy: '%d năm',
|
78 | },
|
79 | dayOfMonthOrdinalParse: /\d{1,2}/,
|
80 | ordinal: function (number) {
|
81 | return number;
|
82 | },
|
83 | week: {
|
84 | dow: 1,
|
85 | doy: 4,
|
86 | },
|
87 | });
|
88 |
|
89 | return vi;
|
90 |
|
91 | })));
|