Skip to main content
Creates a translation class, its test file, and a sibling translations.yml dictionary in a module, then installs the @talosjs/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

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 @talosjs/translation.