You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.6 KiB
JavaScript

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

// Bulgarian [bg]
import dayjs from '../index';
var locale = {
name: 'bg',
weekdays: еделя_понеделник_вторник_срядаетвъртък_петък_събота'.split('_'),
weekdaysShort: ед_пон_вто_сря_чет_пет_съб'.split('_'),
weekdaysMin: 'нд_пн_вт_ср_чт_пт_сб'.split('_'),
months: 'януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември'.split('_'),
monthsShort: 'янрев_мар_апрай_юни_юли_авг_сеп_окт_ноеек'.split('_'),
weekStart: 1,
ordinal: function ordinal(n) {
var last2Digits = n % 100;
if (last2Digits > 10 && last2Digits < 20) {
return n + "-\u0442\u0438";
}
var lastDigit = n % 10;
if (lastDigit === 1) {
return n + "-\u0432\u0438";
} else if (lastDigit === 2) {
return n + "-\u0440\u0438";
} else if (lastDigit === 7 || lastDigit === 8) {
return n + "-\u043C\u0438";
}
return n + "-\u0442\u0438";
},
formats: {
LT: 'H:mm',
LTS: 'H:mm:ss',
L: 'D.MM.YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY H:mm',
LLLL: 'dddd, D MMMM YYYY H:mm'
},
relativeTime: {
future: 'след %s',
past: 'преди %s',
s: 'няколко секунди',
m: 'минута',
mm: '%d минути',
h: 'час',
hh: '%d часа',
d: 'ден',
dd: '%d дена',
M: 'месец',
MM: '%d месеца',
y: 'година',
yy: '%d години'
}
};
dayjs.locale(locale, null, true);
export default locale;