Skip to content

fix(nutmeg): apply language specified in Site Configuration [BB-6801]#508

Closed
Agrendalath wants to merge 1 commit intoopencraft-release/nutmeg.2from
agrendalath/bb-6801-fix_site-specific_language
Closed

fix(nutmeg): apply language specified in Site Configuration [BB-6801]#508
Agrendalath wants to merge 1 commit intoopencraft-release/nutmeg.2from
agrendalath/bb-6801-fix_site-specific_language

Conversation

@Agrendalath
Copy link
Member

Previously, this solution was implemented in the dark_lang middleware. However, the lang_pref middleware started setting the user-preferred language by default, which resulted in overriding the language cookie twice for a single request (making this feature unusable). In this commit, the language from Site Configuration will be applied after the one specified in user preferences, to allow setting a language globally for a specific Site.

Previously, this solution was implemented in the `dark_lang` middleware.
However, the `lang_pref` middleware started setting the user-preferred
language by default, which resulted in overriding the language cookie twice
for a single request (making this feature unusable). In this commit, the
language from Site Configuration will be applied after the one specified in
user preferences, to allow setting a language globally for a specific Site.
@Agrendalath Agrendalath force-pushed the agrendalath/bb-6801-fix_site-specific_language branch from 38f0ca1 to 921f2d4 Compare November 24, 2022 09:20
@Agrendalath
Copy link
Member Author

Closing, as we used a different approach in #516.

@Agrendalath Agrendalath closed this Dec 7, 2022
@Agrendalath Agrendalath deleted the agrendalath/bb-6801-fix_site-specific_language branch December 7, 2022 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments