---
title: vx_req_account_translation_control
product: Vivox Core SDK
canonical: https://docs.unity.com/en-us/vivox-core/reference-manual/core/structvx__req__account__translation__control
last_updated: 2026-11-19
generated_at: 2026-11-29T05:46:36.843Z
locale: en-us
---

# vx_req_account_translation_control

> Enable or disable translation of incoming text for the logged in account. More...

Enable or disable translation of incoming text for the logged in account.  [More...](#detailed-description)

`#include <VxcRequests.h>`

## Public Attributes

|                                                   | Name                                                                                                                       |
| ------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| [vx\_req\_base\_t](_vxc_8h#typedef-vx_req_base_t) | **[base](#variable-base)** The common properties for all requests.                                                         |
| [VX\_HANDLE](_vxc_8h#typedef-vx_handle)           | **[account\_handle](#variable-account_handle)** Returned from a successful vx\_req\_account\_login request.                |
| int                                               | **[enable](#variable-enable)** Enable or disable translation.                                                              |
| int                                               | **[auto\_languages](#variable-auto_languages)** Resolve both languages per message instead of using a fixed pair.          |
| char \*                                           | **[source\_language](#variable-source_language)** The language that incoming text is translated from, for example "en-us". |
| char \*                                           | **[target\_language](#variable-target_language)** The language that incoming text is translated into, for example "fr".    |

## Detailed Description

```cpp
struct vx_req_account_translation_control;
```

Enable or disable translation of incoming text for the logged in account.

Translation covers directed messages, their edits, and chat history results. Voice is never translated.

## Public Attributes Documentation

### variable base

```cpp
vx_req_base_t base;
```

The common properties for all requests.

### variable account\_handle

```cpp
VX_HANDLE account_handle;
```

Returned from a successful vx\_req\_account\_login request.

### variable enable

```cpp
int enable;
```

Enable or disable translation.

Set to 0 to disable translation.

### variable auto\_languages

```cpp
int auto_languages;
```

Resolve both languages per message instead of using a fixed pair.

The target is the first language supplied to vx\_req\_account\_anonymous\_login, so a login that declared no languages translates nothing. The source is taken from each incoming message. Set to 1 to enable. When set, source\_language and target\_language must both be NULL or empty.

### variable source\_language

```cpp
char * source_language;
```

The language that incoming text is translated from, for example "en-us".

This is required when enabling unless auto\_languages is set, and ignored when disabling.

### variable target\_language

```cpp
char * target_language;
```

The language that incoming text is translated into, for example "fr".

This is required when enabling unless auto\_languages is set, must differ from source\_language, and is ignored when disabling.
