Skip to content

Commit 3d1b929

Browse files
committed
docs: improve the locales field in the configuration document
1 parent 6805af5 commit 3d1b929

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

docs/options.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## component
44

55
- Type: `string`
6-
- Default: demo-block
6+
- Default: `demo-block`
77

88
The component name of the warp code and example.
99

@@ -56,4 +56,13 @@ After the Demo Container is rendered, only the main structure of the rendering i
5656
<!--render-source:xxx:render-source-->
5757
</template>
5858
</custom-demo-block>
59-
```
59+
```
60+
61+
## locales
62+
63+
- Type: `Array`
64+
- Default
65+
66+
<<< @/src/i18n/default_lang.json
67+
68+
Use `locales` to customize the internationalization configuration, and the plugin will complete the language switching according to the [matching lang field in Vuepress](https://vuepress.vuejs.org/guide/i18n.html).

docs/zh/options.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## component
44

55
- 类型:`string`
6-
- 默认值:demo-block
6+
- 默认值:`demo-block`
77

88
包裹代码与示例的组件名称。
99

@@ -56,4 +56,13 @@ module.exports = {
5656
<!--render-source:xxx:render-source-->
5757
</template>
5858
</custom-demo-block>
59-
```
59+
```
60+
61+
## locales
62+
63+
- 类型:`Array`
64+
- 默认值
65+
66+
<<< @/src/i18n/default_lang.json
67+
68+
使用 `locales` 自定义国际化配置,插件将根据 Vuepress 中匹配的 lang 字段完成语言切换,[点此查看 Vuepress 的多语言支持](https://vuepress.vuejs.org/zh/guide/i18n.html)

0 commit comments

Comments
 (0)