📝 Add some comments image to document.

This commit is contained in:
zuiidea
2018-11-20 21:30:22 +08:00
parent 108aca99b9
commit 78c3b6d597
8 changed files with 548 additions and 2 deletions
File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 194 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 118 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 199 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 124 KiB

+2
View File
@@ -2,6 +2,8 @@
After the development is completed and verified in the development environment, it needs to be deployed to our users.
![i18n](./_media/term_build.svg)
## Build
First execute the following command,
+3 -1
View File
@@ -4,6 +4,8 @@
Take Japanese as an example.
![i18n](../_media/term_i18n.svg)
1. Add a language pack local file, `ja` is the Japanese language code, and a list of languages ​​that support translation [有道智云](http://ai.youdao.com/docs/doc-trans-api.s#p05), the `src/locales/ja/messages.json` file will be generated after running the following command.
```bash 
@@ -39,7 +41,7 @@ Take Japanese as an example.
...
{
key:'ja',
title: '日语',
title: '日本語',
flag: '/japanese.svg',
},
],
+2
View File
@@ -2,6 +2,8 @@
完成开发并且在开发环境验证之后,就需要部署给我们的用户了。
![i18n](../_media/term_build.svg)
## 构建
先执行下面的命令,
+3 -1
View File
@@ -4,6 +4,8 @@
以新增日语为例。
![i18n](../_media/term_i18n.svg)
1. 添加语言包本地文件,`ja` 为日语的语言代码,支持翻译的语言列表参考 [有道智云](http://ai.youdao.com/docs/doc-trans-api.s#p05),运行下面命令后会生成 `src/locales/ja/messages.json` 文件。
```bash
@@ -39,7 +41,7 @@
...
{
key:'ja',
title: '日语',
title: '日本語',
flag: '/japanese.svg',
},
],