2019-06-10 15:38:54 +00:00
|
|
|
//! moment.js locale configuration
|
2020-07-23 21:12:30 +00:00
|
|
|
//! locale : Estonian [et]
|
|
|
|
//! author : Henry Kehlmann : https://github.com/madhenry
|
|
|
|
//! improvements : Illimar Tambek : https://github.com/ragulka
|
2019-06-10 15:38:54 +00:00
|
|
|
|
|
|
|
;(function (global, factory) {
|
|
|
|
typeof exports === 'object' && typeof module !== 'undefined'
|
|
|
|
&& typeof require === 'function' ? factory(require('../moment')) :
|
|
|
|
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
|
|
|
|
factory(global.moment)
|
|
|
|
}(this, (function (moment) { 'use strict';
|
|
|
|
|
2020-07-23 21:12:30 +00:00
|
|
|
//! moment.js locale configuration
|
2019-06-10 15:38:54 +00:00
|
|
|
|
|
|
|
function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
|
|
|
var format = {
|
2020-07-23 21:12:30 +00: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'],
|
2019-06-10 15:38:54 +00:00
|
|
|
};
|
|
|
|
if (withoutSuffix) {
|
|
|
|
return format[key][2] ? format[key][2] : format[key][1];
|
|
|
|
}
|
|
|
|
return isFuture ? format[key][0] : format[key][1];
|
|
|
|
}
|
|
|
|
|
|
|
|
var et = moment.defineLocale('et', {
|
2020-07-23 21:12:30 +00: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',
|
2019-06-10 15:38:54 +00:00
|
|
|
},
|
2020-07-23 21:12:30 +00:00
|
|
|
calendar: {
|
|
|
|
sameDay: '[Täna,] LT',
|
|
|
|
nextDay: '[Homme,] LT',
|
|
|
|
nextWeek: '[Järgmine] dddd LT',
|
|
|
|
lastDay: '[Eile,] LT',
|
|
|
|
lastWeek: '[Eelmine] dddd LT',
|
|
|
|
sameElse: 'L',
|
2019-06-10 15:38:54 +00:00
|
|
|
},
|
2020-07-23 21:12:30 +00: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,
|
2019-06-10 15:38:54 +00:00
|
|
|
},
|
|
|
|
dayOfMonthOrdinalParse: /\d{1,2}\./,
|
2020-07-23 21:12:30 +00: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.
|
|
|
|
},
|
2019-06-10 15:38:54 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
return et;
|
|
|
|
|
|
|
|
})));
|