Skip to content

Commit

Permalink
docs: Update weekday plugin doc
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkun committed May 29, 2019
1 parent 907f5c9 commit e9a2c28
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions docs/en/Plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,9 +291,9 @@ dayjs('2018-06-27').week(5) // set week
- WeekDay adds `.weekday()` API to get or set locale aware day of the week.

```javascript
import weekDay from 'dayjs/plugin/weekDay'
import weekday from 'dayjs/plugin/weekday'

dayjs.extend(weekDay)
dayjs.extend(weekday)
// when Monday is the first day of the week
dayjs().weekday(-7) // last Monday
dayjs().weekday(7) // next Monday
Expand Down
4 changes: 2 additions & 2 deletions docs/es-es/Plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,9 @@ dayjs('2018-06-27').week(5) // set week
- WeekDay adds `.weekday()` API to get or set locale aware day of the week.

```javascript
import weekDay from 'dayjs/plugin/weekDay'
import weekday from 'dayjs/plugin/weekday'

dayjs.extend(weekDay)
dayjs.extend(weekday)
// when Monday is the first day of the week
dayjs().weekday(-7) // last Monday
dayjs().weekday(7) // next Monday
Expand Down
4 changes: 2 additions & 2 deletions docs/ja/Plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,9 @@ dayjs('2018-06-27').week(5) // set week
- WeekDay adds `.weekday()` API to get or set locale aware day of the week.

```javascript
import weekDay from 'dayjs/plugin/weekDay'
import weekday from 'dayjs/plugin/weekday'

dayjs.extend(weekDay)
dayjs.extend(weekday)
// when Monday is the first day of the week
dayjs().weekday(-7) // last Monday
dayjs().weekday(7) // next Monday
Expand Down
4 changes: 2 additions & 2 deletions docs/ko/Plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,9 @@ dayjs('2018-06-27').week(5) // set week
- WeekDay adds `.weekday()` API to get or set locale aware day of the week.

```javascript
import weekDay from 'dayjs/plugin/weekDay'
import weekday from 'dayjs/plugin/weekday'

dayjs.extend(weekDay)
dayjs.extend(weekday)
// when Monday is the first day of the week
dayjs().weekday(-7) // last Monday
dayjs().weekday(7) // next Monday
Expand Down
4 changes: 2 additions & 2 deletions docs/pt-br/Plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,9 @@ dayjs('2018-06-27').week(5) // set week
- WeekDay adds `.weekday()` API to get or set locale aware day of the week.

```javascript
import weekDay from 'dayjs/plugin/weekDay'
import weekday from 'dayjs/plugin/weekday'

dayjs.extend(weekDay)
dayjs.extend(weekday)
// when Monday is the first day of the week
dayjs().weekday(-7) // last Monday
dayjs().weekday(7) // next Monday
Expand Down
4 changes: 2 additions & 2 deletions docs/zh-cn/Plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,9 @@ dayjs('2018-06-27').week(5) // 设置周
- WeekDay 增加了 `.weekday()` API 来获取或设置当前语言的星期。

```javascript
import weekDay from 'dayjs/plugin/weekDay'
import weekday from 'dayjs/plugin/weekday'

dayjs.extend(weekDay)
dayjs.extend(weekday)
// when Monday is the first day of the week
dayjs().weekday(-7) // last Monday
dayjs().weekday(7) // next Monday
Expand Down

0 comments on commit e9a2c28

Please sign in to comment.