[[["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-08-29 UTC."],[],[],null,["# Method: googleapis.translate.v2.detections.detect\n\nDetects the language of text within a request.\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response contains an instance of [`DetectionsListResponse`](/workflows/docs/reference/googleapis/translate/v2/Overview#DetectionsListResponse).\n\nSubworkflow snippet\n-------------------\n\nSome fields might be optional or required.\nTo identify required fields, refer to the [API documentation](https://cloud.google.com/translate/docs/reference/rest/v2/detect). \n\n### YAML\n\n```yaml\n- detect:\n call: googleapis.translate.v2.detections.detect\n args:\n body:\n q: ...\n result: detectResult\n```\n\n### JSON\n\n```json\n[\n {\n \"detect\": {\n \"call\": \"googleapis.translate.v2.detections.detect\",\n \"args\": {\n \"body\": {\n \"q\": \"...\"\n }\n },\n \"result\": \"detectResult\"\n }\n }\n]\n```"]]