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>
/* eslint-disable @gitlab/require-string-literal-i18n-helpers */
import { GlIcon } from '@gitlab/ui';
import { escape } from 'lodash';
import { __, n__, sprintf } from '~/locale';
......@@ -28,14 +27,9 @@ export default {
};
},
alertCount() {
const text = this.lastAlert ? '%{count} %{alerts}:' : '%{count} %{alerts}';
return sprintf(__(text), {
count: this.count,
alerts: this.pluralizedAlerts,
});
},
pluralizedAlerts() {
return n__('Alert', 'Alerts', this.count);
return this.lastAlert
? n__('%d Alert:', '%d Alerts:', this.count)
: n__('%d Alert', '%d Alerts', this.count);
},
alertText() {
return sprintf(
......
......@@ -92,6 +92,16 @@ msgstr ""
msgid "#general, #development"
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_plural "%d Approvals"
msgstr[0] ""
......@@ -2901,11 +2911,6 @@ msgstr ""
msgid "Akismet API Key"
msgstr ""
msgid "Alert"
msgid_plural "Alerts"
msgstr[0] ""
msgstr[1] ""
msgid "AlertManagement|Acknowledged"
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