# 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:** [2016 年 12 月 11 日午前 3: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:** 9

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [2016 年 12 月 11 日午前 8:22 UTC](https://meta.discourse.org/t/why-is-rtl-class-user-dependent-instead-of-locale/54077/9 "2016-12-11T08:22:34Z")

</div>

I won’t go so far to say I know the code inside out, but I’ll chip in my ![](https://global.discourse-cdn.com/meta/original/3X/e/d/ed944ccb914c88865820264c68337add7a914982.gif)

I looked to see if any tests might break if `current_user_rtl` or `site_locale_rtl` were removed. I found none and in fact the only place they exist in the Core code is in the models/rtl.rb file.  
So removing them might break some plugins if they are using them, but it shouldn’t break Discourse.

I don’t think “i18n” would need to be used in the proposed `enabled` but I’ve seen it used in other files.

> <https://github.com/discourse/discourse/blob/main/app/services/post_alerter.rb#L336-L344>

> <https://github.com/discourse/discourse/blob/main/app/services/badge_granter.rb#L46-L57>

> <https://github.com/discourse/discourse/blob/main/app/controllers/application_controller.rb#L214-L225>

---

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