1 // moment.js locale configuration
2 // locale : Bengali (bn)
3 // author : Kaushik Gandhi : https://github.com/kaushikgandhi
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('bn', {
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'
54 nextDay
: '[আগামীকাল] LT',
55 nextWeek
: 'dddd, 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 //Bengali is a vast language its spoken
86 //in different forms in various parts of the world.
87 //I have just generalized with most common one used
88 meridiem : function (hour
, minute
, isLower
) {
91 } else if (hour
< 10) {
93 } else if (hour
< 17) {
95 } else if (hour
< 20) {
102 dow
: 0, // Sunday is the first day of the week.
103 doy
: 6 // The week that contains Jan 1st is the first week of the year.