diff options
author | rpereira2 <rpereira@gitlab.com> | 2019-04-04 14:40:06 +0300 |
---|---|---|
committer | rpereira2 <rpereira@gitlab.com> | 2019-04-04 23:42:34 +0300 |
commit | 3888b4d35c8e6e24d1871bbc4ec2e1f63a19ed4d (patch) | |
tree | 1d8b4ba92bd079c8954ef715863863a2bb19a752 /app/controllers | |
parent | e89b07327166b2af8557d0f177264da25e4df0d3 (diff) |
Allow message strings to be translated
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/environments/prometheus_api_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects/environments/prometheus_api_controller.rb b/app/controllers/projects/environments/prometheus_api_controller.rb index 13b5a300af6..fd3320637b0 100644 --- a/app/controllers/projects/environments/prometheus_api_controller.rb +++ b/app/controllers/projects/environments/prometheus_api_controller.rb @@ -14,8 +14,8 @@ class Projects::Environments::PrometheusApiController < Projects::ApplicationCon if result.nil? return render status: :accepted, json: { - status: 'processing', - message: 'Not ready yet. Try again later.' + status: _('processing'), + message: _('Not ready yet. Try again later.') } end |