Module: Localer

Defined in:
lib/localer.rb,
lib/localer/data.rb,
lib/localer/rails.rb,
lib/localer/config.rb,
lib/localer/version.rb,
lib/localer/ext/hash.rb,
lib/localer/rake_task.rb,
lib/localer/ext/string.rb,
lib/localer/data/checker.rb,
lib/localer/data/service.rb,
lib/localer/config/locale.rb,
lib/localer/data/processor.rb,
lib/localer/data/missing_translations.rb

Overview

:nodoc:

Defined Under Namespace

Modules: Ext, Rails Classes: Config, Data, RakeTask

Constant Summary collapse

VERSION =
"0.2.0"

Class Method Summary collapse

Class Method Details

.configObject



18
19
20
# File 'lib/localer.rb', line 18

def config
  @config ||= configure
end

.configure(options = {}) ⇒ Object



22
23
24
# File 'lib/localer.rb', line 22

def configure(options = {})
  @config = Config.load(options)
end

.dataObject



14
15
16
# File 'lib/localer.rb', line 14

def data
  @data ||= load_data
end

.load_data(source = Localer::Rails.translations) ⇒ Object



26
27
28
# File 'lib/localer.rb', line 26

def load_data(source = Localer::Rails.translations)
  @data = Data.new(source)
end