2016-02-05 15:42:48 -05:00
|
|
|
|
//! moment.js locale configuration
|
2020-11-10 20:34:26 -05:00
|
|
|
|
//! locale : Sinhalese [si]
|
|
|
|
|
//! author : Sampath Sitinamaluwa : https://github.com/sampathsris
|
2016-02-05 15:42:48 -05:00
|
|
|
|
|
|
|
|
|
;(function (global, factory) {
|
|
|
|
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
|
|
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
2017-04-20 00:24:20 -04:00
|
|
|
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
2016-02-05 15:42:48 -05:00
|
|
|
|
factory(global.moment)
|
2017-04-20 00:24:20 -04:00
|
|
|
|
}(this, (function (moment) { 'use strict';
|
2016-02-05 15:42:48 -05:00
|
|
|
|
|
2020-11-10 20:34:26 -05:00
|
|
|
|
//! moment.js locale configuration
|
2016-02-05 15:42:48 -05:00
|
|
|
|
|
2018-04-26 03:15:53 -04:00
|
|
|
|
/*jshint -W100*/
|
|
|
|
|
var si = moment.defineLocale('si', {
|
2020-11-10 20:34:26 -05:00
|
|
|
|
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',
|
2018-04-26 03:15:53 -04:00
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
|
calendar: {
|
|
|
|
|
sameDay: '[අද] LT[ට]',
|
|
|
|
|
nextDay: '[හෙට] LT[ට]',
|
|
|
|
|
nextWeek: 'dddd LT[ට]',
|
|
|
|
|
lastDay: '[ඊයේ] LT[ට]',
|
|
|
|
|
lastWeek: '[පසුගිය] dddd LT[ට]',
|
|
|
|
|
sameElse: 'L',
|
2018-04-26 03:15:53 -04:00
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
|
relativeTime: {
|
|
|
|
|
future: '%sකින්',
|
|
|
|
|
past: '%sකට පෙර',
|
|
|
|
|
s: 'තත්පර කිහිපය',
|
|
|
|
|
ss: 'තත්පර %d',
|
|
|
|
|
m: 'මිනිත්තුව',
|
|
|
|
|
mm: 'මිනිත්තු %d',
|
|
|
|
|
h: 'පැය',
|
|
|
|
|
hh: 'පැය %d',
|
|
|
|
|
d: 'දිනය',
|
|
|
|
|
dd: 'දින %d',
|
|
|
|
|
M: 'මාසය',
|
|
|
|
|
MM: 'මාස %d',
|
|
|
|
|
y: 'වසර',
|
|
|
|
|
yy: 'වසර %d',
|
2018-04-26 03:15:53 -04:00
|
|
|
|
},
|
|
|
|
|
dayOfMonthOrdinalParse: /\d{1,2} වැනි/,
|
2020-11-10 20:34:26 -05:00
|
|
|
|
ordinal: function (number) {
|
2018-04-26 03:15:53 -04:00
|
|
|
|
return number + ' වැනි';
|
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
|
meridiemParse: /පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,
|
|
|
|
|
isPM: function (input) {
|
2018-04-26 03:15:53 -04:00
|
|
|
|
return input === 'ප.ව.' || input === 'පස් වරු';
|
|
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
|
meridiem: function (hours, minutes, isLower) {
|
2018-04-26 03:15:53 -04:00
|
|
|
|
if (hours > 11) {
|
|
|
|
|
return isLower ? 'ප.ව.' : 'පස් වරු';
|
|
|
|
|
} else {
|
|
|
|
|
return isLower ? 'පෙ.ව.' : 'පෙර වරු';
|
|
|
|
|
}
|
2020-11-10 20:34:26 -05:00
|
|
|
|
},
|
2018-04-26 03:15:53 -04:00
|
|
|
|
});
|
2016-02-05 15:42:48 -05:00
|
|
|
|
|
2018-04-26 03:15:53 -04:00
|
|
|
|
return si;
|
2016-02-05 15:42:48 -05:00
|
|
|
|
|
2017-04-20 00:24:20 -04:00
|
|
|
|
})));
|