1.0.1 ā¢ Published 2 years ago
buffalo-translate-cli v1.0.1
Buffalo Translate CLI
Translate words via terminal.
- usage
buffalo translate, -t <language>["EN", -en] <context> # translate word.
buffalo detect, -d <context> # detect language.
buffalo [-v, --version, version] #output the version number.
buffalo [-h, --help, help] #show all commands.
# Example:
buffalo translate "pt" "example"
# output
š {
resource: { source: 'EN', target: 'PT', contexts 'example' },
content: 'exemplo'
}
buffalo detect "example"
# output
š en
Note: You have to sign in to the
Google Cloud Platform
(gCloud)
# example
gcloud auth application-default login --client-id-file=clientid.json
# or
gcloud auth application-default login
.env.example: GOOGLE_CLOUD_PROJECT_ID=
<projectId>