PageSourceSearch

https://marcoballetta.com/wp-content/plugins/add-twitter-feed/js/b…/moment/locale/bn.js?ver=7.1.2

js marcoballetta.com collected 2026-10-06 13:15:00 UTC 4,087 bytes, 107 lines download raw bytes

1// moment.js locale configuration
2// locale : Bengali (bn)
3// author : Kaushik Gandhi : https://github.com/kaushikgandhi
4
5(function (factory) {
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
10    } else {
11        factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
12    }
13}(function (moment) {
14    var symbolMap = {
15        '1': 'à§§',
16        '2': '২',
17        '3': 'à§©',
18        '4': '৪',
19        '5': 'à§«',
20        '6': '৬',
21        '7': 'à§­',
22        '8': 'à§®',
23        '9': '৯',
24        '0': '০'
25    },
26    numberMap = {
27        'à§§': '1',
28        '২': '2',
29        'à§©': '3',
30        '৪': '4',
31        'à§«': '5',
32        '৬': '6',
33        'à§­': '7',
34        'à§®': '8',
35        '৯': '9',
36        '০': '0'
37    };
38
39    return moment.defineLocale('bn', {
40        months : 'জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
41        monthsShort : 'জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্'.split('_'),
42        weekdays : 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রুবার_শনিবার'.split('_'),
43        weekdaysShort : 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পত্তি_শুক্রু_শনি'.split('_'),
44        weekdaysMin : 'রব_সম_মঙ্গ_বু_ব্রিহ_শু_শনি'.split('_'),
45        longDateFormat : {
46            LT : 'A h:mm সময়',
47            LTS : 'A h:mm:ss সময়',
48            L : 'DD/MM/YYYY',
49            LL : 'D MMMM YYYY',
50            LLL : 'D MMMM YYYY, LT',
51            LLLL : 'dddd, D MMMM YYYY, LT'
52        },
53        calendar : {
54            sameDay : '[আজ] LT',
55            nextDay : '[আগামীকাল] LT',
56            nextWeek : 'dddd, LT',
57            lastDay : '[গতকাল] LT',
58            lastWeek : '[গত] dddd, LT',
59            sameElse : 'L'
60        },
61        relativeTime : {
62            future : '%s পরে',
63            past : '%s আগে',
64            s : 'কএক সেকেন্ড',
65            m : 'এক মিনিট',
66            mm : '%d মিনিট',
67            h : 'এক ঘন্টা',
68            hh : '%d ঘন্টা',
69            d : 'এক দিন',
70            dd : '%d দিন',
71            M : 'এক মাস',
72            MM : '%d মাস',
73            y : 'এক বছর',
74            yy : '%d বছর'
75        },
76        preparse: function (string) {
77            return string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
78                return numberMap[match];
79            });
80        },
81        postformat: function (string) {
82            return string.replace(/\d/g, function (match) {
83                return symbolMap[match];
84            });
85        },
86        //Bengali is a vast language its spoken
87        //in different forms in various parts of the world.
88        //I have just generalized with most common one used
89        meridiem : function (hour, minute, isLower) {
90            if (hour < 4) {
91                return 'রাত';
92            } else if (hour < 10) {
93                return 'শকাল';
94            } else if (hour < 17) {
95                return 'দুপুর';
96            } else if (hour < 20) {
97                return 'বিকেল';
98            } else {
99                return 'রাত';
100            }
101        },
102        week : {
103            dow : 0, // Sunday is the first day of the week.
104            doy : 6  // The week that contains Jan 1st is the first week of the year.
105        }
106    });
107}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.