# XWUIGameLocalizationDebug

A collapsible localization (i18n) debugger that audits translation coverage at runtime. It shows a stats bar (total strings, missing count, coverage %, current `locale`), a locale dropdown switcher, a key/value filter with a "Missing Only" toggle, and a table of `strings` where missing entries are highlighted and rendered as `(MISSING)` with a `MISS` badge. Use it to catch untranslated keys per locale: feed it `locale`, `strings` (each `{ key, value, missing }`), and optional `missingCount`/`totalCount` via `updateData()`; list switchable locales in `availableLocales`, hear changes via `onLocaleChange`, and toggle the `showStats`/`showFilter`/`showLocaleSwitcher` sections.

## Basic Usage

Mounts the debugger with no strings, so it renders the `Localization Debug [en]` header, a stats bar reading 100% coverage over zero strings, and an empty filter table.

```example
file: examples/BasicUsage.ts
html: examples/BasicUsage.html
title: Basic Usage
description: An empty localization debugger showing the en locale header, 100% coverage stats, and no strings.
```

## Catching Missing Translations

A half-translated `es` locale where missing rows highlight and the missing-count stat warns.

```example
file: examples/MissingStrings.ts
html: examples/MissingStrings.html
title: Catching Missing Translations
description: Six es keys with three missing - rows render as (MISSING) and coverage drops to 50%.
```

## Compact Coverage Readout

A stats-only dashboard with the filter input and locale switcher hidden.

```example
file: examples/CompactReadOnly.ts
html: examples/CompactReadOnly.html
title: Compact Coverage Readout
description: Keeps the stats bar and string table but drops the interactive filter and locale controls.
```

```api
```
