/pack-rat/003_pack_rat/pack-rat/node_modules/moment/locale/bn.js |
@@ -0,0 +1,119 @@ |
//! moment.js locale configuration |
//! locale : Bengali [bn] |
//! author : Kaushik Gandhi : https://github.com/kaushikgandhi |
|
;(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 bn = moment.defineLocale('bn', { |
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 : 'dddd, 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 bn; |
|
}))); |