Debian Codegraph @

resources/lib/moment/locale/he.js

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