Changing default locale after installing Persian translation does not switch forum layout to rtl


(Simon Cossar) #1

I am setting up a forum for a group that coordinates shipping medical textbooks between the west and Afghanistan. We would like the forum user interface to be available in either English or Persian.

I have set up a Discourse development environment and followed the instructions from the How to add a new language topic. I have used the fa_IR (Iranian Persian) files from Transifex. I am able to select Persian in the default locale settings. The translated strings appear, but the site layout is not switching to right-to-left. When I select Hebrew or Arabic the site layout does change to right-to-left.

Any help to get this working would be appreciated.


(Neil Lalonde) #2

It looks like we need to add fa_IR to the list of RTL locales here:

https://github.com/discourse/discourse/blob/master/app/models/rtl.rb#L22

We don’t include fa_IR yet, probably because translations aren’t finished.