Skip to main content

Interface: HMROptions

@sapphire/plugin-i18next.HMROptions

Configure whether to use Hot-Module-Replacement (HMR) for your i18next resources using these options. The minimum config to enable HMR is to set enabled to true. Any other properties are optional.

since 2.2.0

Properties

enabled

enabled: boolean

HMR status for the i18next plugin.

default false

Defined in

projects/plugins/packages/i18next/src/lib/types.ts:16


languages

Optional languages: string | string[]

Languages that will be reloaded when updating the languages directory.

default All languages that are automatically resolved from your folder setup

Defined in

projects/plugins/packages/i18next/src/lib/types.ts:22


namespaces

Optional namespaces: string | string[]

Namespaces that will be reloaded when updating the languages directory.

default All namespaces that are automatically resolved from your languages folder setup

Defined in

projects/plugins/packages/i18next/src/lib/types.ts:28


options

Optional options: WatchOptions

HMR options

Defined in

projects/plugins/packages/i18next/src/lib/types.ts:33