Commit dd24f667 authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch '339501-require-string-literal-i18n-helper' into 'master'

Address require-string-literal-i18n-helpers offenses

See merge request gitlab-org/gitlab!72387
parents 17aaf27d 314eaff0
<script> <script>
/* eslint-disable @gitlab/require-string-literal-i18n-helpers */
import { GlButton, GlSprintf } from '@gitlab/ui'; import { GlButton, GlSprintf } from '@gitlab/ui';
import { escape } from 'lodash'; import { escape } from 'lodash';
import { __, n__, s__ } from '~/locale'; import { __, n__, s__ } from '~/locale';
...@@ -41,7 +40,7 @@ export default { ...@@ -41,7 +40,7 @@ export default {
return this.expanded ? 'chevron-down' : 'chevron-right'; return this.expanded ? 'chevron-down' : 'chevron-right';
}, },
commitsCountMessage() { commitsCountMessage() {
return n__(__('%d commit'), __('%d commits'), this.isSquashEnabled ? 1 : this.commitsCount); return n__('%d commit', '%d commits', this.isSquashEnabled ? 1 : this.commitsCount);
}, },
modifyLinkMessage() { modifyLinkMessage() {
if (this.isFastForwardEnabled) return __('Modify commit message'); if (this.isFastForwardEnabled) return __('Modify commit message');
......
...@@ -197,9 +197,6 @@ msgid_plural "%d commits," ...@@ -197,9 +197,6 @@ msgid_plural "%d commits,"
msgstr[0] "" msgstr[0] ""
msgstr[1] "" msgstr[1] ""
msgid "%d commits"
msgstr ""
msgid "%d completed issue" msgid "%d completed issue"
msgid_plural "%d completed issues" msgid_plural "%d completed issues"
msgstr[0] "" msgstr[0] ""
......
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