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.
With redirects disabled, cookies were still set by accepted languages.
This was causing a mix of languages where page default lang is en and accepted language or cookie is set to de. Some texts were in de and some in en language.
Related Issue
CT-192
How Has This Been Tested?
Tested with CT.
Steps to reproduce a bug:
In nuxt.config.js set:
autoRedirectByLocale: false.
defaultLocale to other than browser preferred language, f.e. if browser language is en, set default locale to de
Run project.
Open home page.
Page should not redirect to en version.
Texts will have mixed languages, english with deutch.
Expected result is to have texts in one language,
Screenshots:
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:
[ ] I have read the CONTRIBUTING document.
Changelog
[ ] 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
[ ] 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.
I tested manually my code, and it works well with both:
[ ] Default Theme
[ ] Capybara Theme
Code standards
[ ] My code follows the code style of this project.
Description
With redirects disabled, cookies were still set by accepted languages. This was causing a mix of languages where page default lang is
en
and accepted language or cookie is set tode
. Some texts were inde
and some inen
language.Related Issue
CT-192
How Has This Been Tested?
Tested with CT. Steps to reproduce a bug:
nuxt.config.js
set:autoRedirectByLocale: false
.defaultLocale
to other than browser preferred language, f.e. if browser language isen
, set default locale tode
en
version.Expected result is to have texts in one language,
Screenshots:
Types of changes
Checklist:
Changelog
Tests
Code standards
Docs