Sha256: 1eaf019d06be8b03aab56ddadd98e96930bf8a5f36761aee73a9e736f3d2befc

Contents?: true

Size: 520 Bytes

Versions: 5

Compression:

Stored size: 520 Bytes

Contents

# frozen_string_literal: true

require 'rake'
require 'lokalise_rails'
require "#{LokaliseRails::Utils.root}/config/lokalise_rails"

namespace :lokalise_rails do
  task :import do
    importer = LokaliseManager.importer({}, LokaliseRails::GlobalConfig)
    importer.import!
  rescue StandardError => e
    abort e.inspect
  end

  task :export do
    exporter = LokaliseManager.exporter({}, LokaliseRails::GlobalConfig)
    exporter.export!
  rescue StandardError => e
    abort e.inspect
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lokalise_rails-5.1.0 lib/tasks/lokalise_rails_tasks.rake
lokalise_rails-5.0.1 lib/tasks/lokalise_rails_tasks.rake
lokalise_rails-5.0.0 lib/tasks/lokalise_rails_tasks.rake
lokalise_rails-4.0.0 lib/tasks/lokalise_rails_tasks.rake
lokalise_rails-3.0.0 lib/tasks/lokalise_rails_tasks.rake