Localize 'throttled' (#2755)
This commit is contained in:
		| @@ -54,3 +54,4 @@ ignore_unused: | |||||||
|   - 'simple_form.{error_notification,required}.:' |   - 'simple_form.{error_notification,required}.:' | ||||||
|   - 'errors.messages.*' |   - 'errors.messages.*' | ||||||
|   - 'activerecord.errors.models.doorkeeper/*' |   - 'activerecord.errors.models.doorkeeper/*' | ||||||
|  |   - 'errors.429' | ||||||
|   | |||||||
| @@ -38,6 +38,6 @@ class Rack::Attack | |||||||
|       'X-RateLimit-Reset'     => (now + (match_data[:period] - now.to_i % match_data[:period])).iso8601(6), |       '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 | ||||||
| end | end | ||||||
|   | |||||||
| @@ -223,6 +223,7 @@ en: | |||||||
|     '422': |     '422': | ||||||
|       content: Security verification failed. Are you blocking cookies? |       content: Security verification failed. Are you blocking cookies? | ||||||
|       title: Security verification failed |       title: Security verification failed | ||||||
|  |     '429': Throttled | ||||||
|   exports: |   exports: | ||||||
|     blocks: You block |     blocks: You block | ||||||
|     csv: CSV |     csv: CSV | ||||||
|   | |||||||
| @@ -222,6 +222,7 @@ ja: | |||||||
|     '422': |     '422': | ||||||
|       content: セキュリティ認証に失敗しました。Cookieをブロックしていませんか? |       content: セキュリティ認証に失敗しました。Cookieをブロックしていませんか? | ||||||
|       title: セキュリティ認証に失敗 |       title: セキュリティ認証に失敗 | ||||||
|  |     '429': リクエストの制限に達しました。 | ||||||
|   exports: |   exports: | ||||||
|     blocks: ブロック |     blocks: ブロック | ||||||
|     csv: CSV |     csv: CSV | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user