about summary refs log tree commit diff
path: root/config/initializers
diff options
context:
space:
mode:
authoralpaca-tc <alpaca-tc@alpaca.tc>2017-05-04 06:36:19 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-05-03 23:36:19 +0200
commitdb92eec876efc2d5b450b0c9c70d78091762fc4b (patch)
tree844bcf249375554b609b76ab4fef14016a9cc60a /config/initializers
parent44969307c71bbd9caf21890b02a525910d1cf017 (diff)
Localize 'throttled' (#2755)
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/rack_attack.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/rack_attack.rb b/config/initializers/rack_attack.rb
index 3ebe39462..d5cd77b34 100644
--- a/config/initializers/rack_attack.rb
+++ b/config/initializers/rack_attack.rb
@@ -38,6 +38,6 @@ class Rack::Attack
       'X-RateLimit-Reset'     => (now + (match_data[:period] - now.to_i % match_data[:period])).iso8601(6),
     }
 
-    [429, headers, [{ error: 'Throttled' }.to_json]]
+    [429, headers, [{ error: I18n.t('errors.429') }.to_json]]
   end
 end