scratchfoundation / scratchfoundation/scratch-blocks
Handle negative numbers in boolean operators in RTL
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
Numbers in boolean operators inputs should always be LTR regardless of language.
Actual Behavior

Note that sign is on the left in the boolean operators, but fine with mathematical ones.
Steps to Reproduce
Switch between LTR and RTL languages (e.g. English and Persian (farsi)).
Note, there are a number of bugs related to number fields and RTL, but they're not usually fixed the same way, so making this a unique issue.
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 in scratch-blocks while switching between an LTR language such as English and RTL Persian. Inspect the boolean-operator number fields and compare them with mathematical operators. Done means negative-number signs remain on the left in boolean operators for both language directions without changing mathematical operators.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, internationalization, localization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100