# Why is RTL class user dependent instead of locale?

**URL:** <https://meta.discourse.org/t/why-is-rtl-class-user-dependent-instead-of-locale/54077>\
**Category:** Development\
**Created:** [11. Dezember 2016 um 03:04 UTC](https://meta.discourse.org/t/why-is-rtl-class-user-dependent-instead-of-locale/54077 "2016-12-11T03:04:10Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![ibnesayeed](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ibnesayeed/32/120427_2.png) [@ibnesayeed](https://meta.discourse.org/u/ibnesayeed)\
**Post date:** [11. Dezember 2016 um 14:15 UTC](https://meta.discourse.org/t/why-is-rtl-class-user-dependent-instead-of-locale/54077/10 "2016-12-11T14:15:01Z")

</div>

It looks like `locale` is simply a string, not an object. Hence we can’t attach properties to it. However, there are other ways to specify the direction. One is to add a `direction` or `rtl?` attribute in the `config/locales/names.yml` file. Another possibility is to define `rtl?` method in a place from where it can be called from any part of the application.

> <https://github.com/discourse/discourse/blob/main/config/locales/names.yml>

---

_[View the full topic](https://meta.discourse.org/t/why-is-rtl-class-user-dependent-instead-of-locale/54077)._
