diff --git a/lib/js_locale_helper.rb b/lib/js_locale_helper.rb index 24cd8d45fa8..8b66f56be96 100644 --- a/lib/js_locale_helper.rb +++ b/lib/js_locale_helper.rb @@ -229,10 +229,10 @@ module JsLocaleHelper def self.with_context @mutex.synchronize do yield @ctx ||= begin - ctx = MiniRacer::Context.new - ctx.load("#{Rails.root}/lib/javascripts/messageformat.js") - ctx - end + ctx = MiniRacer::Context.new(timeout: 15000) + ctx.load("#{Rails.root}/lib/javascripts/messageformat.js") + ctx + end end end