Add or Load Translations
Add on init
import i18next from 'i18next';
i18next
.init({
resources: {
en: {
namespace1: {
key: 'hello from namespace 1'
},
namespace2: {
key: 'hello from namespace 2'
}
},
de: {
namespace1: {
key: 'hallo von namespace 1'
},
namespace2: {
key: 'hallo von namespace 2'
}
}
}
});Add after init
Combined with a backend plugin
Lazy load in memory translations
Load using a backend plugin
Load using a smart backend plugin serving directly from a CDN
Last updated
