mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 14:07:30 +08:00
Fix locale path for precompiling assets
This commit is contained in:
@ -36,7 +36,7 @@ module Discourse
|
||||
|
||||
# Precompile all available locales
|
||||
Dir.glob("app/assets/javascripts/locales/*.js.erb").each do |file|
|
||||
config.assets.precompile << file.match(/([a-z]+\.js)\.erb$/)[1]
|
||||
config.assets.precompile << "locales/#{file.match(/([a-z]+\.js)\.erb$/)[1]}"
|
||||
end
|
||||
|
||||
# Activate observers that should always be running.
|
||||
|
Reference in New Issue
Block a user