scratchfoundation / scratchfoundation/scratch-blocks

Handle negative numbers in boolean operators in RTL

Open
#2,043 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

High Prevalence High Severity localization priority 2
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

rlt-bool-numbers

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.