Skip to main content
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

ooneex translation:create [options]

Examples

ooneex translation:create
ooneex translation:create --name=Dashboard
ooneex translation:create --name=Dashboard --module=admin --override

Options

OptionDescriptionDefault
--nameTranslation class name. The Translation suffix is appended automatically.Prompted if omitted
--moduleTarget module the class is generated into.shared
--overrideOverwrite 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.
ooneex claude:init