Sha256: af362afe99e1268f1bf887713f11b10acc4459c3027e35eefe9df055239d8144

Contents?: true

Size: 695 Bytes

Versions: 3

Compression:

Stored size: 695 Bytes

Contents

namespace :red_base do

  namespace :js do

    desc "Collect all the strings which marked for translation from javascript files"
    task :collect => :environment do
      `grunt --gruntfile #{RedBase::Engine.root}/lib/tasks/grunt/Gruntfile.js --base #{RedBase::Engine.root}/ nggettext_extract`
    end

    desc "Compile all the strings which marked for translation in javascript files"
    task :compile => :environment do
      `grunt --gruntfile #{RedBase::Engine.root}/lib/tasks/grunt/Gruntfile.js nggettext_compile`
    end

  end
end


namespace :gettext do
  def files_to_translate
    Dir.glob("{app,lib,config,locale}/**/*.{rb ,erb,haml,slim,rhtml,js.erb,handlebars.erb }")
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
red_base-0.6.0 lib/tasks/red_base_tasks.rake
red_base-0.5.1 lib/tasks/red_base_tasks.rake
red_base-0.5.0 lib/tasks/red_base_tasks.rake