Просмотр исходного кода

[create]Support more languages

dufu1991 3 лет назад
Родитель
Сommit
3d5c014357

+ 7 - 1
packages/create-stdf/README.md

@@ -66,7 +66,7 @@ Template presets include:
 | --------------- | ------ | ------- | ----------------------------------------------------------------------------------------------------- |
 | -               | string | -       | The name of the project, you can direct input.                                                        |
 | -t / --template | string | vt      | The template to use. Available templates are: `vt`, `vu`, `skt`, `sku`, `vtt`, `vut`, `sktt`, `skut`. |
-| -l / --language | string | en_US   | The language of the prompts.                                                                           |
+| -l / --language | string | en_US   | The language of the prompts.                                                                          |
 
 # Supported Languages
 
@@ -80,6 +80,12 @@ Template presets include:
 | es_ES | Spanish               |
 | ru_RU | Russian               |
 
+For example:
+
+```bash
+pnpm create stdf my-app -l zh_CN
+```
+
 # License
 
 This project is licensed under the [MIT License](https://github.com/dufu1991/stdf/blob/main/LICENSE). Feel free to enjoy and contribute to this open-source project.

+ 6 - 0
packages/create-stdf/README_CN.md

@@ -79,6 +79,12 @@ npm create stdf@latest my-app -t vu
 | es_ES | 西班牙语     |
 | ru_RU | 俄语         |
 
+例如:
+
+```bash
+pnpm create stdf my-app -l zh_CN
+```
+
 
 # 许可证
 

+ 1 - 1
packages/create-stdf/package.json

@@ -1,6 +1,6 @@
 {
     "name": "create-stdf",
-    "version": "0.0.32",
+    "version": "0.0.33",
     "description": "A CLI for creating new STDF projects",
     "bin": {
         "create-stdf": "index.js"