Fix locale path for precompiling assets
This commit is contained in:
parent
628927a79f
commit
04f0105daf
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue