- Issue created by @andre.bonon
- 🇫🇷France mably
Hi @andre.bonon, thanks for your detailed issue.
If I understand it correctly, the current language can changed after the domain context has been initialized.
May be we could simply avoid storing the current language as a class property, what do you think?
- Merge request !166Issue #3541242 by andre.bonon: Domain Config overrides use incorrect language on multilingual sites → (Open) created by andre.bonon
- Merge request !167Issue #3541242 by andre.bonon, mably: Domain Config overrides use incorrect language on multilingual sites → (Merged) created by mably
- 🇫🇷France mably
Hi @andre.bonon, I have create MR 167 that uses a different technique.
I just added a kernel event subscriber that gets called after language negotiation has occured.
I then update the language property of the DomainConfigOverrider class using a new setter method.
Could you give it a try and tell me if it solves your problem?
- Merge request !168Issue #3541242 by andre.bonon: Domain Config overrides use incorrect language on multilingual sites → (Open) created by andre.bonon
- 🇧🇷Brazil andre.bonon
andre.bonon → changed the visibility of the branch 3541242-domain-config-overrides to hidden.
- 🇧🇷Brazil andre.bonon
andre.bonon → changed the visibility of the branch 3541242-domain-config-overrides-beta3 to hidden.
- 🇧🇷Brazil andre.bonon
Works for me on Drupal 10.4.3.
I was able to see the language being updated during the process, and I could retrieve the right config values.