1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
| //! moment.js locale configuration
| //! locale : Hebrew [he]
| //! author : Tomer Cohen : https://github.com/tomer
| //! author : Moshe Simantov : https://github.com/DevelopmentIL
| //! author : Tal Ater : https://github.com/TalAter
|
| ;(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';
|
| //! moment.js locale configuration
|
| var he = moment.defineLocale('he', {
| months: 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split(
| '_'
| ),
| monthsShort: 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split(
| '_'
| ),
| weekdays: 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
| weekdaysShort: 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
| weekdaysMin: 'א_ב_ג_ד_ה_ו_ש'.split('_'),
| longDateFormat: {
| LT: 'HH:mm',
| LTS: 'HH:mm:ss',
| L: 'DD/MM/YYYY',
| LL: 'D [ב]MMMM YYYY',
| LLL: 'D [ב]MMMM YYYY HH:mm',
| LLLL: 'dddd, D [ב]MMMM YYYY HH:mm',
| l: 'D/M/YYYY',
| ll: 'D MMM YYYY',
| lll: 'D MMM YYYY HH:mm',
| llll: 'ddd, D MMM YYYY HH: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: function (number) {
| if (number === 2) {
| return 'שעתיים';
| }
| return number + ' שעות';
| },
| d: 'יום',
| dd: function (number) {
| if (number === 2) {
| return 'יומיים';
| }
| return number + ' ימים';
| },
| M: 'חודש',
| MM: function (number) {
| if (number === 2) {
| return 'חודשיים';
| }
| return number + ' חודשים';
| },
| y: 'שנה',
| yy: function (number) {
| if (number === 2) {
| return 'שנתיים';
| } else if (number % 10 === 0 && number !== 10) {
| return number + ' שנה';
| }
| return number + ' שנים';
| },
| },
| meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
| isPM: function (input) {
| return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
| },
| meridiem: function (hour, minute, isLower) {
| if (hour < 5) {
| return 'לפנות בוקר';
| } else if (hour < 10) {
| return 'בבוקר';
| } else if (hour < 12) {
| return isLower ? 'לפנה"צ' : 'לפני הצהריים';
| } else if (hour < 18) {
| return isLower ? 'אחה"צ' : 'אחרי הצהריים';
| } else {
| return 'בערב';
| }
| },
| });
|
| return he;
|
| })));
|
|