-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
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
feat: save language selection as cookie #1447
Conversation
Azure Demo Servers are available: |
87fd6b4
to
41a8790
Compare
Azure Demo Servers are available: |
41a8790
to
5ec1e6f
Compare
Azure Demo Servers are available: |
2a8400d
to
d4aa83a
Compare
3777e44
to
b474698
Compare
It doesn't work, when the PWA is running locally with |
3facd2f
to
ebb6420
Compare
Azure Demo Servers are available: |
Please check, when applying the preferred locale, that the locale is available. The problem can occur, when the Multi-Channel configuration contains different channel for different paths. - Done |
add a feature toggle to switch the behavior on/off - Done |
Azure Demo Servers are available: |
792ffcc
to
cc4d110
Compare
cc4d110
to
f357086
Compare
PR Type
[x] Feature
What Is the Current Behavior?
The pwa is always opened in the requested language according to the url/default language.
Issue Number: Closes #1489
What Is the New Behavior?
If the user changes the language the new language is saved as cookie 'preferredLocale' in the browser. The next time he/she opens the pwa the pwa is reloaded in this language if it differs from the current language and this language is supported by the PWA. This cookie is considered as a technically necessary cookie and will be set even if the user only accepts necessary cookies.
This feature is enabled by default and can be disabled by switching the feature toggle 'saveLanguageSelection' off.
Does this PR Introduce a Breaking Change?
[ ] Yes
[x] No
Other Information
AB#86776