wordplaydev / wordplay

An accessible, language-inclusive programming language and IDE for creating interactive typography on the web.
Other
55 stars 16 forks source link

Reactivity issue with languages on webpage #491

Closed mehtparv closed 1 week ago

mehtparv commented 1 week ago

Expected behavior

Prompt switch between languages after switching the language on the bottom right hand corner of the wordplay site.

Actual behavior

After switching the language, a switch does not occur. To get the switch, the webpage has to be reopened.

Reproduction

  1. Open up wordplay.dev
  2. Go to the learn tab
  3. Switch Languages on the bottom right hand corner. - English to Spanish. Spanish to English works fine, there is no reactivity issue. There is also no issue with Chinese to English. The problem is in the switch between English to Spanish or English to Chinese.
  4. See if there is a prompt switch between the text in the tutorial - Tutorial Text. The language in the tutorial text should change, i.e. English to Spanish changes in the same tab. This is not occurring at this time and needs to be worked on.
  5. If there is not a prompt switch between languages in the same tab reopen wordplay,dev in a new tab.
  6. Go to the learn tab and notice if the language switched in the tutorial text.

Refreshing does not change the language in the tutorial text from English, but reopening in a new tab changes it.

Screenshots

Ss 1 Before switching language on the bottom right corner^^ Ss 1 After switching language on the bottom right corner - no prompt switch.^^ Ss 1 After reopening the webpage ^^ Language switches Ss 1

Switching the language on the new webpage and the reopen webpage loop continues