|
| 1 | +<div dir="rtl"> |
| 2 | + |
| 3 | +עברית | [English](../../README.md) | [简体中文](./docs/zh-cn/README.zh-CN.md) | [日本語](./docs/ja/README-ja.md) | [Português Brasileiro](./docs/pt-br/README-pt-br.md) | [한국어](./docs/ko/README-ko.md) | [Español (España)](./docs/es-es/README-es-es.md) | [Русский](./docs/ru/README-ru.md) | [Türkçe](./docs/tr/README-tr.md) | [සිංහල](./docs/si/README-si.md) |
| 4 | + |
| 5 | +<p align="center"><a href="https://day.js.org/" target="_blank" rel="noopener noreferrer"><img width="550" |
| 6 | + src="https://user-images.githubusercontent.com/17680888/39081119-3057bbe2-456e-11e8-862c-646133ad4b43.png" |
| 7 | + alt="Day.js"></a></p> |
| 8 | +<p align="center">אלטרנטיבה מהירה ל-Moment.js ששוקלת רק <b>2kB</b> עם אותן יכולות מודרניות</p> |
| 9 | +<p align="center"> |
| 10 | + <a href="https://unpkg.com/dayjs/dayjs.min.js"><img |
| 11 | + src="https://img.badgesize.io/https://unpkg.com/dayjs/dayjs.min.js?compression=gzip&style=flat-square" |
| 12 | + alt="Gzip Size"></a> |
| 13 | + <a href="https://www.npmjs.com/package/dayjs"><img src="https://img.shields.io/npm/v/dayjs.svg?style=flat-square&colorB=51C838" |
| 14 | + alt="NPM Version"></a> |
| 15 | + <a href="https://travis-ci.com/iamkun/dayjs"><img |
| 16 | + src="https://img.shields.io/travis/iamkun/dayjs/master.svg?style=flat-square" alt="Build Status"></a> |
| 17 | + <a href="https://codecov.io/gh/iamkun/dayjs"><img |
| 18 | + src="https://img.shields.io/codecov/c/github/iamkun/dayjs/master.svg?style=flat-square" alt="Codecov"></a> |
| 19 | + <a href="https://github.com/iamkun/dayjs/blob/master/LICENSE"><img |
| 20 | + src="https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square" alt="License"></a> |
| 21 | + <br> |
| 22 | + <a href="https://saucelabs.com/u/dayjs"> |
| 23 | + <img width="750" src="https://user-images.githubusercontent.com/17680888/40040137-8e3323a6-584b-11e8-9dba-bbe577ee8a7b.png" alt="Sauce Test Status"> |
| 24 | + </a> |
| 25 | +</p> |
| 26 | + |
| 27 | +> Day.js היא ספרייה מינימלסטית לפענוח, אימות, מניפולציה והצגה של תאריכים ושעות לדפדפנים מודרנים עם תאימות גבוהה ל-API של Moment.js. אם השתמשתם ב-Moment.js, אתם כבר יודעים את Day.js |
| 28 | +
|
| 29 | +<div dir="ltr"> |
| 30 | + |
| 31 | +```js |
| 32 | +dayjs().startOf('month').add(1, 'day').set('year', 2018).format('YYYY-MM-DD HH:mm:ss'); |
| 33 | +``` |
| 34 | + |
| 35 | +</div> |
| 36 | + |
| 37 | +* 🕒 תבניות ו-API זהים ל-Moment.js |
| 38 | +* 💪 אינו ניתן לשינוי |
| 39 | +* 🔥 ניתן לשרשור |
| 40 | +* 🌐 תמיכה ב-I18n |
| 41 | +* 📦 ספרייה קטנטנה 2kb |
| 42 | +* 👫 נתמכת בכל הדפדפנים |
| 43 | + |
| 44 | +--- |
| 45 | + |
| 46 | +## צעדים ראשונים |
| 47 | + |
| 48 | +### דוקומנטצייה |
| 49 | +באתר [day.js.org](https://day.js.org/) ניתן למצוא פרטים נוספים, API, ותיעודים נוספים. |
| 50 | + |
| 51 | + |
| 52 | +### התקנה |
| 53 | + |
| 54 | +```console |
| 55 | +npm install dayjs --save |
| 56 | +``` |
| 57 | + |
| 58 | +📚[מדריך התקנה](https://day.js.org/docs/en/installation/installation) |
| 59 | + |
| 60 | +### API |
| 61 | +מאוד קל להשתמש ב-Day.js לפענוח, אימות, מניפולציה והצגה של תאריכים ושעות. |
| 62 | + |
| 63 | +<div dir="ltr"> |
| 64 | + |
| 65 | + |
| 66 | +```javascript |
| 67 | +dayjs('2018-08-08') // פענוח |
| 68 | + |
| 69 | +dayjs().format('{YYYY} MM-DDTHH:mm:ss SSS [Z] A') // הצגה |
| 70 | + |
| 71 | +dayjs().set('month', 3).month() // קבלה והגדרה |
| 72 | + |
| 73 | +dayjs().add(1, 'year') // מניפולציה |
| 74 | + |
| 75 | +dayjs().isBefore(dayjs()) // שאילתה |
| 76 | +``` |
| 77 | + |
| 78 | +</div> |
| 79 | + |
| 80 | +📚[תיעודי API](https://day.js.org/docs/en/parse/parse) |
| 81 | + |
| 82 | +### I18n |
| 83 | +ל-Day.js יש תמיכה מצוינית בבינלאומיות. |
| 84 | + |
| 85 | +אבל אף אחד מהם לא יכלל בקובץ הסופי אלא אם כן יתבצע בהם שימוש. |
| 86 | + |
| 87 | +<div dir="ltr"> |
| 88 | + |
| 89 | + |
| 90 | +```javascript |
| 91 | +import 'dayjs/locale/es' // טעינה לפי הצורך |
| 92 | + |
| 93 | +dayjs.locale('es') // הגדרה לשימוש בספרדית באופן גלובלאלי |
| 94 | + |
| 95 | +dayjs('2018-05-05').locale('zh-cn').format() // הגדרה לשימוש בסינית פשוטה למופע ספיציפי בלבד |
| 96 | +``` |
| 97 | + |
| 98 | +</div> |
| 99 | + |
| 100 | + |
| 101 | +📚[בינלאומיות](https://day.js.org/docs/en/i18n/i18n) |
| 102 | + |
| 103 | +### תוסף |
| 104 | + |
| 105 | +תוסף הוא מודל בלתי-תלוי הניתן להוספה ל-Day.js להרחבה או להוספה של פונקציות. |
| 106 | + |
| 107 | + |
| 108 | +<div dir="ltr"> |
| 109 | + |
| 110 | + |
| 111 | +```javascript |
| 112 | +import advancedFormat from 'dayjs/plugin/advancedFormat' // טעינה לפי הצורך |
| 113 | + |
| 114 | +dayjs.extend(advancedFormat) // שימוש בתוסף |
| 115 | + |
| 116 | +dayjs().format('Q Do k kk X x') // כעת יותר אפשרויות זמינות |
| 117 | +``` |
| 118 | + |
| 119 | +</div> |
| 120 | + |
| 121 | +📚[רשימת תוספים](https://day.js.org/docs/en/plugin/plugin) |
| 122 | + |
| 123 | +## ספונסרים |
| 124 | +תמכו בפרויקט זה כדי להיות ספונסר. קבלו לוגו עם קישור לאתר שלכם שיופיע כאן. |
| 125 | + |
| 126 | + |
| 127 | +[[תמיכה דרך Github](https://github.com/sponsors/iamkun/)] [[תמיכה דרך OpenCollective](https://opencollective.com/dayjs#sponsor)] |
| 128 | + |
| 129 | +<a href="https://toyokumo.co.jp" target="_blank"> |
| 130 | + <img width="70" src="https://user-images.githubusercontent.com/17680888/197092231-2367b5eb-1e43-467e-a311-23f7cd97b086.png"> |
| 131 | +</a> |
| 132 | + |
| 133 | +<a href="https://github.com/alan-eu" target="_blank"> |
| 134 | + <img width="70" src="https://avatars.githubusercontent.com/u/18175329?s=52&v=4"> |
| 135 | +</a> |
| 136 | + |
| 137 | +<a href="https://opencollective.com/sight-and-sound-ministries" target="_blank"> |
| 138 | + <img width="70" src="https://user-images.githubusercontent.com/17680888/232316426-cb99b4cf-0ccb-4e73-a6ce-e16dba6aadf4.png"> |
| 139 | +</a> |
| 140 | + |
| 141 | +<a href="https://www.exoflare.com/open-source/?utm_source=dayjs&utm_campaign=open_source" target="_blank"> |
| 142 | + <img width="70" src="https://user-images.githubusercontent.com/17680888/162761622-1407a849-0c41-4591-8aa9-f98114ec2092.png"> |
| 143 | +</a> |
| 144 | + |
| 145 | +<a href="https://rxdb.info/?utm_source=day.js.org&utm_medium=banner&utm_campaign=day.js.org-sponsored" target="_blank"><img width="70" src="https://user-images.githubusercontent.com/17680888/200301812-9c9bd523-5dc4-4cab-b380-543fbcd3802c.svg"></a> |
| 146 | + |
| 147 | +<a href="https://github.com/vendure-ecommerce" target="_blank"><img width="70" src="https://avatars.githubusercontent.com/u/39629390?s=52&v=4"></a> |
| 148 | + |
| 149 | +<a href="https://opencollective.com/docbot" target="_blank"><img width="70" src="https://images.opencollective.com/docbot/457761e/logo.png"></a> |
| 150 | + |
| 151 | +<a href="https://opencollective.com/datawrapper" target="_blank"><img width="70" src="https://images.opencollective.com/datawrapper/c13e229/logo.png"></a> |
| 152 | + |
| 153 | +## תורמים |
| 154 | + |
| 155 | +פרויקט זה קיים הודות לכל האנשים שתמכו בו. |
| 156 | + |
| 157 | +תנו לנו 💖 כוכב 💖 כדי לתמוך בנו. תודה רבה. |
| 158 | + |
| 159 | +ותודה רבה לכל התומכים שלנו! 🙏 |
| 160 | + |
| 161 | +<a href="https://opencollective.com/dayjs/backer/0/website?requireActive=false" target="_blank"><img width="35" src="https://opencollective.com/dayjs/backer/0/avatar.svg?requireActive=false"></a> |
| 162 | +<a href="https://opencollective.com/dayjs/backer/1/website?requireActive=false" target="_blank"><img width="35" src="https://opencollective.com/dayjs/backer/1/avatar.svg?requireActive=false"></a> |
| 163 | +<a href="https://opencollective.com/dayjs/backer/2/website?requireActive=false" target="_blank"><img width="35" src="https://opencollective.com/dayjs/backer/2/avatar.svg?requireActive=false"></a> |
| 164 | +<a href="https://opencollective.com/dayjs/backer/3/website?requireActive=false" target="_blank"><img width="35" src="https://opencollective.com/dayjs/backer/3/avatar.svg?requireActive=false"></a> |
| 165 | +<br /> |
| 166 | +<a href="https://opencollective.com/dayjs#backers" target="_blank"><img src="https://opencollective.com/dayjs/contributors.svg?width=890" /></a> |
| 167 | + |
| 168 | +## רישיון |
| 169 | + |
| 170 | +Day.js מורשה לשימוש עם [רישיון MIT](./LICENSE). |
| 171 | +</div> |
0 commit comments