mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 07:23:15 +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
|
# Precompile all available locales
|
||||||
Dir.glob("app/assets/javascripts/locales/*.js.erb").each do |file|
|
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
|
end
|
||||||
|
|
||||||
# Activate observers that should always be running.
|
# Activate observers that should always be running.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user