Class: Faalis::I18n

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

Overview

I18n related utility functions

Defined Under Namespace

Modules: Locale Classes: MissingKeyHandler

Constant Summary collapse

RTL =
[:fa, :ar]

Class Method Summary collapse

Class Method Details

.direction(locale) ⇒ Object


84
85
86
87
88
89
90
# File 'lib/faalis/i18n.rb', line 84

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