Sha256: 72d5c8ce2ed40f8f0c5327bd0314aa2878959a1abbb24069134189e842384b54

Contents?: true

Size: 429 Bytes

Versions: 2

Compression:

Stored size: 429 Bytes

Contents

namespace :i18n do
  desc 'update translation files'
  task :update => :environment do
    I18n::Screwdriver::Scanner.new.run
  end
  
  desc 'translate foreign language file line by line'
  task :translate => :environment do
    language = ENV['TRANSLATE'] || FOREIGN_LANGUAGES.first
    raise "ERROR: usage: TRANSLATE=de rake i18n:translate" unless language
    
    I18n::Screwdriver::Scanner.new.translate(language)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
i18n_screwdriver-0.6.0 lib/tasks/i18n.rake
i18n_screwdriver-0.4.0 lib/tasks/i18n.rake