2016-02-05 15:42:48 -05:00
|
|
|
//! moment.js locale configuration
|
2020-11-10 20:34:26 -05:00
|
|
|
//! locale : Estonian [et]
|
|
|
|
//! author : Henry Kehlmann : https://github.com/madhenry
|
|
|
|
//! improvements : Illimar Tambek : https://github.com/ragulka
|
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
|
2014-08-20 14:41:50 -04:00
|
|
|
|
2018-04-26 03:15:53 -04:00
|
|
|
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
|
|
|
var format = {
|
2020-11-10 20:34:26 -05:00
|
|
|
s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],
|
|
|
|
ss: [number + 'sekundi', number + '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'],
|
2018-04-26 03:15:53 -04:00
|
|
|
};
|
|
|
|
if (withoutSuffix) {
|
|
|
|
return format[key][2] ? format[key][2] : format[key][1];
|
|
|
|
}
|
|
|
|
return isFuture ? format[key][0] : format[key][1];
|
2014-08-20 14:41:50 -04:00
|
|
|
}
|
|
|
|
|
2018-04-26 03:15:53 -04:00
|
|
|
var et = moment.defineLocale('et', {
|
2020-11-10 20:34:26 -05:00
|
|
|
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',
|
2018-04-26 03:15:53 -04:00
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
calendar: {
|
|
|
|
sameDay: '[Täna,] LT',
|
|
|
|
nextDay: '[Homme,] LT',
|
|
|
|
nextWeek: '[Järgmine] dddd LT',
|
|
|
|
lastDay: '[Eile,] LT',
|
|
|
|
lastWeek: '[Eelmine] dddd LT',
|
|
|
|
sameElse: 'L',
|
2018-04-26 03:15:53 -04:00
|
|
|
},
|
2020-11-10 20:34:26 -05:00
|
|
|
relativeTime: {
|
|
|
|
future: '%s pärast',
|
|
|
|
past: '%s tagasi',
|
|
|
|
s: processRelativeTime,
|
|
|
|
ss: processRelativeTime,
|
|
|
|
m: processRelativeTime,
|
|
|
|
mm: processRelativeTime,
|
|
|
|
h: processRelativeTime,
|
|
|
|
hh: processRelativeTime,
|
|
|
|
d: processRelativeTime,
|
|
|
|
dd: '%d päeva',
|
|
|
|
M: processRelativeTime,
|
|
|
|
MM: processRelativeTime,
|
|
|
|
y: processRelativeTime,
|
|
|
|
yy: processRelativeTime,
|
2018-04-26 03:15:53 -04:00
|
|
|
},
|
|
|
|
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
2020-11-10 20:34:26 -05:00
|
|
|
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.
|
|
|
|
},
|
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 et;
|
2016-02-05 15:42:48 -05:00
|
|
|
|
2017-04-20 00:24:20 -04:00
|
|
|
})));
|