Alokai is a Frontend as a Service solution that simplifies composable commerce. It connects all the technologies needed to build and deploy fast & scalable ecommerce frontends. It guides merchants to deliver exceptional customer experiences quickly and easily.
Added autoRedirectByLocale option in the i18n configuration object in nuxt.config.js to allow for bypassing the auto-redirect mechanism of the i18n-cookies plugin.
Fixes a scenario in which personal language preference set for a user's browser is different than the default locale (e.g. browser prefers en and the default locale is de) and results in an automatic redirect to the locale preferred by the browser.
How Has This Been Tested?
Tested locally with a generic commercetools project.
Types of changes
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[x] I have read the CONTRIBUTING document.
Changelog
[x] I have updated the Changelog (V1) v2 and mentioned all breaking changes in the public API.
[ ] I have documented all new public APIs and made changes to existing docs mentioning the parts I've changed so they're up to date.
Tests
[ ] I have written test cases for my code
[x] I have tested my Pull Request on production build and (to my knowledge) it works without any issues
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.
Code standards
[x] My code follows the code style of this project.
Description
Added
autoRedirectByLocale
option in the i18n configuration object in nuxt.config.js to allow for bypassing the auto-redirect mechanism of the i18n-cookies plugin.Related Issue
CT-192
Motivation and Context
Fixes a scenario in which personal language preference set for a user's browser is different than the default locale (e.g. browser prefers
en
and the default locale isde
) and results in an automatic redirect to the locale preferred by the browser.How Has This Been Tested?
Tested locally with a generic commercetools project.
Types of changes
Checklist:
Changelog
Tests
Code standards
Docs