# Floating numbers in RTL layout

**URL:** https://meta.discourse.org/t/floating-numbers-in-rtl-layout/163466
**Category:** UX
**Created:** [September 9, 2020, 6:50am UTC](https://meta.discourse.org/t/floating-numbers-in-rtl-layout/163466 "2020-09-09T06:50:23Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![verilog15](https://avatars.discourse-cdn.com/v4/letter/v/9f8e36/32.png) [@verilog15](https://meta.discourse.org/u/verilog15)
#### Post date: [September 9, 2020, 6:50am UTC](https://meta.discourse.org/t/floating-numbers-in-rtl-layout/163466/1 "2020-09-09T06:50:23Z")

</div>

Hello Discourse 🙂  
I noticed a small UI bug that happens in my instance and also here as well. Once you move into an RTL language (like Hebrew), the floating numbers will flip. For example 2.8 will become 8.2 (with additional space in between for some reason - 8. 2). Screenshot from this community:

![image](https://global.discourse-cdn.com/meta/optimized/3X/a/0/a073c7398645854495b08f2bd182448c1483185a_2_690x49.png)

While it should be:

![image](https://global.discourse-cdn.com/meta/optimized/3X/e/a/eab284cf3bdfec4a61d7ed6d895c87a227352dbc_2_690x45.png)

I believe that removing that additional space in between, should fix the problem (it worked for me, while playing with it in the DevTools). Is it possible to get fixed? 🙂

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [September 9, 2020, 8:19pm UTC](https://meta.discourse.org/t/floating-numbers-in-rtl-layout/163466/2 "2020-09-09T20:19:46Z")

</div>

Thanks for reporting that! I’ve moved your topic from the bug category to the ux category because I don’t think it meets our definition of a bug. It is something that should get fixed though.

Have you noticed any other similar issues when an RTL language is chosen?

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [September 18, 2020, 1:06am UTC](https://meta.discourse.org/t/floating-numbers-in-rtl-layout/163466/3 "2020-09-18T01:06:51Z")

</div>

> [@verilog15](#):
>
> I believe that removing that additional space in between, should fix the problem (it worked for me, while playing with it in the DevTools).

I started looking at this and realized that the problem is only affecting the Hebrew local, other RTL languages do not have the issue. The problem with the direction of the number is being caused by the additional space. In our Hebrew localization, the separator for floats is set to `" ."`. Removing the space from the separator solves the issue. Is it expected to have a space before the separator when numbers are displayed in Hebrew text?

Just to confirm this is correct, here is what I’m seeing when I remove the space before the separator in the translation file for a topic that has 12.9k views:

 ![image](https://global.discourse-cdn.com/meta/original/3X/4/4/44a3918062322706ea0878b37326fc14cb2f6300.png)

---

<div class="post-metadata">

### Author: ![verilog15](https://avatars.discourse-cdn.com/v4/letter/v/9f8e36/32.png) [@verilog15](https://meta.discourse.org/u/verilog15)
#### Post date: [September 18, 2020, 11:58am UTC](https://meta.discourse.org/t/floating-numbers-in-rtl-layout/163466/4 "2020-09-18T11:58:57Z")

</div>

There should not be spaces in the number. The example you showed is correct 🙂

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [September 28, 2020, 6:19pm UTC](https://meta.discourse.org/t/floating-numbers-in-rtl-layout/163466/7 "2020-09-28T18:19:47Z")

</div>

Translation has been fixed.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [September 28, 2020, 6:33pm UTC](https://meta.discourse.org/t/floating-numbers-in-rtl-layout/163466/8 "2020-09-28T18:33:50Z")

</div>

The space before the separator has been removed from the translation file. This issue should now be fixed on the latest version of DIscourse.
