mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 08:16:00 +08:00
FIX: force date-picker to work with english locale
This commit is contained in:
16
lib/javascripts/moment_locale/bn.js
Normal file → Executable file
16
lib/javascripts/moment_locale/bn.js
Normal file → Executable file
@ -83,12 +83,18 @@
|
||||
});
|
||||
},
|
||||
meridiemParse: /রাত|সকাল|দুপুর|বিকাল|রাত/,
|
||||
isPM: function (input) {
|
||||
return /^(দুপুর|বিকাল|রাত)$/.test(input);
|
||||
meridiemHour : function (hour, meridiem) {
|
||||
if (hour === 12) {
|
||||
hour = 0;
|
||||
}
|
||||
if ((meridiem === 'রাত' && hour >= 4) ||
|
||||
(meridiem === 'দুপুর' && hour < 5) ||
|
||||
meridiem === 'বিকাল') {
|
||||
return hour + 12;
|
||||
} else {
|
||||
return hour;
|
||||
}
|
||||
},
|
||||
//Bengali is a vast language its spoken
|
||||
//in different forms in various parts of the world.
|
||||
//I have just generalized with most common one used
|
||||
meridiem : function (hour, minute, isLower) {
|
||||
if (hour < 4) {
|
||||
return 'রাত';
|
||||
|
Reference in New Issue
Block a user