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
7 import moment from '../moment';
9 export default moment.defineLocale('he', {
10 months : 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
11 monthsShort : 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
12 weekdays : 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
13 weekdaysShort : 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
14 weekdaysMin : 'א_ב_ג_ד_ה_ו_ש'.split('_'),
19 LL : 'D [ב]MMMM YYYY',
20 LLL : 'D [ב]MMMM YYYY HH:mm',
21 LLLL : 'dddd, D [ב]MMMM YYYY HH:mm',
24 lll : 'D MMM YYYY HH:mm',
25 llll : 'ddd, D MMM YYYY HH:mm'
28 sameDay : '[היום ב־]LT',
29 nextDay : '[מחר ב־]LT',
30 nextWeek : 'dddd [בשעה] LT',
31 lastDay : '[אתמול ב־]LT',
32 lastWeek : '[ביום] dddd [האחרון בשעה] LT',
42 hh : function (number) {
46 return number + ' שעות';
49 dd : function (number) {
53 return number + ' ימים';
56 MM : function (number) {
60 return number + ' חודשים';
63 yy : function (number) {
66 } else if (number % 10 === 0 && number !== 10) {
67 return number + ' שנה';
69 return number + ' שנים';
72 meridiemParse: /אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,
73 isPM : function (input) {
74 return /^(אחה"צ|אחרי הצהריים|בערב)$/.test(input);
76 meridiem : function (hour, minute, isLower) {
79 } else if (hour < 10) {
81 } else if (hour < 12) {
82 return isLower ? 'לפנה"צ' : 'לפני הצהריים';
83 } else if (hour < 18) {
84 return isLower ? 'אחה"צ' : 'אחרי הצהריים';