Skip to content

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/common'

Usage

ts
import { registerI18n } from '@almighty-shogun/common'

registerI18n(i18n.global);

Parameters

i18n: I18n
Instance with t, $t, te, or $te methods.

Type signature

ts
declare function registerI18n(i18n: I18n): void;

All packages are released under the MIT License.