# Language Translation

Translate text seamlessly across languages using the `ModelLake().translate()` method. Specify the source and target language codes, input text, and model (e.g., OpenAI) for accurate and efficient translations. Example: Translate "red shirt under Rs 500" from English (`en`) to Malayalam (`ml`).\
\
Request Payload & Method

```python
translate_request={
                  "text": [
                      "red shirt under Rs 500"
                  ],
                  "source_lang_code": "en",
                  "target_lang_code": "ml",
                  "model": "openai"
              }

text = modellake.translate(translate_request)
print("Translated Text:", text)
```

Example Response

```python
Translated Text: {'translated_text': ['500 രൂപയിൽ താഴെയുള്ള ചുവന്ന ഷർട്ട്']}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.groclake.ai/lakes/data-and-model-management/modellake/markdown.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
