Commit 44e3d750 authored by Phil Hughes's avatar Phil Hughes

Merge branch 'afontaine/fix-environment-alert-dashboard' into 'master'

Fix Translations For Environments Dashboard

See merge request gitlab-org/gitlab!69380
parents 8509a44f 15da8932
<script> <script>
/* eslint-disable @gitlab/require-string-literal-i18n-helpers */
import { GlIcon } from '@gitlab/ui'; import { GlIcon } from '@gitlab/ui';
import { escape } from 'lodash'; import { escape } from 'lodash';
import { __, n__, sprintf } from '~/locale'; import { __, n__, sprintf } from '~/locale';
...@@ -28,14 +27,9 @@ export default { ...@@ -28,14 +27,9 @@ export default {
}; };
}, },
alertCount() { alertCount() {
const text = this.lastAlert ? '%{count} %{alerts}:' : '%{count} %{alerts}'; return this.lastAlert
return sprintf(__(text), { ? n__('%d Alert:', '%d Alerts:', this.count)
count: this.count, : n__('%d Alert', '%d Alerts', this.count);
alerts: this.pluralizedAlerts,
});
},
pluralizedAlerts() {
return n__('Alert', 'Alerts', this.count);
}, },
alertText() { alertText() {
return sprintf( return sprintf(
......
...@@ -92,6 +92,16 @@ msgstr "" ...@@ -92,6 +92,16 @@ msgstr ""
msgid "#general, #development" msgid "#general, #development"
msgstr "" msgstr ""
msgid "%d Alert"
msgid_plural "%d Alerts"
msgstr[0] ""
msgstr[1] ""
msgid "%d Alert:"
msgid_plural "%d Alerts:"
msgstr[0] ""
msgstr[1] ""
msgid "%d Approval" msgid "%d Approval"
msgid_plural "%d Approvals" msgid_plural "%d Approvals"
msgstr[0] "" msgstr[0] ""
...@@ -2901,11 +2911,6 @@ msgstr "" ...@@ -2901,11 +2911,6 @@ msgstr ""
msgid "Akismet API Key" msgid "Akismet API Key"
msgstr "" msgstr ""
msgid "Alert"
msgid_plural "Alerts"
msgstr[0] ""
msgstr[1] ""
msgid "AlertManagement|Acknowledged" msgid "AlertManagement|Acknowledged"
msgstr "" msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment