Skip to content

Commit 41eb641

Browse files
committed
docs: fix doc error
1 parent 6d30744 commit 41eb641

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

docs/en/I18n.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Exactly the same as `dayjs#locale`, but only use locale in a specific instance.
3939
```js
4040
import 'dayjs/locale/es'
4141
dayjs().locale('es').format() // use loaded locale locally
42-
dayjs('2018-4-28', { locale: "es" }) // through constructor
42+
dayjs('2018-4-28', { locale: 'es' }) // through constructor
4343
```
4444

4545
## Installation

docs/ja/I18n.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dayjs.locale('en') // switch back to default English locale globally
3939
```js
4040
import 'dayjs/locale/es'
4141
dayjs().locale('es').format() // 読み込んだロケールを特定のインスタンスに適用
42-
dayjs('2018-4-28', { locale: es }) // コンストラクタを通して適用
42+
dayjs('2018-4-28', { locale: 'es' }) // コンストラクタを通して適用
4343
```
4444

4545
## インストール

docs/ko/I18n.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dayjs.locale('en') // switch back to default English locale globally
3939
```js
4040
import 'dayjs/locale/es'
4141
dayjs().locale('es').format() // 국지적으로 locale을 로드하여 사용합니다..
42-
dayjs('2018-4-28', { locale: es }) // through constructor
42+
dayjs('2018-4-28', { locale: 'es' }) // through constructor
4343
```
4444

4545
## Installation

docs/pt-br/I18n.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Exatamente o mesmo que `dayjs#locale`, porém utilizando somente o *locale* em u
3939
```js
4040
import 'dayjs/locale/es'
4141
dayjs().locale('es').format() // usar locale localmente
42-
dayjs('2018-4-28', { locale: es }) // também pode ser feito no constructor
42+
dayjs('2018-4-28', { locale: 'es' }) // também pode ser feito no constructor
4343
```
4444

4545
## Instalação

docs/zh-cn/I18n.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dayjs.locale('en') // 全局使用默认的英语语言
3939
```js
4040
import 'dayjs/locale/es'
4141
dayjs().locale('es').format() // 局部修改语言配置
42-
dayjs('2018-4-28', { locale: es }) // 在新建实例时指定
42+
dayjs('2018-4-28', { locale: 'es' }) // 在新建实例时指定
4343
```
4444

4545
## 安装

0 commit comments

Comments
 (0)