module Translator

Public Class Methods

default_file_paths() click to toggle source
# File lib/translator.rb, line 41
def self.default_file_paths
  Dir[File.join(data_directory, '*.yml')]
end
load!(paths) click to toggle source
# File lib/translator.rb, line 36
def self.load!(paths)
  Synchronizer.new(paths, output_stream).process
  Store.instance.load_files(paths)
end
setup() { |self| ... } click to toggle source
# File lib/translator.rb, line 31
def self.setup
  yield self if block_given?
  setup_localeapp_configurations
end

Private Class Methods

setup_localeapp_configurations() click to toggle source
# File lib/translator.rb, line 45
def self.setup_localeapp_configurations
  require 'localeapp'
  Localeapp.configure do |config|
    config.api_key                    = localeapp_api_key
    config.translation_data_directory = data_directory
    config.synchronization_data_file  = synchronization_data_file
    config.poll_interval              = 0
  end
end