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