openfun / joanie

👛 A headless ERP for education to manage course enrollment/subscription, payment and certificates delivery.
MIT License
22 stars 2 forks source link

♻️(frontend) Refactor translation content #726

Closed PanchoutNathan closed 4 months ago

PanchoutNathan commented 5 months ago

Purpose

Currently, if a lang cookie is est, it is impossible to translate an entity. For this, we therefore modify the logic in order to delete the cookie at the time of a translation

jbpenrath commented 5 months ago

On first load, the key translateContentLanguage is not well set when the language is different that english.

On the screenshot, you can that the active language is french, the resource language active tab is French but translateContentLanguage is set to en-us.

image