registerI18n
Registers an i18n-like instance for the module-level translation helpers. The instance may expose composition-style t and te methods or legacy $t and $te methods.
Importing
ts
import { registerI18n } from '@almighty-shogun/vue-utils'Usage
ts
import { registerI18n } from '@almighty-shogun/vue-utils'
registerI18n(i18n.global);Parameters
| Name | Type | Description |
|---|---|---|
i18n | I18n | null | Instance with t, $t, te, or $te methods. |
Type signature
ts
declare function registerI18n(i18n: I18n | null): void;