Closed Rem486 closed 3 years ago
Yes, this is expected: https://www.i18next.com/overview/configuration-options#languages-namespaces-resources default load option is 'all'
try:
import i18n from 'i18next';
import Backend from 'i18next-http-backend';
i18n
.use(Backend)
.init({
fallbackLng: 'ko-KR',
preload: ['ko-KR'],
load: 'currentOnly',
backend: {
loadPath: `http://localhost/api/translation-resource/{{lng}}`,
},
interpolation: {
escapeValue: false, // not needed for react as it escapes by default
},
});
🐛 Bug Report
A clear and concise description of what the bug is.
To Reproduce
A codesandbox example or similar or at least steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
only one request, or Is this normal ?
Your Environment