[Doc] new theme
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
## Internationalization
|
||||
# Internationalization
|
||||
|
||||
### Intro
|
||||
|
||||
The default language of Vant is Chinese. If you want to use other languages, you can follow the instructions below.
|
||||
|
||||
### Switch languages
|
||||
|
||||
Vant supports multiple languages with the Locale component, and the `Locale.use` method allows you to switch to diffrent languages.
|
||||
|
||||
```js
|
||||
@@ -12,6 +16,7 @@ Locale.use('en-US', enUS);
|
||||
```
|
||||
|
||||
### Modify default configs
|
||||
|
||||
Use `Locale.add` method to modify the default configs.
|
||||
|
||||
```js
|
||||
@@ -29,6 +34,7 @@ Locale.add(messages);
|
||||
```
|
||||
|
||||
### Config files
|
||||
|
||||
Current supported languages:
|
||||
|
||||
| Language | Filename |
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
## 国际化
|
||||
# 国际化
|
||||
|
||||
### 介绍
|
||||
|
||||
Vant 默认采用中文作为语言,如果需要使用其他语言,可以参考下面的方案
|
||||
|
||||
### 多语言切换
|
||||
|
||||
Vant 通过 Locale 组件实现多语言支持,使用 `Locale.use` 方法可以切换当前使用的语言。
|
||||
|
||||
```js
|
||||
@@ -12,6 +16,7 @@ Locale.use('en-US', enUS);
|
||||
```
|
||||
|
||||
### 修改默认文案
|
||||
|
||||
通过 `Locale.add` 方法可以实现文案的修改和扩展,示例如下:
|
||||
|
||||
```js
|
||||
|
||||
Reference in New Issue
Block a user