0.1.4 • Published 5 years ago
rigo v0.1.4
rigo
a simple translate tool for zh-en.
1. Basic Usage
how to use?:
yarn global add rigo
first you need a file such as:
module.exports = {
en: {},
zh: {
curtain0: '百叶窗',
curtain1: '香格里拉窗帘',
curtain2: '罗马帘',
curtain3: '卷帘',
curtain4: '柔纱帘',
curtain5: '卷窗',
curtain6: '蜂巢帘',
curtain7: '百褶帘',
curtain8: '卷闸门',
curtain9: '遮阳蓬',
curtain10: '开合帘',
curtain11: '罗马杆',
},
}
next
rigo -f ./strings.js
We will replace the source file with the translated file
command:
- rigo -f => Documents that need to be translated
- rigo -o => The location to which the translated file needs to be exported
- riclean -f => delete file
Todo
At present, only relative of files is supported. absolute position support will be added as soon as possible。
Currently, only Chinese to English is supported. Other languages will be added as soon as possible。
no import is not supported.