class Transilator::Configuration

Attributes

locale_fallbacks[RW]

Public Class Methods

new() click to toggle source
# File lib/transilator.rb, line 23
def initialize
  @locale_fallbacks = {}
end

Public Instance Methods

get_fallbacks_for_locale(locale) click to toggle source

returns an array with fallbacks for the given locale

# File lib/transilator.rb, line 28
def get_fallbacks_for_locale(locale)
  locale_fallbacks[locale] || []
end