Skip to content

Commit

Permalink
tested with cache: false
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed Feb 22, 2024
1 parent 90f5a48 commit bd1ff7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions example/basic/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ app.use('/locales', express.static('locales'))

// or instead of static
// app.get('/locales/:lng/:ns', i18nextMiddleware.getResourcesHandler(i18next))
// app.get('/locales/:lng/:ns', i18nextMiddleware.getResourcesHandler(i18next, { cache: false }))
// loadPath for client: http://localhost:8080/locales/{{lng}}/{{ns}}

// missing keys make sure the body is parsed (i.e. with [body-parser](https://github.com/expressjs/body-parser#bodyparserjsonoptions))
Expand Down

0 comments on commit bd1ff7b

Please sign in to comment.