LaravelTest
89 строк · 3.2 Кб
1//! moment.js locale configuration
2//! locale : Estonian [et]
3//! author : Henry Kehlmann : https://github.com/madhenry
4//! improvements : Illimar Tambek : https://github.com/ragulka
5
6;(function (global, factory) {7typeof exports === 'object' && typeof module !== 'undefined'8&& typeof require === 'function' ? factory(require('../moment')) :9typeof define === 'function' && define.amd ? define(['../moment'], factory) :10factory(global.moment)11}(this, (function (moment) { 'use strict';12
13//! moment.js locale configuration14
15function processRelativeTime(number, withoutSuffix, key, isFuture) {16var format = {17s: ['mõne sekundi', 'mõni sekund', 'paar sekundit'],18ss: [number + 'sekundi', number + 'sekundit'],19m: ['ühe minuti', 'üks minut'],20mm: [number + ' minuti', number + ' minutit'],21h: ['ühe tunni', 'tund aega', 'üks tund'],22hh: [number + ' tunni', number + ' tundi'],23d: ['ühe päeva', 'üks päev'],24M: ['kuu aja', 'kuu aega', 'üks kuu'],25MM: [number + ' kuu', number + ' kuud'],26y: ['ühe aasta', 'aasta', 'üks aasta'],27yy: [number + ' aasta', number + ' aastat'],28};29if (withoutSuffix) {30return format[key][2] ? format[key][2] : format[key][1];31}32return isFuture ? format[key][0] : format[key][1];33}34
35var et = moment.defineLocale('et', {36months: 'jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember'.split(37'_'38),39monthsShort: 'jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets'.split(40'_'41),42weekdays: 'pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev'.split(43'_'44),45weekdaysShort: 'P_E_T_K_N_R_L'.split('_'),46weekdaysMin: 'P_E_T_K_N_R_L'.split('_'),47longDateFormat: {48LT: 'H:mm',49LTS: 'H:mm:ss',50L: 'DD.MM.YYYY',51LL: 'D. MMMM YYYY',52LLL: 'D. MMMM YYYY H:mm',53LLLL: 'dddd, D. MMMM YYYY H:mm',54},55calendar: {56sameDay: '[Täna,] LT',57nextDay: '[Homme,] LT',58nextWeek: '[Järgmine] dddd LT',59lastDay: '[Eile,] LT',60lastWeek: '[Eelmine] dddd LT',61sameElse: 'L',62},63relativeTime: {64future: '%s pärast',65past: '%s tagasi',66s: processRelativeTime,67ss: processRelativeTime,68m: processRelativeTime,69mm: processRelativeTime,70h: processRelativeTime,71hh: processRelativeTime,72d: processRelativeTime,73dd: '%d päeva',74M: processRelativeTime,75MM: processRelativeTime,76y: processRelativeTime,77yy: processRelativeTime,78},79dayOfMonthOrdinalParse: /\d{1,2}\./,80ordinal: '%d.',81week: {82dow: 1, // Monday is the first day of the week.83doy: 4, // The week that contains Jan 4th is the first week of the year.84},85});86
87return et;88
89})));90