# IRPCLanguagesAdmin.GetTranslations

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/GetTranslations/

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

Gets the translatable names of the vault's metadata structure, with their texts in a source and
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/GetTranslations`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/get-translations`
- **Request:** [`GetTranslationsRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLanguagesAdmin/GetTranslations/index.md#request)
- **Response:** [`GetTranslationsResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLanguagesAdmin/GetTranslations/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`.
- Returns one [Translation](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.Translation/index.md) per name that exists in the default
  language, including the items of translatable value lists. `id` identifies the name, for
  example `PropertyDef_20_0_Name`; send it back unchanged in
  [ApplyTranslations](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLanguagesAdmin/ApplyTranslations/index.md).
- If neither `include_source_language` nor `include_target_language` is true, the list is
  empty.
- `untranslated_only` filters on the target language's state, so it returns nothing unless
  `include_target_language` is true.

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

## Request: GetTranslationsRequest

> 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 |
|---|---|---|
| `include_source_language` | `bool` | True to fill `source_string` and `source_version`. |
| `source_language` | `int32` | The language of `source_string`, usually 0 (the default language). Used only with `include_source_language`. |
| `include_target_language` | `bool` | True to fill `target_string` and `state`. |
| `target_language` | `int32` | The language being translated to. Used only with `include_target_language`. |
| `untranslated_only` | `bool` | True to return only names whose target text is not translated yet. Requires `include_target_language`. |

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

## Response: GetTranslationsResponse

> 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 |
|---|---|---|
| `values[]` | repeated [`Translation`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.Translation/index.md) | The translatable names. See [Translation](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.Translation/index.md). |
| `values[].id` | `string` | Identifier. |
| `values[].source_string` | `string` | The source string, or unset or an empty string. |
| `values[].source_version` | `int32` | The version of the source string, or zero. |
| `values[].target_string` | `string` | The target string, or unset or an empty string. |
| `values[].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). |

<a id="related"></a>

## Related methods

- [ApplyTranslations](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLanguagesAdmin/ApplyTranslations/index.md): Stores translated names in a target language.
