basalt / i18n/src / i18nPlugin
Function: i18nPlugin()
> i18nPlugin<C>(options): BasaltPlugin<unknown>
Defined in: i18n/src/plugin.ts:12
Registers an I18n instance under the I18N token. The generic catalog type is erased at the token; import your typed instance directly (or cast) to keep key autocompletion.
Type Parameters
C
C extends Catalog
Parameters
options
I18nOptions<C>
Returns
BasaltPlugin<unknown>