# BarcodeText (@salmonui/charts/barcode)

> The BarcodeText interface of @salmonui/charts/barcode: Text of the barcode components (localeText prop; the barcode entry of a LocaleProvider catalog): the accessible name of a value that cannot be encoded, and the {reason} in it. A key left out keeps the English text; onInvalid always reports the English reason. Parameters: {type} the symbology, {character}, {min} and {count} the allowed lengths ({count} picks the plural form), {ai} a GS1 application identifier, {codeSet}, {version}, {size}, {rows}, {columns}.

Canonical: https://salmonui.dev/docs/reference/charts/barcode/BarcodeText

```ts
import type { BarcodeText } from '@salmonui/charts/barcode';
```

Also exported from `@salmonui/charts/barcode/pdf417`, `@salmonui/charts/barcode/gs1-databar`, `@salmonui/charts/barcode/dotcode`.

Entry index: https://salmonui.dev/docs/reference/charts/barcode (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/charts/barcode.md).

## Reference

Kind: interface

```ts
interface BarcodeText extends Readonly<Record<BarcodeReason, LocaleMessage>> {
    readonly invalidBarcode: string;
    readonly invalidQRCode: string;
}
```

Text of the barcode components (`localeText` prop; the `barcode` entry of a `LocaleProvider`
catalog): the accessible name of a value that cannot be encoded, and the `{reason}` in it.
A key left out keeps the English text; `onInvalid` always reports the English reason.
Parameters: `{type}` the symbology, `{character}`, `{min}` and `{count}` the allowed lengths (`{count}` picks the plural form),
`{ai}` a GS1 application identifier, `{codeSet}`, `{version}`, `{size}`, `{rows}`, `{columns}`.

Members (48):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `invalidBarcode` | `readonly invalidBarcode: string;` |  | `{reason}`. Default `"Invalid barcode: {reason}"`. |
| `invalidQRCode` | `readonly invalidQRCode: string;` |  | `{reason}`. Default `"Invalid QR code: {reason}"`. |
| `aiCheckDigit` | `aiCheckDigit: LocaleMessage;` | inherited |  |
| `aiLength` | `aiLength: LocaleMessage;` | inherited |  |
| `aiNumeric` | `aiNumeric: LocaleMessage;` | inherited |  |
| `alphanumericMode` | `alphanumericMode: LocaleMessage;` | inherited |  |
| `asciiNumeric` | `asciiNumeric: LocaleMessage;` | inherited |  |
| `asciiOnly` | `asciiOnly: LocaleMessage;` | inherited |  |
| `cannotEncode` | `cannotEncode: LocaleMessage;` | inherited |  |
| `capacity` | `capacity: LocaleMessage;` | inherited |  |
| `characterCount` | `characterCount: LocaleMessage;` | inherited |  |
| `codabarCharacters` | `codabarCharacters: LocaleMessage;` | inherited |  |
| `code11Characters` | `code11Characters: LocaleMessage;` | inherited |  |
| `code32Digits` | `code32Digits: LocaleMessage;` | inherited |  |
| `codeSet` | `codeSet: LocaleMessage;` | inherited |  |
| `codewordCount` | `codewordCount: LocaleMessage;` | inherited |  |
| `compressedField` | `compressedField: LocaleMessage;` | inherited |  |
| `dataCharacterCount` | `dataCharacterCount: LocaleMessage;` | inherited |  |
| `digitCount` | `digitCount: LocaleMessage;` | inherited |  |
| `doesNotFit` | `doesNotFit: LocaleMessage;` | inherited |  |
| `dotCapacity` | `dotCapacity: LocaleMessage;` | inherited |  |
| `dotCodeColumns` | `dotCodeColumns: LocaleMessage;` | inherited |  |
| `emptyValue` | `emptyValue: LocaleMessage;` | inherited |  |
| `gridCapacity` | `gridCapacity: LocaleMessage;` | inherited |  |
| `gs1Ascii` | `gs1Ascii: LocaleMessage;` | inherited |  |
| `gs1Syntax` | `gs1Syntax: LocaleMessage;` | inherited |  |
| `gtin` | `gtin: LocaleMessage;` | inherited |  |
| `invalidCharacter` | `invalidCharacter: LocaleMessage;` | inherited |  |
| `invalidCheckDigit` | `invalidCheckDigit: LocaleMessage;` | inherited |  |
| `latin1Only` | `latin1Only: LocaleMessage;` | inherited |  |
| `limitedGtin` | `limitedGtin: LocaleMessage;` | inherited |  |
| `numericCompaction` | `numericCompaction: LocaleMessage;` | inherited |  |
| `numericMode` | `numericMode: LocaleMessage;` | inherited |  |
| `numericOnly` | `numericOnly: LocaleMessage;` | inherited |  |
| `pdf417Columns` | `pdf417Columns: LocaleMessage;` | inherited |  |
| `pdf417ErrorCorrection` | `pdf417ErrorCorrection: LocaleMessage;` | inherited |  |
| `pdf417Rows` | `pdf417Rows: LocaleMessage;` | inherited |  |
| `rowHeightRatio` | `rowHeightRatio: LocaleMessage;` | inherited |  |
| `segmentsPerRow` | `segmentsPerRow: LocaleMessage;` | inherited |  |
| `sizeCapacity` | `sizeCapacity: LocaleMessage;` | inherited |  |
| `textCompaction` | `textCompaction: LocaleMessage;` | inherited |  |
| `unencodable` | `unencodable: LocaleMessage;` | inherited |  |
| `unknownSize` | `unknownSize: LocaleMessage;` | inherited |  |
| `unknownType` | `unknownType: LocaleMessage;` | inherited |  |
| `upcEDigits` | `upcEDigits: LocaleMessage;` | inherited |  |
| `upcENumberSystem` | `upcENumberSystem: LocaleMessage;` | inherited |  |
| `versionCapacity` | `versionCapacity: LocaleMessage;` | inherited |  |
| `versionRange` | `versionRange: LocaleMessage;` | inherited |  |
