1 // moment.js locale configuration
2 // locale : tibetan (bo)
3 // author : Thupten N. Chakrishar : https://github.com/vajradog
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
11 factory(window
.moment
); // Browser global
39 return moment
.defineLocale('bo', {
40 months
: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split("_"),
41 monthsShort
: 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split("_"),
42 weekdays
: 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split("_"),
43 weekdaysShort
: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split("_"),
44 weekdaysMin
: 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split("_"),
49 LLL
: "D MMMM YYYY, LT",
50 LLLL
: "dddd, D MMMM YYYY, LT"
53 sameDay
: '[དི་རིང] LT',
54 nextDay
: '[སང་ཉིན] LT',
55 nextWeek
: '[བདུན་ཕྲག་རྗེས་མ], LT',
56 lastDay
: '[ཁ་སང] LT',
57 lastWeek
: '[བདུན་ཕྲག་མཐའ་མ] dddd, LT',
75 preparse: function (string
) {
76 return string
.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match
) {
77 return numberMap
[match
];
80 postformat: function (string
) {
81 return string
.replace(/\d/g, function (match
) {
82 return symbolMap
[match
];
85 meridiem : function (hour
, minute
, isLower
) {
88 } else if (hour
< 10) {
90 } else if (hour
< 17) {
92 } else if (hour
< 20) {
99 dow
: 0, // Sunday is the first day of the week.
100 doy
: 6 // The week that contains Jan 1st is the first week of the year.