/pack-rat/003_pack_rat/pack-rat/bower_components/moment/locale/bo.js |
@@ -0,0 +1,119 @@ |
//! moment.js locale configuration |
//! locale : Tibetan [bo] |
//! author : Thupten N. Chakrishar : https://github.com/vajradog |
|
;(function (global, factory) { |
typeof exports === 'object' && typeof module !== 'undefined' |
&& typeof require === 'function' ? factory(require('../moment')) : |
typeof define === 'function' && define.amd ? define(['../moment'], factory) : |
factory(global.moment) |
}(this, (function (moment) { 'use strict'; |
|
|
var symbolMap = { |
'1': '༡', |
'2': '༢', |
'3': '༣', |
'4': '༤', |
'5': '༥', |
'6': '༦', |
'7': '༧', |
'8': '༨', |
'9': '༩', |
'0': '༠' |
}; |
var numberMap = { |
'༡': '1', |
'༢': '2', |
'༣': '3', |
'༤': '4', |
'༥': '5', |
'༦': '6', |
'༧': '7', |
'༨': '8', |
'༩': '9', |
'༠': '0' |
}; |
|
var bo = moment.defineLocale('bo', { |
months : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'), |
monthsShort : 'ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ'.split('_'), |
weekdays : 'གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་'.split('_'), |
weekdaysShort : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'), |
weekdaysMin : 'ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་'.split('_'), |
longDateFormat : { |
LT : 'A h:mm', |
LTS : 'A h:mm:ss', |
L : 'DD/MM/YYYY', |
LL : 'D MMMM YYYY', |
LLL : 'D MMMM YYYY, A h:mm', |
LLLL : 'dddd, D MMMM YYYY, A h:mm' |
}, |
calendar : { |
sameDay : '[དི་རིང] LT', |
nextDay : '[སང་ཉིན] LT', |
nextWeek : '[བདུན་ཕྲག་རྗེས་མ], LT', |
lastDay : '[à½à¼‹à½¦à½„] LT', |
lastWeek : '[བདུན་ཕྲག་མà½à½ ་མ] dddd, LT', |
sameElse : 'L' |
}, |
relativeTime : { |
future : '%s ལ་', |
past : '%s སྔན་ལ', |
s : 'ལམ་སང', |
m : 'སà¾à½¢à¼‹à½˜à¼‹à½‚ཅིག', |
mm : '%d སà¾à½¢à¼‹à½˜', |
h : 'ཆུ་ཚོད་གཅིག', |
hh : '%d ཆུ་ཚོད', |
d : 'ཉིན་གཅིག', |
dd : '%d ཉིན་', |
M : 'ཟླ་བ་གཅིག', |
MM : '%d ཟླ་བ', |
y : 'ལོ་གཅིག', |
yy : '%d ལོ' |
}, |
preparse: function (string) { |
return string.replace(/[༡༢༣༤༥༦༧༨༩༠]/g, function (match) { |
return numberMap[match]; |
}); |
}, |
postformat: function (string) { |
return string.replace(/\d/g, function (match) { |
return symbolMap[match]; |
}); |
}, |
meridiemParse: /མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/, |
meridiemHour : function (hour, meridiem) { |
if (hour === 12) { |
hour = 0; |
} |
if ((meridiem === 'མཚན་མོ' && hour >= 4) || |
(meridiem === 'ཉིན་གུང' && hour < 5) || |
meridiem === 'དགོང་དག') { |
return hour + 12; |
} else { |
return hour; |
} |
}, |
meridiem : function (hour, minute, isLower) { |
if (hour < 4) { |
return 'མཚན་མོ'; |
} else if (hour < 10) { |
return 'ཞོགས་ཀས'; |
} else if (hour < 17) { |
return 'ཉིན་གུང'; |
} else if (hour < 20) { |
return 'དགོང་དག'; |
} else { |
return 'མཚན་མོ'; |
} |
}, |
week : { |
dow : 0, // Sunday is the first day of the week. |
doy : 6 // The week that contains Jan 1st is the first week of the year. |
} |
}); |
|
return bo; |
|
}))); |