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

RTL =
[:fa, :ar]

Class Method Summary (collapse)

Class Method Details

+ (Object) direction(locale)



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

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