about summary refs log tree commit diff
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
authorMasoud Abkenar <ampbox@gmail.com>2017-04-24 22:39:15 +0200
committerEugen <eugen@zeonfederated.com>2017-04-24 22:39:15 +0200
commitbb04a9be52e005fb8bbeef22e5b8d30f0d202903 (patch)
treea42cca2b528b1030d81eeb1ddb1b584889c34bec /app/helpers/application_helper.rb
parent338df98ddf14493d655a72f38f2bde482becab54 (diff)
Persian translation (#2405)
* Persian translation

* adding :fa to make the site use the rtl stylesheet

based on [this comment](https://github.com/tootsuite/mastodon/pull/2405#issuecomment-296721105)

* fix missing quotes

* add 'fa' locale
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index e2ea94856..ba6803b4b 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -10,7 +10,7 @@ module ApplicationHelper
   end
 
   def add_rtl_body_class(other_classes)
-    other_classes = "#{other_classes} rtl" if [:ar].include?(I18n.locale)
+    other_classes = "#{other_classes} rtl" if [:ar, :fa].include?(I18n.locale)
     other_classes
   end
 end