# Alepha - Cli I18n

## Installation

Part of the `alepha` package. Import from `alepha/cli/i18n`.

```bash
npm install alepha
```

## Overview

CLI plugin for finding unused translation keys.

Statically scans the project for `$dictionary(...)` calls, extracts
every declared key, and reports the ones that have no quoted-literal
reference anywhere else in the source tree. Designed to be wired
into `yarn v` (or any verify pipeline) so dead i18n entries can't
pile up unnoticed when a feature is removed.

Commands:

- `alepha i18n check`: report unused translation keys

Configuration in `alepha.config.ts`:

```typescript
import { i18n } from "alepha/cli/i18n";

export default defineConfig({
  plugins: [
    i18n({
      scan: ["src", ".vendor/@alepha/ui"],
      dynamicPrefixes: ["folio.type.", "feedback.filter."],
    }),
  ],
});
```
