about summary refs log tree commit diff
path: root/app/helpers
diff options
context:
space:
mode:
authorStarfall <us@starfall.systems>2020-12-07 09:35:37 -0600
committerStarfall <us@starfall.systems>2020-12-07 09:35:37 -0600
commit0f6d41052652c4fee87a19900795c8588d9a2174 (patch)
treea9440e6aa871459b4892eddcf5a72ae8d53990ba /app/helpers
parentd085d49922b2ae32201caf5751344f5d88ccae4b (diff)
parent25f725d67a6d2542cd586ab7c56baca572eb4f88 (diff)
Merge branch 'glitch' into main
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 2936545a0..5a9496bd4 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -7,6 +7,13 @@ module ApplicationHelper
     follow
   ).freeze
 
+  RTL_LOCALES = %i(
+    ar
+    fa
+    he
+    ku
+  ).freeze
+
   def active_nav_class(*paths)
     paths.any? { |path| current_page?(path) } ? 'active' : ''
   end
@@ -44,7 +51,7 @@ module ApplicationHelper
   end
 
   def locale_direction
-    if [:ar, :fa, :he].include?(I18n.locale)
+    if RTL_LOCALES.include?(I18n.locale)
       'rtl'
     else
       'ltr'