This page provides reference documentation and related resources for the Cloud Translation Ruby client library.
Resource | Description |
---|---|
Library reference | Cloud Translation Ruby library reference |
Language guide | General guide for using Ruby with GCP |
GitHub repository | Source code and additional documentation for this library |
Quickstart | Introduction to using this library |
Stack Overflow | Questions tagged with Cloud Translation and Ruby |
Installation
To install the client library:
For more on setting up your Ruby development environment, refer to the Ruby Development Environment Setup Guide.
gem install google-cloud-translate-v2
Using the client library
To use the Ruby client library for Cloud Translation - Basic, you must instantiate the Cloud Translation API client as follows:
translate = Google::Cloud::Translate::V2.new
See how to translate text for additional usage details.