Correct cache options for languages

This commit is contained in:
Ben Grant 2021-05-18 23:44:42 +10:00
parent 7babb90818
commit d0e6b45097

View file

@ -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',
},
},
});