Interface BackendModule<TOptions>

Used to load data for i18next. Can be provided as a singleton or as a prototype constructor (preferred for supporting multiple instances of i18next). For singleton set property type to 'backend' For a prototype constructor set static property.

Type Parameters

  • TOptions = object

Hierarchy

Properties

Methods

Properties

type: "backend"

Methods

  • Save the missing translation

    Parameters

    • languages: readonly string[]
    • namespace: string
    • key: string
    • fallbackValue: string

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Load multiple languages and namespaces. For backends supporting multiple resources loading

    Parameters

    • languages: readonly string[]
    • namespaces: readonly string[]
    • callback: MultiReadCallback

    Returns void

  • Store the translation. For backends acting as cache layer

    Parameters

    Returns void

Generated using TypeDoc