Module: I18nExport

Defined in:
lib/i18n_export.rb,
lib/i18n_export/config.rb,
lib/i18n_export/railtie.rb,
lib/i18n_export/version.rb

Defined Under Namespace

Modules: Version Classes: Config, Railtie

Class Method Summary collapse

Class Method Details

.config_fileObject



11
12
13
# File 'lib/i18n_export.rb', line 11

def self.config_file
  @@config_file ||= "config/i18n-export.yml"
end

.config_file=(file) ⇒ Object



7
8
9
# File 'lib/i18n_export.rb', line 7

def self.config_file=(file)
  @@config_file = file
end

.configurationObject



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

def self.configuration
  I18nExport::Config.new(config_file)
end

.export!Object



19
20
21
# File 'lib/i18n_export.rb', line 19

def self.export!
  configuration.file_definitions.each {|definition| export_file(definition) }
end