# antom.updateConfig()

> Use this method to update the configuration of the antom instance. After calling updateConfig(), if you update env and locale, the global configuration will be distributed to each Element instance.

Use this method to update the configuration of the `antom` instance. After calling `updateConfig()`, if you update _env_ and _locale_, the global configuration will be distributed to each Element instance.

> **Note**:
>
> -   This method supports performing a partial update. It only updates the passed parameters while keeping other configurations unchanged.
> -   This method is not applicable to [`CVVElement`](https://docs.antom.com/ac/sdks/web_CVVElement.md).

## **Method signature**

When calling this method, please use the following standard method signature format.

#### Tab: JavaScript

```javascript
antom.updateConfig(newConfig)
```

#### Tab: TypeScript

```typescript
antom.updateConfig(newConfig: Partial<BaseFactoryConfig>): void
```

## **Parameters**

This method contains the following parameter:

| **Parameter** | **Data type** | **Required** | **Description** |
| --- | --- | --- | --- |
| [_newConfig_](#QOKD1) | Object | Yes | A new configuration object supports partial updates, updating only the parameters provided. |

### _newConfig_

| **Parameter** | **Data type** | **Required** | **Description** |
| --- | --- | --- | --- |
| _env_ | String | No | Environment configuration options. Valid values are:<br/><br/>- `sandbox`: Sandbox environment for testing.<br/>- `prod`: Default value. Production environment for online services. |
| _debug_ | Boolean | No | Used to enable debug mode. Enabling it will output detailed logs, making it easier for developers to troubleshoot issues. Valid values are:<br/><br/>- `true`: Enable debug mode.<br/>- `false`: Default value, disable debug mode. |
| _locale_ | String | No | Used to set the internal display language for the SDK (such as error messages and prompts).<br/><br/>> **Note**: If the parameter is omitted or contains an unsupported value, the system will default to English.<br/><br/>Valid values are:<br/><br/>- `en_US`: Default value. English<br/>- `pt_BR`: Portuguese (Brazil)<br/>- `pt_PT`: Portuguese<br/>- `es_ES`: Spanish<br/>- `ko_KR`: Korean<br/>- `zh_CN`: Simplified Chinese<br/>- `zh_HK`: Traditional Chinese<br/>- `ms_MY`: Malay<br/>- `in_ID`: Indonesian<br/>- `th_TH`: Thai<br/>- `vi_VN`: Vietnamese<br/>- `tl_PH`: Filipino<br/>- `it_IT`: Italian<br/>- `de_DE`: German<br/>- `fr_FR`: French<br/>- `nl_NL`: Dutch<br/>- `ja_JP`: Japanese<br/>- `ro`: Romanian<br/>- `pl_PL`: Polish<br/>- `ar_SA`: Arabic<br/>- `tr_TR`: Turkish<br/>- `hi_IN`: Hindi |

## Return values

This method does not return any value.