diff --git a/config/application.rb b/config/application.rb index 7f925540892..60e188068e7 100644 --- a/config/application.rb +++ b/config/application.rb @@ -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.