You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Project language changes edge-cases and localStore (#1482)
Closes:
RaspberryPiFoundation/digital-editor-issues#889
This fix makes the editor reload the project when the site language
changes, but only if the project has not been edited.
For example, if a project has both Spanish and English versions,
switching the site from Spanish to English now loads the English project
code. If the user has already changed the code, the editor keeps their
local work instead of replacing it with the other language version. I've
found for french is not working but i think it's because of the fallback
of the server.
https://github.com/user-attachments/assets/0fb0ab99-2e8c-4330-906a-d885fbfacc21
0 commit comments