trans:用Go编写的Google翻译CLI

时间:2021-02-04 15:56:48
【文件属性】:
文件名称:trans:用Go编写的Google翻译CLI
文件大小:13KB
文件格式:ZIP
更新时间:2021-02-04 15:56:48
go golang google translate GoogleGo 反式 用Go编写的Google翻译CLI。 需要 您必须首先通过创建GCP的API密钥或服务帐户来设置身份验证。 API密钥 可在找到API密钥文档。 将环境变量TRANS_API_KEY设置为API密钥。 或服务帐户 服务帐户文档可在找到。 将环境变量GOOGLE_APPLICATION_CREDENTIALS设置为包含您的服务帐户密钥的JSON文件的文件路径。 注意 您需要一点钱才能使用Google翻译API。 例如,2889个字符的价格为$ 0.06。 安装 $ go get -u github.com/utahta/trans/cmd/trans 用法 $ trans -t en
【文件预览】:
trans-master
----go.mod(714B)
----version.txt(7B)
----go.sum(18KB)
----trans.go(2KB)
----scripts()
--------release.sh(82B)
--------common.sh(375B)
--------package.sh(491B)
----LICENSE(1KB)
----README.md(1KB)
----Makefile(163B)
----.gitignore(54B)
----cmd()
--------trans()

网友评论