2016-02-05 15:42:48 -05:00
|
|
|
|
//! 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
|
2014-08-20 14:41:50 -04:00
|
|
|
|
|
2016-02-05 15:42:48 -05: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';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var he = moment.defineLocale('he', {
|
|
|
|
|
months : 'ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר'.split('_'),
|
|
|
|
|
monthsShort : 'ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳'.split('_'),
|
|
|
|
|
weekdays : 'ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת'.split('_'),
|
|
|
|
|
weekdaysShort : 'א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳'.split('_'),
|
|
|
|
|
weekdaysMin : 'א_ב_ג_ד_ה_ו_ש'.split('_'),
|
2014-08-20 14:41:50 -04:00
|
|
|
|
longDateFormat : {
|
2016-02-05 15:42:48 -05:00
|
|
|
|
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'
|
2014-08-20 14:41:50 -04:00
|
|
|
|
},
|
|
|
|
|
calendar : {
|
|
|
|
|
sameDay : '[היום ב־]LT',
|
|
|
|
|
nextDay : '[מחר ב־]LT',
|
|
|
|
|
nextWeek : 'dddd [בשעה] LT',
|
|
|
|
|
lastDay : '[אתמול ב־]LT',
|
|
|
|
|
lastWeek : '[ביום] dddd [האחרון בשעה] LT',
|
|
|
|
|
sameElse : 'L'
|
|
|
|
|
},
|
|
|
|
|
relativeTime : {
|
2016-02-05 15:42:48 -05:00
|
|
|
|
future : 'בעוד %s',
|
|
|
|
|
past : 'לפני %s',
|
|
|
|
|
s : 'מספר שניות',
|
|
|
|
|
m : 'דקה',
|
|
|
|
|
mm : '%d דקות',
|
|
|
|
|
h : 'שעה',
|
2014-08-20 14:41:50 -04:00
|
|
|
|
hh : function (number) {
|
|
|
|
|
if (number === 2) {
|
2016-02-05 15:42:48 -05:00
|
|
|
|
return 'שעתיים';
|
2014-08-20 14:41:50 -04:00
|
|
|
|
}
|
2016-02-05 15:42:48 -05:00
|
|
|
|
return number + ' שעות';
|
2014-08-20 14:41:50 -04:00
|
|
|
|
},
|
2016-02-05 15:42:48 -05:00
|
|
|
|
d : 'יום',
|
2014-08-20 14:41:50 -04:00
|
|
|
|
dd : function (number) {
|
|
|
|
|
if (number === 2) {
|
2016-02-05 15:42:48 -05:00
|
|
|
|
return 'יומיים';
|
2014-08-20 14:41:50 -04:00
|
|
|
|
}
|
2016-02-05 15:42:48 -05:00
|
|
|
|
return number + ' ימים';
|
2014-08-20 14:41:50 -04:00
|
|
|
|
},
|
2016-02-05 15:42:48 -05:00
|
|
|
|
M : 'חודש',
|
2014-08-20 14:41:50 -04:00
|
|
|
|
MM : function (number) {
|
|
|
|
|
if (number === 2) {
|
2016-02-05 15:42:48 -05:00
|
|
|
|
return 'חודשיים';
|
2014-08-20 14:41:50 -04:00
|
|
|
|
}
|
2016-02-05 15:42:48 -05:00
|
|
|
|
return number + ' חודשים';
|
2014-08-20 14:41:50 -04:00
|
|
|
|
},
|
2016-02-05 15:42:48 -05:00
|
|
|
|
y : 'שנה',
|
2014-08-20 14:41:50 -04:00
|
|
|
|
yy : function (number) {
|
|
|
|
|
if (number === 2) {
|
2016-02-05 15:42:48 -05:00
|
|
|
|
return 'שנתיים';
|
|
|
|
|
} else if (number % 10 === 0 && number !== 10) {
|
|
|
|
|
return number + ' שנה';
|
2014-08-20 14:41:50 -04:00
|
|
|
|
}
|
2016-02-05 15:42:48 -05:00
|
|
|
|
return number + ' שנים';
|
2014-08-20 14:41:50 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
2016-02-05 15:42:48 -05:00
|
|
|
|
|
|
|
|
|
return he;
|
|
|
|
|
|
|
|
|
|
}));
|