File tree 7 files changed +17
-171
lines changed
7 files changed +17
-171
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ mango-scripts
10
10
| [ @mango-scripts/i18n-utils ] ( packages/i18n-utils ) | [ mango-i18n-system] ( https://github.com/AlbertLin0923/mango-i18n-system ) 自动国际化文案配置系统的` 文案解析器 ` ,用于提取` 中文文案key ` |
11
11
| [ @mango-scripts/i18n-scripts ] ( packages/i18n-scripts ) | [ mango-i18n-system] ( https://github.com/AlbertLin0923/mango-i18n-system ) 自动国际化文案配置系统的` 辅助插件合集 ` ,用于下载语言包、转换 vue 文件等 |
12
12
| [ @mango-scripts/dev-scripts ] ( packages/dev-scripts ) | 一些便捷的前端开发脚本 |
13
- | [ @mango-scripts/react-scripts ] ( packages/react-scripts ) | React Web 项目构建工具,支持 webpack && rsbuild 双构建引擎切换 |
13
+ | [ @mango-scripts/react-scripts ] ( packages/react-scripts ) | React Web App 项目构建工具,支持 webpack && rsbuild 双构建引擎切换 |
14
14
| [ @mango-scripts/esp-config ] ( packages/esp-config ) | 一个包含 ` eslint ` ,` stylelint ` ,` prettier ` 的配置文件合集 |
15
- | [ @mango-scripts/babel-preset-mango ] ( packages/babel-preset-mango ) | 通用 React App Babel 配置 |
15
+ | [ @mango-scripts/babel-preset-mango ] ( packages/babel-preset-mango ) | React Web App 项目通用 Babel 配置 |
16
16
| [ @mango-scripts/utils ] ( packages/utils ) | mango-scripts 内部工具库 |
17
17
18
18
## License
Original file line number Diff line number Diff line change 2
2
@mango-scripts/babel-preset-mango
3
3
</h1 >
4
4
<p align =" center " >
5
- 通用 React App Babel 配置
5
+ React Web App 项目通用 Babel 配置
6
6
<p >
7
7
<p align =" center " >
8
8
<a href =" https://www.npmjs.com/package/@mango-scripts/babel-preset-mango " target =" __blank " rel =" noopener noreferrer " ><img src =" https://img.shields.io/npm/v/@mango-scripts/babel-preset-mango?label= " alt =" NPM version " ></a >
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @mango-scripts/babel-preset-mango" ,
3
3
"version" : " 0.0.2" ,
4
- "description" : " 通用 React App Babel 配置" ,
4
+ "description" : " React Web App 项目通用 Babel 配置" ,
5
5
"keywords" : [
6
6
" mango-scripts" ,
7
7
" babel-preset"
Original file line number Diff line number Diff line change @@ -28,9 +28,14 @@ pnpm add @mango-scripts/i18n-scripts -D
28
28
从国际化文案配置系统下载语言包文件并进行对比和梳理
29
29
30
30
``` bash
31
- i18n-scripts updateLocale
31
+
32
+ i18n-scripts updateLocale -f http://xxx:5003/api/locale/get_locale_map -o ./src/locales/common/ -l zh-CN en-US id-ID
32
33
```
33
34
35
+ 其中
36
+
37
+ -o 参数为 在业务项目里存储语言包的目录地址,例如:./src/locales/common/ -f 参数为 部署的服务器的地址和端口,例如:http://xxx:5003/api/locale/get_locale_map -l 参数为 需要下载的语言包列表,例如:zh-CN en-US id-ID
38
+
34
39
### insertI18n
35
40
36
41
给 ` vue ` 文件添加 ` $t('xxx') ` 国际化 i18n 标识
Original file line number Diff line number Diff line change 2
2
@mango-scripts/react-scripts
3
3
</h1 >
4
4
<p align =" center " >
5
- React Web 项目构建工具,支持 webpack && rsbuild 双构建引擎切换
5
+ React Web App 项目构建工具,支持 webpack && rsbuild 双构建引擎切换
6
6
<p >
7
7
<p align =" center " >
8
8
<a href =" https://www.npmjs.com/package/@mango-scripts/react-scripts " target =" __blank " rel =" noopener noreferrer " ><img src =" https://img.shields.io/npm/v/@mango-scripts/react-scripts?label= " alt =" NPM version " ></a >
Original file line number Diff line number Diff line change 90
90
"postcss-normalize" : " ^10.0.1" ,
91
91
"postcss-preset-env" : " ^9.3.0" ,
92
92
"prompts" : " ^2.4.2" ,
93
- "react-dev-utils" : " ^12.0.1" ,
94
93
"react-refresh" : " ^0.14.0" ,
95
94
"recursive-readdir" : " ^2.2.3" ,
96
95
"resolve" : " ^1.22.8" ,
You can’t perform that action at this time.
0 commit comments