Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (8 sloc) 406 Bytes
require 'fileutils'
locales_dir = File.join(Rails.root, 'config', 'locales')
Dir.mkdir(locales_dir) unless File.directory?(locales_dir)
locales_template_dir = File.join(File.dirname(__FILE__), 'lib', 'templates', 'locales')
['en.rb', 'en.yml', 'de.yml'].each do |locale|
FileUtils.cp(File.join(locales_template_dir, locale), File.join(locales_dir, locale))
end
puts 'Copied locales to config/locales.'
Something went wrong with that request. Please try again.