mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 20:36:39 +08:00
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
Block a user