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.
 
 

86 lines
3.3 KiB

//! moment.js locale configuration
//! locale : Telugu [te]
//! author : Krishna Chaitanya Thota : https://github.com/kcthota
import moment from '../moment';
export default moment.defineLocale('te', {
months: 'జనవరి_ఫిరవరి_మి_ఏపి_మ_జ_జ_ఆగస_సబర_అకబర_నవబర_డిబర'.split(
'_'
),
monthsShort: 'జన._ఫిర._మి_ఏపి._మ_జ_జ_ఆగ._స._అక._నవ._డి.'.split(
'_'
),
monthsParseExact: true,
weekdays: 'ఆది_సమవ_మగళవ_బధవ_గ_శరవ_శని'.split(
'_'
),
weekdaysShort: 'ఆది_సమ_మగళ_బధ_గ_శర_శని'.split('_'),
weekdaysMin: 'ఆ_స_మ_బ_గ_శ_శ'.split('_'),
longDateFormat: {
LT: 'A h:mm',
LTS: 'A h:mm:ss',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY, A h:mm',
LLLL: 'dddd, D MMMM YYYY, A h:mm',
},
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: '%dవ',
meridiemParse: /రి|ఉదయ|మధ|స/,
meridiemHour: function (hour, meridiem) {
if (hour === 12) {
hour = 0;
}
if (meridiem === 'రి') {
return hour < 4 ? hour : hour + 12;
} else if (meridiem === 'ఉదయ') {
return hour;
} else if (meridiem === 'మధ') {
return hour >= 10 ? hour : hour + 12;
} else if (meridiem === 'స') {
return hour + 12;
}
},
meridiem: function (hour, minute, isLower) {
if (hour < 4) {
return 'రి';
} else if (hour < 10) {
return 'ఉదయ';
} else if (hour < 17) {
return 'మధ';
} else if (hour < 20) {
return 'స';
} else {
return 'రి';
}
},
week: {
dow: 0, // Sunday is the first day of the week.
doy: 6, // The week that contains Jan 6th is the first week of the year.
},
});