[BUG]: Embedded exploration player causes infinite re-renders when changing language to Arabic
#21 220 ouverte le 2 nov. 2024
Description
Describe the bug
When you change the language of the embedded exploration player to Arabic it causes the player to go in infinite re-rendering.
Currently there is no dropdown to change the langauge of the embedded exploration ( work in progress PR #21216 )
So, the manual way to change the language is - ( Ref 1 )
- Inspect the page
- Go to Application Tab
- In local storage section find the file associated to your player
- There you can see two values - direction ( direction of the flow of the language ) & lang (language code)
Embedded Exploration File - https://drive.google.com/file/d/1XjhKIVC6h9cFs99oCuQ1xCTRo-iRqIBj/view?usp=sharing - this is from #21069
URL of the page where the issue is observed.
N/A
Steps To Reproduce
- Download the file
- Change the iframe src to
http://localhost:8181/embed/exploration/{explorationId} - Open it in your browser
- Repeat the steps mentioned in Ref 1 ( to find direction & lang )
- Change direction to rtl
- Change lang to ar
- Refresh the page
Expected Behavior
The language should be changed successfully and all RTL CSS should be applied
Screenshots/Videos
Screen Recording 2024-11-02 at 2.44.19 PM.webm
What device are you using?
Desktop
Operating System
MacOS
What browsers are you seeing the problem on?
Chrome
Browser version
No response
Additional context
No response
Tips for developers
Before addressing the bug, please identify which PR caused the issue (you can follow the steps here). If you identify the PR, comment on the issue with a link to it. If not, mention the commit hash of the oldest commit you saw the bug on (and the month and year it was made in).
Then, please leave a comment with details of the approach that you plan to take to fix the issue (see example).
Note: If this is your first Oppia issue, please make sure to follow our guidelines for choosing an issue and setting things up. You will also need to show a demo of the fix working correctly on your local machine. Thanks!