Localize 'throttled' (#2755)
This commit is contained in:
parent
44969307c7
commit
db92eec876
4 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue