-
-
Notifications
You must be signed in to change notification settings - Fork 130
Expand file tree
/
Copy pathRakefile
More file actions
23 lines (18 loc) · 639 Bytes
/
Rakefile
File metadata and controls
23 lines (18 loc) · 639 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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/main/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'