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