Interface LanguageDetectorAsyncModule

Used to detect language in user land. Can be provided as a singleton or as a prototype constructor (preferred for supporting multiple instances of i18next). For singleton set property type to 'languageDetector' For a prototype constructor set static property.

Hierarchy

  • Module
    • LanguageDetectorAsyncModule

Properties

async: true

Set to true to enable async detection

type: "languageDetector"

Methods

  • Parameters

    • lng: string

    Returns void | Promise<void>

  • Must call callback passing detected language or return a Promise

    Parameters

    • callback: ((lng) => void)
        • (lng): void
        • Parameters

          • lng: string | readonly string[]

          Returns void

    Returns void | Promise<string | readonly string[]>

  • Parameters

    Returns void

Generated using TypeDoc