Stream UI Settings.

| Constructors ||
|---|---|
| `https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/html5/reference/class/google.ima.dai.api.UiSettings#google.ima.dai.api.UiSettings.constructor` |   |

| Methods ||
|---|---|
| `https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/html5/reference/class/google.ima.dai.api.UiSettings#google.ima.dai.api.UiSettings.getLocale` | Returns the locale set for the stream. |
| `https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/html5/reference/class/google.ima.dai.api.UiSettings#google.ima.dai.api.UiSettings.setLocale` | Sets the publisher provided locale. |

## Constructors

*** ** * ** ***

### constructor

`new UiSettings(): https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/html5/reference/class/google.ima.dai.api.UiSettings`

| Returns ||
|---|---|
| `https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/html5/reference/class/google.ima.dai.api.UiSettings` |   |

## Methods

*** ** * ** ***

### getLocale

`getLocale(): string` Returns the locale set for the stream.

| Returns ||
|---|---|
| `string` |   |

*** ** * ** ***

### setLocale

`setLocale(locale: string): void` Sets the publisher provided locale. You must call this method before creating the `StreamManager` instance. The locale specifies the language to display UI elements. You can find the supported codes in [Localizing for Language and Locale](https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/html5/localization).

| Parameters ||
|---|---|
| `locale: string` | Publisher provided locale. |