# IRPCLanguagesAdmin.ApplyTranslations

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Administration API](https://developer.m-files.com/APIs/gRPC-API/admin/index.md) > [Language administration](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLanguagesAdmin/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLanguagesAdmin/ApplyTranslations/

Badges: `Administration API / specialized` `admin` `session` `idempotent`

Stores translated names in a target language.

- **Service:** [Language administration](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLanguagesAdmin/index.md) `MFiles.IRPCLanguagesAdmin`
- **gRPC method:** `/MFiles.IRPCLanguagesAdmin/ApplyTranslations`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/apply-translations`
- **Request:** [`ApplyTranslationsRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLanguagesAdmin/ApplyTranslations/index.md#request)
- **Response:** [`ApplyTranslationsResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLanguagesAdmin/ApplyTranslations/index.md#response)
- **Book and level:** Administration API, specialized
- **Kind:** admin
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** yes
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

- Requires the vault rights `change_metadata_structure`, `license_allows_modifications` and
  `see_all_objects`, and a server license that includes the languages feature.
- When at least one translation is stored, the metadata structure version changes (clients reload the
  names) and the vault's search indexes are marked for re-indexing.

<a id="request"></a>

## Request: ApplyTranslationsRequest

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `target_language` | `int32` | The language the translations are for. |
| `ptranslations[]` | repeated [`Translation`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.Translation/index.md) | The translations, as returned by [GetTranslations](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLanguagesAdmin/GetTranslations/index.md) with `target_string` and `state` filled in. |
| `ptranslations[].id` | `string` | Identifier. |
| `ptranslations[].source_string` | `string` | The source string, or unset or an empty string. |
| `ptranslations[].source_version` | `int32` | The version of the source string, or zero. |
| `ptranslations[].target_string` | `string` | The target string, or unset or an empty string. |
| `ptranslations[].state` | [`TranslationState`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.TranslationState/index.md) | The state of the target string, or etsNotTranslated. Values: `TRANSLATION_STATE_NOT_TRANSLATED` (0), `TRANSLATION_STATE_TRANSLATED` (1). |
| `apply_translated_only` | `bool` | True to store only the entries whose `state` is `TRANSLATION_STATE_TRANSLATED`. |

<a id="response"></a>

## Response: ApplyTranslationsResponse

No fields.
