# get_translator

> **Function** in `langchain_core`

📖 [View in docs](https://reference.langchain.com/python/langchain-core/messages/block_translators/get_translator)

Get the translator functions for a provider.

## Signature

```python
get_translator(
    provider: str,
) -> dict[str, Callable[..., list[types.ContentBlock]]] | None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `provider` | `str` | Yes | The model provider name. |

## Returns

`dict[str, Callable[..., list[types.ContentBlock]]] | None`

Dictionary with `'translate_content'` and `'translate_content_chunk'`

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/b302691ff9ad841804e93e5addbdc53b6974473b/libs/core/langchain_core/messages/block_translators/__init__.py#L57)