# SiDefaultLocaleStore Type documentation

## TypeScript declaration

### [SiDefaultLocaleStore](<https://github.com/siemens/element/blob/main/projects/element-ng/localization/si-locale-store.ts#L14-L35>)

**Kind:** class

```
import { SiDefaultLocaleStore } from '@siemens/element-ng/localization';
```

```
undecorated_class SiDefaultLocaleStore extends SiLocaleStore
```

#### Constructor

##### constructor

[Source for constructor](<https://github.com/siemens/element/blob/main/projects/element-ng/localization/si-locale-store.ts#L15-L17>)

```
constructor(isBrowser: boolean): SiDefaultLocaleStore
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [isBrowser](<https://github.com/siemens/element/blob/main/projects/element-ng/localization/si-locale-store.ts#L15-L15>) | `boolean` |  |  |

**Returns:** [SiDefaultLocaleStore](<index.html#t:SiDefaultLocaleStore>)

#### Accessors

| Name | Type | Description |
| --- | --- | --- |
| [locale](<https://github.com/siemens/element/blob/main/projects/element-ng/localization/si-locale-store.ts#L19-L25>) (readonly) | `string \| undefined` | Inherited from [SiLocaleStore](<index.html#t:SiLocaleStore>) |

#### Methods

##### saveLocale

[Source for saveLocale](<https://github.com/siemens/element/blob/main/projects/element-ng/localization/si-locale-store.ts#L27-L34>)

Inherited from [SiLocaleStore](<index.html#t:SiLocaleStore>)

```
saveLocale(locale: string): Observable<boolean>
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [locale](<https://github.com/siemens/element/blob/main/projects/element-ng/localization/si-locale-store.ts#L27-L27>) | `string` |  |  |

**Returns:** [Observable](<https://rxjs.dev/api/index/class/Observable>)`<`[boolean](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean>)`>`

### Types Documentation

### [SiLocaleStore](<https://github.com/siemens/element/blob/main/projects/element-ng/localization/si-locale-store.ts#L7-L10>)

**Kind:** class

```
import { SiLocaleStore } from '@siemens/element-ng/localization';
```

```
undecorated_class SiLocaleStore
```

#### Constructor

##### constructor

[Source for constructor](<https://github.com/siemens/element/blob/main/projects/element-ng/localization/si-locale-store.ts#L7-L10>)

```
constructor(): SiLocaleStore
```

**Returns:** [SiLocaleStore](<index.html#t:SiLocaleStore>)

#### Accessors

| Name | Type | Description |
| --- | --- | --- |
| [locale](<https://github.com/siemens/element/blob/main/projects/element-ng/localization/si-locale-store.ts#L8-L8>) (readonly) | `string \| undefined` |  |

#### Methods

##### saveLocale

[Source for saveLocale](<https://github.com/siemens/element/blob/main/projects/element-ng/localization/si-locale-store.ts#L9-L9>)

```
saveLocale(locale: string): Observable<boolean>
```

#### Parameters

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| [locale](<https://github.com/siemens/element/blob/main/projects/element-ng/localization/si-locale-store.ts#L9-L9>) | `string` |  |  |

**Returns:** [Observable](<https://rxjs.dev/api/index/class/Observable>)`<`[boolean](<https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean>)`>`
