0.0.1 • Published 6 years ago
xml-translate v0.0.1
xml-translate
a simple tool to translate xml/html with google translate
install
npm i -g xml-translate
CLI
xml-translate <file>
Options:
--help Show help [boolean]
--version Show version number [boolean]
--to, -t target language [required]
--from, -f source language [default: "auto"]
--selector, -s a jQuery style selector to match elements [default: "*"]
--output, -o a file to write
a example to translate Android's strings.xml to zh-tw
xml-translate strings.xml -t zh-tw -s "string:not([translatable=false])" -o values-zh-rTW/strings.xml
0.0.1
6 years ago