Correct cache options for languages
This commit is contained in:
parent
7babb90818
commit
d0e6b45097
|
|
@ -9,19 +9,12 @@ i18n
|
||||||
.use(initReactI18next)
|
.use(initReactI18next)
|
||||||
.init({
|
.init({
|
||||||
fallbackLng: 'en-US',
|
fallbackLng: 'en-US',
|
||||||
debug: true,
|
debug: process.env.NODE_ENV !== 'production',
|
||||||
load: 'currentOnly',
|
|
||||||
interpolation: {
|
interpolation: {
|
||||||
escapeValue: false,
|
escapeValue: false,
|
||||||
},
|
},
|
||||||
backend: {
|
backend: {
|
||||||
loadPath: '/i18n/{{lng}}/{{ns}}.json',
|
loadPath: '/i18n/{{lng}}/{{ns}}.json',
|
||||||
requestOptions: {
|
|
||||||
cache: 'no-cache'
|
|
||||||
},
|
|
||||||
customHeaders: {
|
|
||||||
pragma: 'no-cache',
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue