Skip to main content
Version: Next

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>;
}

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