Sha256: e31ad22978fdb6a321e5be7688cfb73c33d1d1c0083881ffd54cf38e8e7ac2d8

Contents?: true

Size: 641 Bytes

Versions: 1

Compression:

Stored size: 641 Bytes

Contents

# frozen_string_literal: true

require 'bundler/gem_tasks'
require 'solidus_dev_support/rake_tasks'
SolidusDevSupport::RakeTasks.install

require 'solidus_i18n'
namespace :solidus_i18n do
  desc 'Update by retrieving the latest Solidus locale files'
  task update_default: :environment do
    require 'open-uri'
    puts 'Fetching latest Solidus locale file'
    location = 'https://raw.github.com/solidusio/solidus/master/core/config/locales/en.yml'

    File.write("#{locales_dir}/en.yml", URI.parse(location).read)
  end

  def locales_dir
    File.join File.dirname(__FILE__), 'config/locales'
  end
end

task default: 'extension:specs'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_i18n-2.2.0 Rakefile