Fix ku
locale not being right-to-left (#15252)
This commit is contained in:
parent
413526a7b8
commit
9c670a0e7f
1 changed files with 8 additions and 1 deletions
|
@ -7,6 +7,13 @@ module ApplicationHelper
|
||||||
follow
|
follow
|
||||||
).freeze
|
).freeze
|
||||||
|
|
||||||
|
RTL_LOCALES = %i(
|
||||||
|
ar
|
||||||
|
fa
|
||||||
|
he
|
||||||
|
ku
|
||||||
|
).freeze
|
||||||
|
|
||||||
def active_nav_class(*paths)
|
def active_nav_class(*paths)
|
||||||
paths.any? { |path| current_page?(path) } ? 'active' : ''
|
paths.any? { |path| current_page?(path) } ? 'active' : ''
|
||||||
end
|
end
|
||||||
|
@ -44,7 +51,7 @@ module ApplicationHelper
|
||||||
end
|
end
|
||||||
|
|
||||||
def locale_direction
|
def locale_direction
|
||||||
if [:ar, :fa, :he].include?(I18n.locale)
|
if RTL_LOCALES.include?(I18n.locale)
|
||||||
'rtl'
|
'rtl'
|
||||||
else
|
else
|
||||||
'ltr'
|
'ltr'
|
||||||
|
|
Loading…
Reference in a new issue