[[["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,["# Cloud Translation V2 API - Class Google::Cloud::Translate::V2::Language (v1.1.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.0 (latest)](/ruby/docs/reference/google-cloud-translate-v2/latest/Google-Cloud-Translate-V2-Language)\n- [1.0.1](/ruby/docs/reference/google-cloud-translate-v2/1.0.1/Google-Cloud-Translate-V2-Language)\n- [0.5.1](/ruby/docs/reference/google-cloud-translate-v2/0.5.1/Google-Cloud-Translate-V2-Language)\n- [0.4.1](/ruby/docs/reference/google-cloud-translate-v2/0.4.1/Google-Cloud-Translate-V2-Language)\n- [0.3.1](/ruby/docs/reference/google-cloud-translate-v2/0.3.1/Google-Cloud-Translate-V2-Language) \nReference documentation and code samples for the Cloud Translation V2 API class Google::Cloud::Translate::V2::Language.\n\nLanguage\n--------\n\nRepresents a supported languages query result. Returned by [Api#languages](/ruby/docs/reference/google-cloud-translate-v2/latest/Google-Cloud-Translate-V2-Api#Google__Cloud__Translate__V2__Api_languages_instance_ \"Google::Cloud::Translate::V2::Api#languages (method)\"). \n\nInherits\n--------\n\n- Object\n\nExample\n-------\n\n```ruby\nrequire \"google/cloud/translate/v2\"\n\ntranslate = Google::Cloud::Translate::V2.new\n\nlanguages = translate.languages \"en\"\n\nlanguages.size #=\u003e 104\nlanguages[0].code #=\u003e \"af\"\nlanguages[0].name #=\u003e \"Afrikaans\"\n```\n\nMethods\n-------\n\n### #code\n\n def code() -\u003e String\n\nThe language code. This is an [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) language\ncode. \n**Returns**\n\n- (String)\n\n### #name\n\n def name() -\u003e String\n\nThe localized name of the language, if available. \n**Returns**\n\n- (String)"]]