Skip to main content
Version: 1.x

I18nCliTemplatePlugin

I18nCliTemplatePlugin​

Compiler plugin for the CommandKit CLI to create locale files. This plugin allows users to create locale files for commands in the CLI. It registers a template named "locale" that can be used to generate locale files.

Example

commandkit create locale <locale> <commandName>
Signature
class I18nCliTemplatePlugin extends CompilerPlugin {
public readonly name = 'I18nCliTemplatePlugin';
activate(ctx: CompilerPluginRuntime) => Promise<void>;
deactivate(ctx: CompilerPluginRuntime) => Promise<void>;
}

name​

property

activate​

method
(ctx: CompilerPluginRuntime) => Promise<void>

deactivate​

method
(ctx: CompilerPluginRuntime) => Promise<void>