We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can we have optional "lookupHeader" to replace default header "Accept-Language"?
i18next .use(FilesystemBackend) .use(i18nextMiddleware.LanguageDetector) .init({ detection: { order: ['header', 'querystring'], lookupQuerystring: 'lng', lookupHeader: 'x-language' }, });
The text was updated successfully, but these errors were encountered:
feel free to provide a PR taking value from options: https://github.com/i18next/i18next-express-middleware/blob/master/src/languageLookups/header.js#L12 and default to the "Accept-Language" if not set
Sorry, something went wrong.
@jamuhl would you be able to review my PR?
@jamuhl Would you mind update this option in README.md? Thanks.
@Dominic-Preap was added to readme - thank you for the reminder...
No branches or pull requests
Can we have optional "lookupHeader" to replace default header "Accept-Language"?
The text was updated successfully, but these errors were encountered: