English
Simplified Chinese
code-i18n 一个帮助项目快速制作国际化的脚本
你只需要拷贝当前目录下的 .code-i18n.js 文件到你的目录下,然后执行
code-i18n --config .code-i18n.js --type vue -d src -s locale/zh-cn.json -w
想快速体验脚本转换的乐趣,可以 clone 本项目,然后执行
yarn transform
。注意,英文语言包需要从中文语言包中翻译。
翻译完成后,切换语言。你会发现,界面中所有字都变成对应的语言信息。
项目地址:
https://github.com/Linkontoask/vite-i18n
code-i18n 文档:
https://github.com/Linkontoask/code-i18n