Interface I18nOptions

Options for configuring internationalization

interface I18nOptions {
    defaultNS?: string;
    fallbackLng?: string;
    fsTranslationsPath?: string;
    interpolation?: { escapeValue?: boolean };
    lng?: string;
    ns?: string[];
    resources?: I18nResourceBundle;
}
Hierarchy
  • InitOptions
    • I18nOptions

Properties

defaultNS?: string

Default namespace used if not passed to translation function

'translation'
fallbackLng?: string

Language to use if translations in user language are not available.

'dev'
fsTranslationsPath?: string
interpolation?: { escapeValue?: boolean }
lng?: string

Language to use (overrides language detection)

undefined
ns?: string[]

String or array of namespaces to load

'translation'
resources?: I18nResourceBundle

Resources to initialize with (if not using loading or not appending using addResourceBundle)

undefined