2016-02-05 15:42:48 -05:00
|
|
|
//! moment.js locale configuration
|
2017-04-20 00:24:20 -04:00
|
|
|
//! locale : Estonian [et]
|
2016-02-05 15:42:48 -05:00
|
|
|
//! author : Henry Kehlmann : https://github.com/madhenry
|
|
|
|
//! improvements : Illimar Tambek : https://github.com/ragulka
|
|
|
|
|
|
|
|
;(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
|
|
|
|
2014-08-20 14:41:50 -04:00
|
|
|
|
2017-04-20 00:24:20 -04:00
|
|
|
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
|
|
|
var format = {
|
|
|
|
's' : ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
|
|
|
|
'm' : ['ühe minuti', 'üks minut'],
|
|
|
|
'mm': [number + ' minuti', number + ' minutit'],
|
|
|
|
'h' : ['ühe tunni', 'tund aega', 'üks tund'],
|
|
|
|
'hh': [number + ' tunni', number + ' tundi'],
|
|
|
|
'd' : ['ühe päeva', 'üks päev'],
|
|
|
|
'M' : ['kuu aja', 'kuu aega', 'üks kuu'],
|
|
|
|
'MM': [number + ' kuu', number + ' kuud'],
|
|
|
|
'y' : ['ühe aasta', 'aasta', 'üks aasta'],
|
|
|
|
'yy': [number + ' aasta', number + ' aastat']
|
|
|
|
};
|
|
|
|
if (withoutSuffix) {
|
|
|
|
return format[key][2] ? format[key][2] : format[key][1];
|
2014-08-20 14:41:50 -04:00
|
|
|
}
|
2017-04-20 00:24:20 -04:00
|
|
|
return isFuture ? format[key][0] : format[key][1];
|
|
|
|
}
|
2014-08-20 14:41:50 -04:00
|
|
|
|
2017-04-20 00:24:20 -04:00
|
|
|
var et = moment.defineLocale('et', {
|
|
|
|
months : 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split('_'),
|
|
|
|
monthsShort : 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split('_'),
|
|
|
|
weekdays : 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split('_'),
|
|
|
|
weekdaysShort : 'P_E_T_K_N_R_L'.split('_'),
|
|
|
|
weekdaysMin : 'P_E_T_K_N_R_L'.split('_'),
|
|
|
|
longDateFormat : {
|
|
|
|
LT : 'H:mm',
|
|
|
|
LTS : 'H:mm:ss',
|
|
|
|
L : 'DD.MM.YYYY',
|
|
|
|
LL : 'D. MMMM YYYY',
|
|
|
|
LLL : 'D. MMMM YYYY H:mm',
|
|
|
|
LLLL : 'dddd, D. MMMM YYYY H:mm'
|
|
|
|
},
|
|
|
|
calendar : {
|
|
|
|
sameDay : '[Täna,] LT',
|
|
|
|
nextDay : '[Homme,] LT',
|
|
|
|
nextWeek : '[Järgmine] dddd LT',
|
|
|
|
lastDay : '[Eile,] LT',
|
|
|
|
lastWeek : '[Eelmine] dddd LT',
|
|
|
|
sameElse : 'L'
|
|
|
|
},
|
|
|
|
relativeTime : {
|
|
|
|
future : '%s pärast',
|
|
|
|
past : '%s tagasi',
|
|
|
|
s : processRelativeTime,
|
|
|
|
m : processRelativeTime,
|
|
|
|
mm : processRelativeTime,
|
|
|
|
h : processRelativeTime,
|
|
|
|
hh : processRelativeTime,
|
|
|
|
d : processRelativeTime,
|
|
|
|
dd : '%d päeva',
|
|
|
|
M : processRelativeTime,
|
|
|
|
MM : processRelativeTime,
|
|
|
|
y : processRelativeTime,
|
|
|
|
yy : processRelativeTime
|
|
|
|
},
|
|
|
|
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
|
|
|
ordinal : '%d.',
|
|
|
|
week : {
|
|
|
|
dow : 1, // Monday is the first day of the week.
|
|
|
|
doy : 4 // The week that contains Jan 4th is the first week of the year.
|
|
|
|
}
|
|
|
|
});
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2017-04-20 00:24:20 -04:00
|
|
|
return et;
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2017-04-20 00:24:20 -04:00
|
|
|
})));
|