Skip to content

Instantly share code, notes, and snippets.

@kutanov
Created February 15, 2020 03:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kutanov/85f072bb5798f0d48cbb6971be8ebafe to your computer and use it in GitHub Desktop.
Save kutanov/85f072bb5798f0d48cbb6971be8ebafe to your computer and use it in GitHub Desktop.
app.use(
middleware.handle(i18next, {
ignoreRoutes: ["/foo"], // or function(req, res, options, i18next) { /* return true to ignore */ }
removeLngFromUrl: false
})
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment