scratchfoundation / scratchfoundation/scratch-blocks
In RTL languages, set variable block displays negative numbers incorrectly
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2.8k
- Forks
- 1.6k
- Avg merge
- 4h 51m
- Merged PRs (30d)
- 12
Description
Expected Behavior
Negative numbers in RTL languages still display the minus sign on the left of the number when setting a variable.
Related to #2043 (negative numbers in boolean blocks) and #1707 (negative sign is incorrect when editing a numeric value), but keeping them separate since fixing one block may not fix the others.
Actual Behavior
[Not

Steps to Reproduce
Switch to Persian (Farsi) in the language menu
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue after switching the language to Persian (Farsi), then trace the set-variable block's number display and its RTL handling. Compare the rendered negative number with the expected placement of the minus sign, and verify the behavior in an RTL language without regressing related numeric blocks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, internationalization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100