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
Examples
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 matchingtranslation: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.
- Claude
- Codex