Stay organized with collections
Save and categorize content based on your preferences.
Detects the language of text within a request.
Arguments
Parameters
parent
string
Required. Project or location to make a call. Must refer to a caller's project. Format: projects/{project-number-or-id}/locations/{location-id} or projects/{project-number-or-id}. For global calls, use projects/{project-number-or-id}/locations/global or projects/{project-number-or-id}. Only models within the same region (has same location-id) can be used. Otherwise an INVALID_ARGUMENT (400) error is returned.
[[["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,["# Method: googleapis.translate.v3.projects.detectLanguage\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 [`DetectLanguageResponse`](/workflows/docs/reference/googleapis/translate/v3/Overview#DetectLanguageResponse).\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/v3/projects/detectLanguage). \n\n### YAML\n\n```yaml\n- detectLanguage:\n call: googleapis.translate.v3.projects.detectLanguage\n args:\n parent: ...\n body:\n content: ...\n labels: ...\n mimeType: ...\n model: ...\n result: detectLanguageResult\n```\n\n### JSON\n\n```json\n[\n {\n \"detectLanguage\": {\n \"call\": \"googleapis.translate.v3.projects.detectLanguage\",\n \"args\": {\n \"parent\": \"...\",\n \"body\": {\n \"content\": \"...\",\n \"labels\": \"...\",\n \"mimeType\": \"...\",\n \"model\": \"...\"\n }\n },\n \"result\": \"detectLanguageResult\"\n }\n }\n]\n```"]]