Skip to main content
Version: 1.x

I18nPlugin

I18nPlugin​

Signature
class I18nPlugin extends RuntimePlugin<LocalizationPluginOptions> {
public readonly name = 'I18nPlugin';
activate(ctx: CommandKitPluginRuntime) => Promise<void>;
getLoadPath(cwd: = getCurrentDirectory(), lng: = '{{lng}}', ns: = '{{ns}}') => ;
performHMR(ctx: CommandKitPluginRuntime, event: CommandKitHMREvent) => Promise<void>;
executeCommand(ctx: CommandKitPluginRuntime, env: CommandKitEnvironment, source: CommandSource, command: PreparedAppCommandExecution) => Promise<boolean>;
prepareCommand(ctx: CommandKitPluginRuntime, command: CommandBuilderLike) => Promise<CommandBuilderLike | null>;
onBeforeRegisterCommands(ctx: CommandKitPluginRuntime, event: PreRegisterCommandsEvent) => Promise<void>;
}

name​

property

activate​

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

getLoadPath​

method
(cwd: = getCurrentDirectory(), lng: = '{{lng}}', ns: = '{{ns}}') =>

performHMR​

method
(ctx: CommandKitPluginRuntime, event: CommandKitHMREvent) => Promise<void>

executeCommand​

method

prepareCommand​

method

onBeforeRegisterCommands​

method
(ctx: CommandKitPluginRuntime, event: PreRegisterCommandsEvent) => Promise<void>