hedyorg / hedy

Hedy is a gradual programming language to teach children programming. Gradual languages use different language levels, where each level adds new concepts and syntactic complexity. At the end of the Hedy level sequence, kids master a subset of syntactically valid Python.
https://www.hedy.org
European Union Public License 1.2
1.26k stars 282 forks source link

🪲 Numbers are not translated to Arabic when printed #5549

Closed boryanagoncharenko closed 1 month ago

boryanagoncharenko commented 1 month ago

Describe the bug When the selected language is Arabic, numbers are output in Arabic and not in Latin. However, when we print literal values, they appear in Latin.

In level 6 and currently language Arabic

print 1 + 1
# outputs Ù¢
Screenshot 2024-05-21 at 17 10 07

But if we print the literal value 1, the output is a Latin number:

print 1
# outputs 1
Screenshot 2024-05-21 at 17 10 21
Felienne commented 1 month ago

Ah yes, great catch! I suspect the translation only happens in a calculation, not in a literal!

boryanagoncharenko commented 1 month ago

Oh no, I mistyped the number of this issue in the PR that resolves it, so it did not get closed automatically. Here is the PR: https://github.com/hedyorg/hedy/pull/5567