Skip to content

InitOptions

Unofficial

Configuration options for initializing i18next.

Import:

import type { InitOptions } from '@obsidian-typings/obsidian-public-latest';

Signature:

export interface InitOptions

Properties

PropertyTypeDescription
debug?booleanWhether to enable debug mode.
defaultNS?false | stringDefault namespace to use.
fallbackLng?false | string | string[]Fallback language or languages when translation is not found.
fallbackNS?false | string | string[]Fallback namespace or namespaces.
interpolation?InterpolationOptionsInterpolation options.
lng?stringActive language code.
ns?string | string[]Namespace or namespaces to load.
resources?Record<string, Record<string, Record<string, string>>>Pre-loaded translation resources.
supportedLngs?false | string[]List of supported language codes, or false to allow all.

Links to this page: