Function getInitialNamespaces

  • Get the list of namespaces used by the application server-side so you could set it on i18next init options.

    Returns string[]

    i18next.init({
    ns: getInitialNamespaces(), // this function
    // ...more options
    })