PHP Classes

File: vendors/moment/src/locale/bn.js

Recommend this page to a friend!
  Classes of Jorge Castro   Gentelella BladeOne   vendors/moment/src/locale/bn.js   Download  
File: vendors/moment/src/locale/bn.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Gentelella BladeOne
Render templates using Bootstrap for presentation
Author: By
Last change:
Date: 3 years ago
Size: 3,711 bytes
 

Contents

Class file image Download
//! moment.js locale configuration //! locale : Bengali (bn) //! author : Kaushik Gandhi : https://github.com/kaushikgandhi import moment from '../moment'; var symbolMap = { '1': '?', '2': '?', '3': '?', '4': '?', '5': '?', '6': '?', '7': '?', '8': '?', '9': '?', '0': '?' }, numberMap = { '?': '1', '?': '2', '?': '3', '?': '4', '?': '5', '?': '6', '?': '7', '?': '8', '?': '9', '?': '0' }; export default 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. } });