> ## Documentation Index
> Fetch the complete documentation index at: https://baileys.wiki/llms.txt
> Use this file to discover all available pages before exploring further.

# LocaleSetting

> Protobuf class LocaleSetting generated from WAProto.

Defined in: [WAProto/index.d.ts:12172](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L12172)

## Implements

* [`ILocaleSetting`](/proto-reference/SyncActionValue/interfaces/ILocaleSetting)

## Constructors

### new LocaleSetting()

> **new LocaleSetting**(`p`?): [`LocaleSetting`](/proto-reference/SyncActionValue/classes/LocaleSetting)

Defined in: [WAProto/index.d.ts:12173](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L12173)

#### Parameters

##### p?

[`ILocaleSetting`](/proto-reference/SyncActionValue/interfaces/ILocaleSetting)

#### Returns

[`LocaleSetting`](/proto-reference/SyncActionValue/classes/LocaleSetting)

## Properties

### locale?

> `optional` **locale**: `null` | `string`

Defined in: [WAProto/index.d.ts:12174](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L12174)

#### Implementation of

[`ILocaleSetting`](/proto-reference/SyncActionValue/interfaces/ILocaleSetting).[`locale`](/proto-reference/SyncActionValue/interfaces/ILocaleSetting#locale)

## Methods

### create()

> `static` **create**(`properties`?): [`LocaleSetting`](/proto-reference/SyncActionValue/classes/LocaleSetting)

Defined in: [WAProto/index.d.ts:12175](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L12175)

#### Parameters

##### properties?

[`ILocaleSetting`](/proto-reference/SyncActionValue/interfaces/ILocaleSetting)

#### Returns

[`LocaleSetting`](/proto-reference/SyncActionValue/classes/LocaleSetting)

***

### decode()

> `static` **decode**(`r`, `l`?): [`LocaleSetting`](/proto-reference/SyncActionValue/classes/LocaleSetting)

Defined in: [WAProto/index.d.ts:12177](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L12177)

#### Parameters

##### r

`Uint8Array`\<`ArrayBufferLike`> | `Reader`

##### l?

`number`

#### Returns

[`LocaleSetting`](/proto-reference/SyncActionValue/classes/LocaleSetting)

***

### encode()

> `static` **encode**(`m`, `w`?): `Writer`

Defined in: [WAProto/index.d.ts:12176](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L12176)

#### Parameters

##### m

[`ILocaleSetting`](/proto-reference/SyncActionValue/interfaces/ILocaleSetting)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

> `static` **fromObject**(`d`): [`LocaleSetting`](/proto-reference/SyncActionValue/classes/LocaleSetting)

Defined in: [WAProto/index.d.ts:12178](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L12178)

#### Parameters

##### d

#### Returns

[`LocaleSetting`](/proto-reference/SyncActionValue/classes/LocaleSetting)

***

### getTypeUrl()

> `static` **getTypeUrl**(`typeUrlPrefix`?): `string`

Defined in: [WAProto/index.d.ts:12181](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L12181)

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

> **toJSON**(): `object`

Defined in: [WAProto/index.d.ts:12180](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L12180)

#### Returns

`object`

***

### toObject()

> `static` **toObject**(`m`, `o`?): `object`

Defined in: [WAProto/index.d.ts:12179](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L12179)

#### Parameters

##### m

[`LocaleSetting`](/proto-reference/SyncActionValue/classes/LocaleSetting)

##### o?

`IConversionOptions`

#### Returns

`object`
