> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ooneex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# translation:create

> Generate a new translation class.

Scaffolds a translation class, its test file, and a sibling `translations.yml` dictionary in a module, then installs the `@ooneex/translation` package if it is missing. When the target module's declared type is `spa`, the command instead generates a `use<Name>Translate` hook, a feature `translations.json` dictionary, and a shared `useLang` hook under the front-end feature slice.

## Usage

```bash theme={null}
ooneex translation:create [options]
```

## Examples

```bash theme={null}
ooneex translation:create
```

```bash theme={null}
ooneex translation:create --name=Dashboard
```

```bash theme={null}
ooneex translation:create --name=Dashboard --module=admin --override
```

## Options

| Option       | Description                                                                 | Default             |
| ------------ | --------------------------------------------------------------------------- | ------------------- |
| `--name`     | Translation class name. The `Translation` suffix is appended automatically. | Prompted if omitted |
| `--module`   | Target module the class is generated into.                                  | `shared`            |
| `--override` | Overwrite an existing class or hook without prompting.                      | `false`             |

## AI Skill

This command ships a matching `translation:create` skill. It generates the translation class, its test file, and the sibling `translations.yml` dictionary, then guides your AI agent through filling in localized, interpolated, and pluralized messages for a class that extends the `Translation` base from `@ooneex/translation`.

<Tabs>
  <Tab title="Claude">
    ```bash theme={null}
    ooneex claude:init
    ```
  </Tab>

  <Tab title="Codex">
    ```bash theme={null}
    ooneex codex:init
    ```
  </Tab>
</Tabs>
