# StringTable

> Talos 0.6 · Since 0.6

## Signature

```ts
export class StringTable implements Strings {
  readonly missing: string[] = []
  constructor(strings: Record<string, string> = {}, opts: StringTableOptions = {})
  has(key: string): boolean
  get(key: string, where?: string): string
  add(strings: Record<string, string>): this
  keys(): string[]
}
```

Import: `import { StringTable } from "@argus/gameplay"`

## Members

| Member | Signature | Description |
|---|---|---|
| `missing` | `readonly missing: string[] = []` | Every key that was asked for and not found, in the order they were first asked for. |
| `constructor` | `constructor(strings: Record<string, string> = {}, opts: StringTableOptions = {})` |  |
| `has` | `has(key: string): boolean` |  |
| `get` | `get(key: string, where?: string): string` | The string for `key`, or `[[key]]`. A missing key is reported once, however often it is asked for. |
| `add` | `add(strings: Record<string, string>): this` | Add or overwrite entries (a localisation pass, a scene reload). |
| `keys` | `keys(): string[]` | The keys the table defines. |
