mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 13:04:32 +08:00
updates moment.js 2.22.1 and vendor moment-timezone 0.5.14
This commit is contained in:
149
lib/javascripts/moment_locale/te.js
Normal file → Executable file
149
lib/javascripts/moment_locale/te.js
Normal file → Executable file
@ -1,6 +1,4 @@
|
||||
//! moment.js locale configuration
|
||||
//! locale : Telugu [te]
|
||||
//! author : Krishna Chaitanya Thota : https://github.com/kcthota
|
||||
|
||||
;(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined'
|
||||
@ -10,80 +8,81 @@
|
||||
}(this, (function (moment) { 'use strict';
|
||||
|
||||
|
||||
var te = 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 : 'కొన్ని క్షణాలు',
|
||||
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;
|
||||
var te = 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 1st is the first week of the year.
|
||||
}
|
||||
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 1st is the first week of the year.
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
return te;
|
||||
return te;
|
||||
|
||||
})));
|
||||
|
Reference in New Issue
Block a user