Skip to content

Commit

Permalink
docs: Fix doc format escape error
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkun committed Feb 19, 2019
1 parent 4accf0e commit b43decf
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/en/API-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ dayjs().endOf('month')
### Format `.format(stringWithTokens: string)`

Returns a `string` with the `Dayjs`'s formatted date.
To escape characters, wrap them in square brackets (e.g. `[G] [um]`).
To escape characters, wrap them in square brackets (e.g. `[A] [MM]`).

```js
dayjs().format() // current date in ISO6801, without fraction seconds e.g. '2020-04-02T08:02:17-05:00'
Expand Down
4 changes: 2 additions & 2 deletions docs/es-es/API-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,12 @@ dayjs().endOf('month')
### Dar formato `.format(stringWithTokens: string)`

Devuelve un dato de tipo `string` con la fecha del objeto `Dayjs` formateada.
Para escapar caracteres, estos se han de encerrar entre corchetes o llaves (p.ej.: `[G] {um}`).
Para escapar caracteres, estos se han de encerrar entre corchetes (p.ej.: `[A] [MM]`).

```js
dayjs().format() // fecha actual en ISO6801, sin fracciones de segundo p.ej. '2020-04-02T08:02:17-05:00'

dayjs('2019-01-25').format('{YYYY} MM-DDTHH:mm:ssZ[Z]') // '{2019} 01-25T00:00:00-02:00Z'
dayjs('2019-01-25').format('[YYYY] YYYY-MM-DDTHH:mm:ssZ[Z]') // 'YYYY 2019-01-25T00:00:00-02:00Z'

dayjs('2019-01-25').format('DD/MM/YYYY') // '25/01/2019'
```
Expand Down
2 changes: 1 addition & 1 deletion docs/ja/API-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ dayjs().endOf('month')
```js
dayjs().format(String)
dayjs().format() // "2014-09-08T08:02:17-05:00" (ISO 8601 形式、小数部は含まない)
dayjs().format('{YYYY} MM-DDTHH:mm:ssZ[Z]') // "{2014} 09-08T08:02:17-05:00Z"
dayjs('2019-01-25').format('[YYYY] YYYY-MM-DDTHH:mm:ssZ[Z]') // 'YYYY 2019-01-25T00:00:00-02:00Z'
```

- 文字列内の文字をエスケープするには、文字を角括弧で囲みます (例: [Z]) 。
Expand Down
4 changes: 2 additions & 2 deletions docs/ko/API-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,12 +256,12 @@ dayjs().endOf('month')
### Format `.format(stringWithTokens: string)`

`Dayjs` 오브젝트 시간을 기본 형식으로 출력합니다. 반환 형식은 `string` 입니다.
예외하고 싶은 문자일 경우, 대괄호나 중괄호를 사용하여 묶으면됩니다. (예, `[G] {um}`)
예외하고 싶은 문자일 경우, 대괄호나 중괄호를 사용하여 묶으면됩니다. (예, `[A] [MM]`)

```js
dayjs().format() // 분과 초가 없는 ISO5801 형식의 현재 시간을 나타냅니다. 예: '2020-04-02T08:02:17-05:00'

dayjs('2019-01-25').format('{YYYY} MM-DDTHH:mm:ssZ[Z]') // '{2019} 01-25T00:00:00-02:00Z'
dayjs('2019-01-25').format('[YYYY] YYYY-MM-DDTHH:mm:ssZ[Z]') // 'YYYY 2019-01-25T00:00:00-02:00Z'

dayjs('2019-01-25').format('DD/MM/YYYY') // '25/01/2019'
```
Expand Down
4 changes: 2 additions & 2 deletions docs/pt-br/API-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,12 @@ dayjs().endOf('month')
### Formatação `.format(stringWithTokens: string)`

Retorna uma `string` com um objeto `Dayjs` contendo a data formatada.
Para escapar caracteres, envolva-os entre colchetes ou chaves (por exemplo: `[G] {um}`).
Para escapar caracteres, envolva-os entre colchetes (por exemplo: `[A] [MM]`).

```js
dayjs().format() // current date in ISO6801, without fraction seconds e.g. '2020-04-02T08:02:17-05:00'

dayjs('2019-01-25').format('{YYYY} MM-DDTHH:mm:ssZ[Z]') // '{2019} 01-25T00:00:00-02:00Z'
dayjs('2019-01-25').format('[YYYY] YYYY-MM-DDTHH:mm:ssZ[Z]') // 'YYYY 2019-01-25T00:00:00-02:00Z'

dayjs('2019-01-25').format('DD/MM/YYYY') // '25/01/2019'
```
Expand Down
2 changes: 1 addition & 1 deletion docs/zh-cn/API-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ dayjs().endOf('month');

```js
dayjs().format(String)
dayjs().format() // "2014-09-08T08:02:17-05:00" (ISO 8601, no fractional seconds)
dayjs('2019-01-25').format('[YYYY] YYYY-MM-DDTHH:mm:ssZ[Z]') // 'YYYY 2019-01-25T00:00:00-02:00Z'
dayjs().format('{YYYY} MM-DDTHH:mm:ssZ[Z]') // "{2014} 09-08T08:02:17-05:00Z"
```

Expand Down

0 comments on commit b43decf

Please sign in to comment.