README
hello-intl
提取需要转换项目中的文本 (暂时还不能用,哈哈)
install
npm install --save hello-intl
初始化目录结构
npm run init
读取文件 写入 (app|src)/locale/zh.js
npm run read
自定义 zh.js 中的key
替换文件
npm run replace
Warning
每一次执行 run read 命令都会重写 zh.js 文件,请谨慎使用!
提取需要转换项目中的文本 (暂时还不能用,哈哈)
<script type="module">
import helloIntl from 'https://cdn.skypack.dev/hello-intl';
</script>
提取需要转换项目中的文本 (暂时还不能用,哈哈)
npm install --save hello-intl
npm run init
npm run read
npm run replace
每一次执行 run read 命令都会重写 zh.js 文件,请谨慎使用!