Class: Underworld::I18n

Inherits:
Object
  • Object
show all
Defined in:
lib/underworld/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



66
67
68
69
70
71
72
# File 'lib/underworld/i18n.rb', line 66

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