Skip to main content
Version: 1.2

GetI18n

getI18n

Retrieves the i18n instance from the commandkit store.

Example

import { getI18n } from '@commandkit/i18n';
import { commandkit } from 'commandkit';

const i18n = getI18n(commandkit);

// Use the i18n instance
i18n.t('key');
Signature
function getI18n(commandkit: CommandKit): i18n

Parameters

commandkit

parameter