Appearance
Mobile Document Scanner API Reference / StringConfig
Interface: StringConfig
Defined in: src/views/utils/index.ts:411
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?
optionalcameraSwitcherCameraLabel?:string
Defined in: src/views/utils/index.ts:450
Section heading above the list of cameras in the camera switcher menu.
Default Value
ts
"Camera"cameraSwitcherResolutionLabel?
optionalcameraSwitcherResolutionLabel?:string
Defined in: src/views/utils/index.ts:452
Section heading above the list of resolutions in the camera switcher menu.
Default Value
ts
"Resolution"closeScannerBtnTitle?
optionalcloseScannerBtnTitle?:string
Defined in: src/views/utils/index.ts:447
Tooltip on the scanner view header close (X) button.
Default Value
ts
"Close"continuousScanDoneBtn?
optionalcontinuousScanDoneBtn?:string
Defined in: src/views/utils/index.ts:425
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?
optionaldownloadFilenamePrefix?:string
Defined in: src/views/utils/index.ts:430
Filename prefix for downloaded images. Final filename is {prefix}-{timestamp}.png.
Default Value
ts
"document"filterBlackWhiteBtn?
optionalfilterBlackWhiteBtn?:string
Defined in: src/views/utils/index.ts:464
Result view filter menu: the black & white option.
Default Value
ts
"Black & White"filterGrayscaleBtn?
optionalfilterGrayscaleBtn?:string
Defined in: src/views/utils/index.ts:462
Result view filter menu: the grayscale option.
Default Value
ts
"Grayscale"filterInvertedBtn?
optionalfilterInvertedBtn?:string
Defined in: src/views/utils/index.ts:468
Result view filter menu: the inverted option.
Default Value
ts
"Inverted"filterOriginalBtn?
optionalfilterOriginalBtn?:string
Defined in: src/views/utils/index.ts:460
Result view filter menu: the "no filter" option.
Default Value
ts
"Original"filterSepiaBtn?
optionalfilterSepiaBtn?:string
Defined in: src/views/utils/index.ts:466
Result view filter menu: the sepia option.
Default Value
ts
"Sepia"initializingCameraMsg?
optionalinitializingCameraMsg?:string
Defined in: src/views/utils/index.ts:415
Loading overlay message shown while opening the camera.
Default Value
ts
"Initializing camera..."loadingMsg?
optionalloadingMsg?:string
Defined in: src/views/utils/index.ts:413
Loading overlay message shown during initial DCV load.
Default Value
ts
"Loading..."processingImageMsg?
optionalprocessingImageMsg?:string
Defined in: src/views/utils/index.ts:417
Loading overlay message shown while processing a captured or uploaded image.
Default Value
ts
"Processing image..."scanMoreBtn?
optionalscanMoreBtn?:string
Defined in: src/views/utils/index.ts:458
Label of the continuous-mode "Scan More" button.
Default Value
ts
"Scan More"selectCameraBtnTitle?
optionalselectCameraBtnTitle?:string
Defined in: src/views/utils/index.ts:443
Tooltip on the scanner view header button that opens the camera/resolution picker.
Default Value
ts
"Select Camera or Resolution"shareErrorAlert?
optionalshareErrorAlert?:string
Defined in: src/views/utils/index.ts:440
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?
optionalshareTitle?:string
Defined in: src/views/utils/index.ts:428
title field passed to the Web Share API when sharing the corrected image.
Default Value
ts
"Scanned Document"takePhotoBtnTitle?
optionaltakePhotoBtnTitle?:string
Defined in: src/views/utils/index.ts:455
Tooltip / accessible label on the shutter (take photo) button.
Default Value
ts
"Take Photo"uploadImageBtnTitle?
optionaluploadImageBtnTitle?:string
Defined in: src/views/utils/index.ts:445
Tooltip on the scanner view header button that uploads an image file.
Default Value
ts
"Upload Image"uploadShareFailedAlert?
optionaluploadShareFailedAlert?:string
Defined in: src/views/utils/index.ts:433
Alert shown when the upload or share button handler throws.
Default Value
ts
"Failed"