Class: I18nModelTranslator::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



17
18
19
20
21
# File 'lib/i18n_model_translator.rb', line 17

def initialize
  @model_locale_path = 'config/locales/models'
  @translation_source_locale = I18n.default_locale
  @locales = I18n.available_locales rescue []
end

Instance Attribute Details

#localesObject

Returns the value of attribute locales.



15
16
17
# File 'lib/i18n_model_translator.rb', line 15

def locales
  @locales
end

#model_locale_pathObject

Returns the value of attribute model_locale_path.



15
16
17
# File 'lib/i18n_model_translator.rb', line 15

def model_locale_path
  @model_locale_path
end

#translation_source_localeObject

Returns the value of attribute translation_source_locale.



15
16
17
# File 'lib/i18n_model_translator.rb', line 15

def translation_source_locale
  @translation_source_locale
end