diff options
author | Constance Okoghenun <cokoghenun@gitlab.com> | 2018-08-10 19:53:57 +0000 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2018-08-10 19:53:57 +0000 |
commit | a053e5dbc64f198cb5a1a578ec0aa17bab9ce5ae (patch) | |
tree | 8bc59b21bbeac6a15ebb42ebe3a2425d31e472b8 /app/assets/javascripts/boards/components | |
parent | a3c2b39d10fc3cdf4d50bd1d1157814fc10feeee (diff) | |
download | gitlab-ce-a053e5dbc64f198cb5a1a578ec0aa17bab9ce5ae.tar.gz |
Resolve "Add missing i18n strings to issue boards."
Diffstat (limited to 'app/assets/javascripts/boards/components')
-rw-r--r-- | app/assets/javascripts/boards/components/board_sidebar.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/app/assets/javascripts/boards/components/board_sidebar.js b/app/assets/javascripts/boards/components/board_sidebar.js index a9102743bf9..109e60cbde2 100644 --- a/app/assets/javascripts/boards/components/board_sidebar.js +++ b/app/assets/javascripts/boards/components/board_sidebar.js @@ -3,7 +3,7 @@ import $ from 'jquery'; import Vue from 'vue'; import Flash from '../../flash'; -import { __ } from '../../locale'; +import { sprintf, __ } from '../../locale'; import Sidebar from '../../right_sidebar'; import eventHub from '../../sidebar/event_hub'; import AssigneeTitle from '../../sidebar/components/assignees/assignee_title.vue'; @@ -55,8 +55,10 @@ gl.issueBoards.BoardSidebar = Vue.extend({ return this.issue.labels && this.issue.labels.length; }, labelDropdownTitle() { - return this.hasLabels ? - `${this.issue.labels[0].title} ${this.issue.labels.length - 1}+ more` : 'Label'; + return this.hasLabels ? sprintf(__('%{firstLabel} +%{labelCount} more'), { + firstLabel: this.issue.labels[0].title, + labelCount: this.issue.labels.length - 1 + }) : __('Label'); }, selectedLabels() { return this.hasLabels ? this.issue.labels.map(l => l.title).join(',') : ''; |