vuestorefront / vue-storefront

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.
https://www.alokai.com
MIT License
10.64k stars 2.09k forks source link

fix(core): add option to disable the locale auto-redirect in i18n-cookies plugin #6717

Closed MarcinSulowski closed 2 years ago

MarcinSulowski commented 2 years ago

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 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

Checklist:

Changelog

Tests

Code standards

Docs

github-actions[bot] commented 2 years ago

:blue_heart: vsf-next-demo successfully deployed at