Starling Client CLI 是一个命令行工具,用户可通过其将本地资源与国际化翻译平台项目同步。目前仅支持对 json、strings、stringsdict、xml、arb 类型的文件进行操作。
需要预先安装NodeJsv14以上版本
$ npm install -g @volcengine/starling-cli-public
$ starling client init
上传源文案至国际化翻译平台
$ starling client upload
上传源文案 + 翻译文案至国际化翻译平台
$ satrling client upload -t
下载源文案 + 翻译文案
$ starling client download
下载源文案
$ starling client download -s
$ starling client list task
$ starling client list namespace
$ starling client list languages
gyp: No Xcode or CLT version detected! gyp ERR! configure error
可以按照以下步骤进行处理
xcode-select --print-path # in my case /Library/Developer/CommandLineTools # the next line deletes the path returned by the command above sudo rm -rf $(xcode-select --print-path) # install them (again) if you don't get a default installation prompt xcode-select --install
请检查文件编码,默认只支持utf-8编码
{ "Statement": [ { "Effect": "Allow", "Action": [ "i18n_openapi:*" ], "Resource": [ "*" ] } ] }