---
schema_version: "1"
id: 57fc1da7568b179c6acc8f8dd9c272ad7ad624aaea733e7aee25377d6763ec71
title: Get Deployment Configuration Details in Custom Lightning Web Components
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/service-cloud/messaging-web/references/customComponents.md
canonical_url: https://developer.salesforce.com/docs/service/messaging-web/references/m4w-reference/customComponents.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 51d0942e0401e4fa7aeeb41b02c2f99160d5e49a12e5cb356ee648dbb77bb6a3
products:
  - Enhanced Web Chat
  - Service Cloud Developer Content
---
# Get Deployment Configuration Details in Custom Lightning Web Components

Use code snippets to get Enhanced Web Chat deployment details in your custom Lightning web components.

## language

To get the language code for your client, use the following snippet in your custom component.

### Example

```javascript
const language = this.configuration.language;
```

## termsAndConditions

To get the Terms and Conditions settings for your client, use the following snippet in your custom component.

### Example

```javascript
if (this.configuration.termsAndConditions.isTermsAndConditionsEnabled) {
  const isTermsAndConditionsRequired = this.configuration.termsAndConditions
    .isTermsAndConditionsRequired;
  const termsAndConditionsLabel = this.configuration.termsAndConditions.label;
}
```

## customLabels

To get the customized labels in Embedded Service deployment setup in the language configured on the client, use the following snippet in your custom component.
This example shows how to get the customized label for End Conversation Header text.

### Example

```javascript
const endConversationLabelObj =
  this.configuration.customLabels.filter(
    (label) =>
      label.sectionName === "EmbeddedMessagingChatHeader" &&
      label.labelName === "CloseConversation",
  )[0] || {};
const endConversationLabel = endConversationLabelObj.labelValue || "End Conversation";
```
