[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Ruby client library\n\n| **Note:** Google provides the Cloud Translation API client library for Ruby as a single package for both Cloud Translation - Advanced and Cloud Translation - Basic. This page describes how to install the client library for Cloud Translation - Basic. To use the client library for Cloud Translation - Advanced, see the [installation instructions](/translate/docs/reference/libraries/v3/ruby).\n\n\nThis page provides reference documentation and related resources for the\nCloud Translation Ruby client library.\n\n### Installation\n\n\nTo install the client library:\n\n\nFor more on setting up your Ruby development environment, refer to the\n[Ruby Development Environment Setup Guide](/ruby/docs/setup).\n\n```\ngem install google-cloud-translate-v2\n```\n\nUsing the client library\n------------------------\n\nTo use the Ruby client library for Cloud Translation - Basic, you must\ninstantiate the Cloud Translation API client as follows: \n\n```ruby\ntranslate = Google::Cloud::Translate::V2.new\n```\n\nSee how to\n[translate text](/translate/docs/basic/translating-text#translating_text)\nfor additional usage details."]]