Sha256: 3e3aba1d0a81f590a0749843b4f51fbe0646157bcf7558585b7b2d01ef8da5ea

Contents?: true

Size: 520 Bytes

Versions: 10

Compression:

Stored size: 520 Bytes

Contents

namespace :"globalize:translations:dump" do
  desc "Dump GlobalizeStore I18n translations as YAML"
  task :yaml => :environment do
    puts "Dumping translations as YAML..."
    puts I18n.backend.globalize_store.available_translations.ya2yaml
  end

  desc "Dump GlobalizeStore I18n translations as Ruby Hash"
  task :ruby => :environment do
    puts "Dumping translations as Ruby Hash..."
    ap I18n.backend.globalize_store.available_translations, { :plain => true, :indent => 2, :sorted_hash_keys => true }
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
exvo_globalize-0.6.0 lib/tasks/dump.rake
exvo_globalize-0.5.6 lib/tasks/dump.rake
exvo_globalize-0.5.5 lib/tasks/dump.rake
exvo_globalize-0.5.4 lib/tasks/dump.rake
exvo_globalize-0.5.3 lib/tasks/dump.rake
exvo_globalize-0.5.2 lib/tasks/dump.rake
exvo_globalize-0.5.1 lib/tasks/dump.rake
exvo_globalize-0.5.0 lib/tasks/dump.rake
exvo_globalize-0.4.0 lib/tasks/dump.rake
exvo_globalize-0.3.2 lib/tasks/dump.rake