Update Moment.js from 2.8.3 to 2.8.4
[lhc/web/wiklou.git] / resources / lib / moment / locale / bo.js
1 // moment.js locale configuration
2 // locale : tibetan (bo)
3 // author : Thupten N. Chakrishar : https://github.com/vajradog
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 var symbolMap = {
15 '1': '༡',
16 '2': '༢',
17 '3': '༣',
18 '4': '༤',
19 '5': '༥',
20 '6': '༦',
21 '7': '༧',
22 '8': '༨',
23 '9': '༩',
24 '0': '༠'
25 },
26 numberMap = {
27 '༡': '1',
28 '༢': '2',
29 '༣': '3',
30 '༤': '4',
31 '༥': '5',
32 '༦': '6',
33 '༧': '7',
34 '༨': '8',
35 '༩': '9',
36 '༠': '0'
37 };
38
39 return moment.defineLocale('bo', {
40 months : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
41 monthsShort : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'),
42 weekdays : 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'),
43 weekdaysShort : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
44 weekdaysMin : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'),
45 longDateFormat : {
46 LT : 'A h:mm',
47 LTS : 'LT:ss',
48 L : 'DD/MM/YYYY',
49 LL : 'D MMMM YYYY',
50 LLL : 'D MMMM YYYY, LT',
51 LLLL : 'dddd, D MMMM YYYY, LT'
52 },
53 calendar : {
54 sameDay : '[དི་རིང] LT',
55 nextDay : '[སང་ཉིན] LT',
56 nextWeek : '[བདུན་ཕྲག་རྗེས་མ], LT',
57 lastDay : '[ཁ་སང] LT',
58 lastWeek : '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
59 sameElse : 'L'
60 },
61 relativeTime : {
62 future : '%s ལ་',
63 past : '%s སྔན་ལ',
64 s : 'ལམ་སང',
65 m : 'སྐར་མ་གཅིག',
66 mm : '%d སྐར་མ',
67 h : 'ཆུ་ཚོད་གཅིག',
68 hh : '%d ཆུ་ཚོད',
69 d : 'ཉིན་གཅིག',
70 dd : '%d ཉིན་',
71 M : 'ཟླ་བ་གཅིག',
72 MM : '%d ཟླ་བ',
73 y : 'ལོ་གཅིག',
74 yy : '%d ལོ'
75 },
76 preparse: function (string) {
77 return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) {
78 return numberMap[match];
79 });
80 },
81 postformat: function (string) {
82 return string.replace(/\d/g, function (match) {
83 return symbolMap[match];
84 });
85 },
86 meridiem : function (hour, minute, isLower) {
87 if (hour < 4) {
88 return 'མཚན་མོ';
89 } else if (hour < 10) {
90 return 'ཞོགས་ཀས';
91 } else if (hour < 17) {
92 return 'ཉིན་གུང';
93 } else if (hour < 20) {
94 return 'དགོང་དག';
95 } else {
96 return 'མཚན་མོ';
97 }
98 },
99 week : {
100 dow : 0, // Sunday is the first day of the week.
101 doy : 6 // The week that contains Jan 1st is the first week of the year.
102 }
103 });
104 }));