cscg24-guacamole

CSCG 2024 Challenge 'Guacamole Mashup'
git clone https://git.sinitax.com/sinitax/cscg24-guacamole
Log | Files | Refs | sfeed.txt

bg.js (3623B)


      1//! moment.js locale configuration
      2//! locale : Bulgarian [bg]
      3//! author : Krasen Borisov : https://github.com/kraz
      4
      5;(function (global, factory) {
      6   typeof exports === 'object' && typeof module !== 'undefined'
      7       && typeof require === 'function' ? factory(require('../moment')) :
      8   typeof define === 'function' && define.amd ? define(['../moment'], factory) :
      9   factory(global.moment)
     10}(this, (function (moment) { 'use strict';
     11
     12    //! moment.js locale configuration
     13
     14    var bg = moment.defineLocale('bg', {
     15        months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split(
     16            '_'
     17        ),
     18        monthsShort: 'яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек'.split('_'),
     19        weekdays: 'неделя_понеделник_вторник_сряда_четвъртък_петък_събота'.split(
     20            '_'
     21        ),
     22        weekdaysShort: 'нед_пон_вто_сря_чет_пет_съб'.split('_'),
     23        weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
     24        longDateFormat: {
     25            LT: 'H:mm',
     26            LTS: 'H:mm:ss',
     27            L: 'D.MM.YYYY',
     28            LL: 'D MMMM YYYY',
     29            LLL: 'D MMMM YYYY H:mm',
     30            LLLL: 'dddd, D MMMM YYYY H:mm',
     31        },
     32        calendar: {
     33            sameDay: '[Днес в] LT',
     34            nextDay: '[Утре в] LT',
     35            nextWeek: 'dddd [в] LT',
     36            lastDay: '[Вчера в] LT',
     37            lastWeek: function () {
     38                switch (this.day()) {
     39                    case 0:
     40                    case 3:
     41                    case 6:
     42                        return '[Миналата] dddd [в] LT';
     43                    case 1:
     44                    case 2:
     45                    case 4:
     46                    case 5:
     47                        return '[Миналия] dddd [в] LT';
     48                }
     49            },
     50            sameElse: 'L',
     51        },
     52        relativeTime: {
     53            future: 'след %s',
     54            past: 'преди %s',
     55            s: 'няколко секунди',
     56            ss: '%d секунди',
     57            m: 'минута',
     58            mm: '%d минути',
     59            h: 'час',
     60            hh: '%d часа',
     61            d: 'ден',
     62            dd: '%d дена',
     63            w: 'седмица',
     64            ww: '%d седмици',
     65            M: 'месец',
     66            MM: '%d месеца',
     67            y: 'година',
     68            yy: '%d години',
     69        },
     70        dayOfMonthOrdinalParse: /\d{1,2}-(ев|ен|ти|ви|ри|ми)/,
     71        ordinal: function (number) {
     72            var lastDigit = number % 10,
     73                last2Digits = number % 100;
     74            if (number === 0) {
     75                return number + '-ев';
     76            } else if (last2Digits === 0) {
     77                return number + '-ен';
     78            } else if (last2Digits > 10 && last2Digits < 20) {
     79                return number + '-ти';
     80            } else if (lastDigit === 1) {
     81                return number + '-ви';
     82            } else if (lastDigit === 2) {
     83                return number + '-ри';
     84            } else if (lastDigit === 7 || lastDigit === 8) {
     85                return number + '-ми';
     86            } else {
     87                return number + '-ти';
     88            }
     89        },
     90        week: {
     91            dow: 1, // Monday is the first day of the week.
     92            doy: 7, // The week that contains Jan 7th is the first week of the year.
     93        },
     94    });
     95
     96    return bg;
     97
     98})));