---
schema_version: "1"
id: fb0c053ccbd8e16b04c5f579837d7817e78970d832ac265269c837d35f515449
title: ConversationMessageDefinitionTranslation
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_conversationmessagedefinitiontranslation.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_conversationmessagedefinitiontranslation.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 92f614722fd48a49f7ccbcadf07f947e04cbfb0f8da8697003c3a9c720ca2049
description: Represents translated labels and constant values for conversation message definitions in Enhanced Messaging and Messaging for In-App and Web.
---
# ConversationMessageDefinitionTranslation

Represents translated labels and constant values for conversation message definitions in Enhanced Messaging and Messaging for In-App and Web.

![Note](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/images/icon_note.png)

#### Note

This complex type is used as a nested element within the ConversationMessageDefinition metadata type and is not deployed as a standalone metadata component. It enables multilingual support by allowing constant values and labels to be translated into different languages for customer-facing messaging.

## Parent Type

This type is used as a nested complex type within the [ConversationMessageDefinition](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_conversationmessagedefinition.htm "Represents a messaging component in an Enhanced Messaging channel or Messaging for In-App and Web session.") metadata type.

## Version

ConversationMessageDefinitionTranslation is available in API version 61.0 and later.

## Fields

| Field Name | Description |
| --- | --- |
| constantValueTranslations | 
Field Type

[ConversationMessageConstantValueTranslation\[\]](#ConversationMessageConstantValueTranslation)

Description

Optional. An array of constant value translations that define translated versions of constants within the messaging component. Each element provides translations for specific constant values that customers see in the messaging interface. Available in API version 61.0 and later.



 |
| label | 

Field Type

string

Description

Required. The translated label or display name for the conversation message definition. This represents the name that agents see when selecting messaging components in their preferred language. Available in API version 61.0 and later.



 |
| name | 

Field Type

string

Description

Required. The unique identifier or name of the conversation message definition being translated. This must match the name of the base ConversationMessageDefinition for which this translation is created. Available in API version 61.0 and later.



 |

## ConversationMessageConstantValueTranslation

Represents a translated constant value for conversation message definitions. Available in API version 61.0 and later.

| Field Name | Description |
| --- | --- |
| name | 
Field Type

string

Description

Required. The name of the constant value being translated.



 |
| value | 

Field Type

string

Description

Required. The translated value for this constant.



 |

## Usage Example

This complex type is used within ConversationMessageDefinition to provide translations. Here's an example context:

<?xml version="1.0" encoding="UTF-8"?>
<ConversationMessageDefinition xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName\>Welcome\_Message</fullName\>
    <label\>Welcome Message</label\>
    <conversationMessageDefinitionTranslations\>
        <constantValueTranslations\>
            <name\>greeting\_text</name\>
            <value\>Bienvenido</value\>
        </constantValueTranslations\>
        <label\>Mensaje de Bienvenida</label\>
        <name\>Welcome\_Message</name\>
    </conversationMessageDefinitionTranslations\>
</ConversationMessageDefinition\>