scratchfoundation / scratchfoundation/scratch-blocks

In RTL languages, set variable block displays negative numbers incorrectly

Open
#2,386 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

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
rtl-number-blocks

Steps to Reproduce

Switch to Persian (Farsi) in the language menu

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.