buffalo-translate-cli
v1.0.1
Published
<h1 align="center" id="project_name"> ๐ </h1>
Readme
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>
