# Interface: StringConfig

[Mobile Document Scanner API Reference](../index.md) / StringConfig

# Interface: StringConfig

Defined in: [src/views/utils/index.ts:411](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/views/utils/index.ts#L411)

Override the default user-facing strings displayed by the DocumentScanner. Every
field is optional; unset fields fall back to the library default. Toolbar button
labels (Re-take, Apply, Done, etc.) are not configured here — use
`correctionViewConfig.toolbarButtonsConfig` and `resultViewConfig.toolbarButtonsConfig`
for those.

Strings that include a `{count}` or `{error}` placeholder are noted inline; the
placeholder is substituted at render time.

## Properties

### cameraSwitcherCameraLabel?

> `optional` **cameraSwitcherCameraLabel?**: `string`

Defined in: [src/views/utils/index.ts:450](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/views/utils/index.ts#L450)

Section heading above the list of cameras in the camera switcher menu.

#### Default Value

```ts
"Camera"
```

***

### cameraSwitcherResolutionLabel?

> `optional` **cameraSwitcherResolutionLabel?**: `string`

Defined in: [src/views/utils/index.ts:452](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/views/utils/index.ts#L452)

Section heading above the list of resolutions in the camera switcher menu.

#### Default Value

```ts
"Resolution"
```

***

### closeScannerBtnTitle?

> `optional` **closeScannerBtnTitle?**: `string`

Defined in: [src/views/utils/index.ts:447](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/views/utils/index.ts#L447)

Tooltip on the scanner view header close (X) button.

#### Default Value

```ts
"Close"
```

***

### continuousScanDoneBtn?

> `optional` **continuousScanDoneBtn?**: `string`

Defined in: [src/views/utils/index.ts:425](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/views/utils/index.ts#L425)

Label of the "Done" button in continuous scanning mode. The literal substring
`{count}` is replaced with the current scan count at render time.

#### Default Value

```ts
"Done ({count})"
```

***

### downloadFilenamePrefix?

> `optional` **downloadFilenamePrefix?**: `string`

Defined in: [src/views/utils/index.ts:430](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/views/utils/index.ts#L430)

Filename prefix for downloaded images. Final filename is `{prefix}-{timestamp}.png`.

#### Default Value

```ts
"document"
```

***

### filterBlackWhiteBtn?

> `optional` **filterBlackWhiteBtn?**: `string`

Defined in: [src/views/utils/index.ts:464](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/views/utils/index.ts#L464)

Result view filter menu: the black & white option.

#### Default Value

```ts
"Black & White"
```

***

### filterGrayscaleBtn?

> `optional` **filterGrayscaleBtn?**: `string`

Defined in: [src/views/utils/index.ts:462](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/views/utils/index.ts#L462)

Result view filter menu: the grayscale option.

#### Default Value

```ts
"Grayscale"
```

***

### filterInvertedBtn?

> `optional` **filterInvertedBtn?**: `string`

Defined in: [src/views/utils/index.ts:468](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/views/utils/index.ts#L468)

Result view filter menu: the inverted option.

#### Default Value

```ts
"Inverted"
```

***

### filterOriginalBtn?

> `optional` **filterOriginalBtn?**: `string`

Defined in: [src/views/utils/index.ts:460](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/views/utils/index.ts#L460)

Result view filter menu: the "no filter" option.

#### Default Value

```ts
"Original"
```

***

### filterSepiaBtn?

> `optional` **filterSepiaBtn?**: `string`

Defined in: [src/views/utils/index.ts:466](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/views/utils/index.ts#L466)

Result view filter menu: the sepia option.

#### Default Value

```ts
"Sepia"
```

***

### initializingCameraMsg?

> `optional` **initializingCameraMsg?**: `string`

Defined in: [src/views/utils/index.ts:415](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/views/utils/index.ts#L415)

Loading overlay message shown while opening the camera.

#### Default Value

```ts
"Initializing camera..."
```

***

### loadingMsg?

> `optional` **loadingMsg?**: `string`

Defined in: [src/views/utils/index.ts:413](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/views/utils/index.ts#L413)

Loading overlay message shown during initial DCV load.

#### Default Value

```ts
"Loading..."
```

***

### processingImageMsg?

> `optional` **processingImageMsg?**: `string`

Defined in: [src/views/utils/index.ts:417](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/views/utils/index.ts#L417)

Loading overlay message shown while processing a captured or uploaded image.

#### Default Value

```ts
"Processing image..."
```

***

### scanMoreBtn?

> `optional` **scanMoreBtn?**: `string`

Defined in: [src/views/utils/index.ts:458](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/views/utils/index.ts#L458)

Label of the continuous-mode "Scan More" button.

#### Default Value

```ts
"Scan More"
```

***

### selectCameraBtnTitle?

> `optional` **selectCameraBtnTitle?**: `string`

Defined in: [src/views/utils/index.ts:443](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/views/utils/index.ts#L443)

Tooltip on the scanner view header button that opens the camera/resolution picker.

#### Default Value

```ts
"Select Camera or Resolution"
```

***

### shareErrorAlert?

> `optional` **shareErrorAlert?**: `string`

Defined in: [src/views/utils/index.ts:440](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/views/utils/index.ts#L440)

Alert shown when the share/download flow throws. The literal substring `{error}`
is replaced with the error message at render time.

#### Default Value

```ts
"Error processing image: {error}"
```

***

### shareTitle?

> `optional` **shareTitle?**: `string`

Defined in: [src/views/utils/index.ts:428](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/views/utils/index.ts#L428)

`title` field passed to the Web Share API when sharing the corrected image.

#### Default Value

```ts
"Scanned Document"
```

***

### takePhotoBtnTitle?

> `optional` **takePhotoBtnTitle?**: `string`

Defined in: [src/views/utils/index.ts:455](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/views/utils/index.ts#L455)

Tooltip / accessible label on the shutter (take photo) button.

#### Default Value

```ts
"Take Photo"
```

***

### uploadImageBtnTitle?

> `optional` **uploadImageBtnTitle?**: `string`

Defined in: [src/views/utils/index.ts:445](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/views/utils/index.ts#L445)

Tooltip on the scanner view header button that uploads an image file.

#### Default Value

```ts
"Upload Image"
```

***

### uploadShareFailedAlert?

> `optional` **uploadShareFailedAlert?**: `string`

Defined in: [src/views/utils/index.ts:433](https://github.com/Dynamsoft/document-scanner-javascript/blob/main/src/views/utils/index.ts#L433)

Alert shown when the upload or share button handler throws.

#### Default Value

```ts
"Failed"
```
