Class: RedBase::I18n

Inherits:
Object
  • Object
show all
Defined in:
lib/red_base/i18n.rb

Constant Summary collapse

RTL =
[
 :fa,
 :ar
]

Class Method Summary collapse

Class Method Details

.direction(locale) ⇒ Object



27
28
29
30
31
32
33
# File 'lib/red_base/i18n.rb', line 27

def self.direction(locale)
  if RTL.include? locale.to_sym
    "rtl"
  else
    "ltr"
  end
end