15ec7ddacf2e9338608aae8ba7788039f1ff98dc
[lhc/web/wiklou.git] / resources / lib / moment / locale / vi.js
1 // moment.js locale configuration
2 // locale : vietnamese (vi)
3 // author : Bang Nguyen : https://github.com/bangnk
4
5 (function (factory) {
6 if (typeof define === 'function' && define.amd) {
7 define(['moment'], factory); // AMD
8 } else if (typeof exports === 'object') {
9 module.exports = factory(require('../moment')); // Node
10 } else {
11 factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12 }
13 }(function (moment) {
14 return moment.defineLocale('vi', {
15 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('_'),
16 monthsShort : 'Th01_Th02_Th03_Th04_Th05_Th06_Th07_Th08_Th09_Th10_Th11_Th12'.split('_'),
17 weekdays : 'chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy'.split('_'),
18 weekdaysShort : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
19 weekdaysMin : 'CN_T2_T3_T4_T5_T6_T7'.split('_'),
20 longDateFormat : {
21 LT : 'HH:mm',
22 LTS : 'LT:ss',
23 L : 'DD/MM/YYYY',
24 LL : 'D MMMM [năm] YYYY',
25 LLL : 'D MMMM [năm] YYYY LT',
26 LLLL : 'dddd, D MMMM [năm] YYYY LT',
27 l : 'DD/M/YYYY',
28 ll : 'D MMM YYYY',
29 lll : 'D MMM YYYY LT',
30 llll : 'ddd, D MMM YYYY LT'
31 },
32 calendar : {
33 sameDay: '[Hôm nay lúc] LT',
34 nextDay: '[Ngày mai lúc] LT',
35 nextWeek: 'dddd [tuần tới lúc] LT',
36 lastDay: '[Hôm qua lúc] LT',
37 lastWeek: 'dddd [tuần rồi lúc] LT',
38 sameElse: 'L'
39 },
40 relativeTime : {
41 future : '%s tới',
42 past : '%s trước',
43 s : 'vài giây',
44 m : 'một phút',
45 mm : '%d phút',
46 h : 'một giờ',
47 hh : '%d giờ',
48 d : 'một ngày',
49 dd : '%d ngày',
50 M : 'một tháng',
51 MM : '%d tháng',
52 y : 'một năm',
53 yy : '%d năm'
54 },
55 ordinalParse: /\d{1,2}/,
56 ordinal : function (number) {
57 return number;
58 },
59 week : {
60 dow : 1, // Monday is the first day of the week.
61 doy : 4 // The week that contains Jan 4th is the first week of the year.
62 }
63 });
64 }));