Skip to content
Snippets Groups Projects
Unverified Commit a55e6e99 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix `ku` locale not being right-to-left (#15252)

parent 68775b60
No related branches found
No related tags found
No related merge requests found
......@@ -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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment