# Translation

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

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

Translation.

- **Full name:** `MFiles.Translation`
- **Proto file:** [`mfiles/structs.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/structs.proto)

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-id"></a>`id` | `string` | 1 | Identifier. |
| <a id="f-source_string"></a>`source_string` | `string` | 2 | The source string, or unset or an empty string. |
| <a id="f-source_version"></a>`source_version` | `int32` | 3 | The version of the source string, or zero. |
| <a id="f-target_string"></a>`target_string` | `string` | 4 | The target string, or unset or an empty string. |
| <a id="f-state"></a>`state` | [`TranslationState`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.TranslationState/index.md) | 5 | The state of the target string, or etsNotTranslated. Values: `TRANSLATION_STATE_NOT_TRANSLATED` (0), `TRANSLATION_STATE_TRANSLATED` (1). |

<a id="used-by-methods"></a>

## Used by methods

- [IRPCLanguagesAdmin.ApplyTranslations](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLanguagesAdmin/ApplyTranslations/index.md): Stores translated names in a target language.
- [IRPCLanguagesAdmin.GetTranslations](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLanguagesAdmin/GetTranslations/index.md): Gets the translatable names of the vault's metadata structure, with their texts in a source and a target language.

<a id="used-in-fields"></a>

## Used in fields

- [`GetTranslationsResponse.values`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLanguagesAdmin/GetTranslations/index.md#response): The translatable names. See [Translation](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.Translation/index.md).
- [`ApplyTranslationsRequest.ptranslations`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCLanguagesAdmin/ApplyTranslations/index.md#request): 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.
