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

80 lines
3.2 KiB

//! moment.js locale configuration
//! locale : Sinhalese [si]
//! author : Sampath Sitinamaluwa : https://github.com/sampathsris
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
//! moment.js locale configuration
/*jshint -W100*/
var si = moment.defineLocale('si', {
months: 'ජනව_පබරව_ම_අප_ම_ජ_ජ_අග_සබර_ඔකබර_නබර_දබර'.split(
'_'
),
monthsShort: 'ජන_පබ_ම_අප_ම_ජ_ජ_අග_ස_ඔක_න_ද'.split(
'_'
),
weekdays: 'ඉර_සඳ_අඟහර_බද_බරහසපත_ස_සනස'.split(
'_'
),
weekdaysShort: 'ඉර_සඳ_අඟ_බද_බරහ_ස_සන'.split('_'),
weekdaysMin: 'ඉ_ස_අ_බ_බර_ස_ස'.split('_'),
weekdaysParseExact: true,
longDateFormat: {
LT: 'a h:mm',
LTS: 'a h:mm:ss',
L: 'YYYY/MM/DD',
LL: 'YYYY MMMM D',
LLL: 'YYYY MMMM D, a h:mm',
LLLL: 'YYYY MMMM D [ව] dddd, a h:mm:ss',
},
calendar: {
sameDay: '[අද] LT[ට]',
nextDay: '[හට] LT[ට]',
nextWeek: 'dddd LT[ට]',
lastDay: '[ඊය] LT[ට]',
lastWeek: '[පසය] dddd LT[ට]',
sameElse: 'L',
},
relativeTime: {
future: '%sක',
past: '%sකට පර',
s: 'තතපර කපය',
ss: 'තතපර %d',
m: 'මව',
mm: 'ම %d',
h: 'පය',
hh: 'පය %d',
d: 'දනය',
dd: 'දන %d',
M: 'මසය',
MM: 'මස %d',
y: 'වසර',
yy: 'වසර %d',
},
dayOfMonthOrdinalParse: /\d{1,2} ව/,
ordinal: function (number) {
return number + ' ව';
},
meridiemParse: /පර වර|පස වර|ප.ව|ප.ව./,
isPM: function (input) {
return input === 'ප.ව.' || input === 'පස වර';
},
meridiem: function (hours, minutes, isLower) {
if (hours > 11) {
return isLower ? 'ප.ව.' : 'පස වර';
} else {
return isLower ? 'ප.ව.' : 'පර වර';
}
},
});
return si;
})));