Function hasLoadedNamespace

  • Checks if namespace has loaded yet. i.e. used by react-i18next

    Parameters

    • ns: string | readonly string[]
    • Optional options: {
          lng?: string | readonly string[];
          precheck: ((i18n, loadNotPending) => boolean);
      }
      Optional
      • Optional lng?: string | readonly string[]
      • precheck: ((i18n, loadNotPending) => boolean)
          • (i18n, loadNotPending): boolean
          • Parameters

            • i18n: i18n
            • loadNotPending: ((lng, ns) => boolean)
                • (lng, ns): boolean
                • Parameters

                  • lng: string | readonly string[]
                  • ns: string | readonly string[]

                  Returns boolean

            Returns boolean

    Returns boolean

  • Checks if a namespace has been loaded.

    Parameters

    • ns: string
    • Optional options: Pick<InitOptions<object>, "fallbackLng">
      Optional

    Returns boolean

Generated using TypeDoc