MCPcopy Create free account
hub / github.com/i18next/react-i18next / loadNamespaces

Function loadNamespaces

src/utils.js:47–49  ·  view source on GitHub ↗
(i18n, ns, cb)

Source from the content-addressed store, hash-verified

45};
46
47export const loadNamespaces = (i18n, ns, cb) => {
48 i18n.loadNamespaces(ns, loadedClb(i18n, cb));
49};
50
51// should work with I18NEXT >= v22.5.0
52export const loadLanguages = (i18n, lng, ns, cb) => {

Callers 2

useTranslationFunction · 0.90
loadLanguagesFunction · 0.70

Calls 2

loadedClbFunction · 0.70
loadNamespacesMethod · 0.45

Tested by

no test coverage detected