diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-24 01:34:10 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-09-24 01:34:10 +0300 |
commit | 96855c4214715fe718c02a308ddd0e4a3265b5d1 (patch) | |
tree | 1dd318ede0a420effd7d0eb41a980c4adc24fae5 /app/assets/javascripts/ide | |
parent | 5248069bd6ee923a76047fa74dee46155c40fa2b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/ide')
-rw-r--r-- | app/assets/javascripts/ide/stores/modules/commit/getters.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/app/assets/javascripts/ide/stores/modules/commit/getters.js b/app/assets/javascripts/ide/stores/modules/commit/getters.js index f5e367e16f5..05e3601f381 100644 --- a/app/assets/javascripts/ide/stores/modules/commit/getters.js +++ b/app/assets/javascripts/ide/stores/modules/commit/getters.js @@ -1,14 +1,13 @@ -import { sprintf, n__, __ } from '../../../../locale'; +import { __ } from '../../../../locale'; import { COMMIT_TO_NEW_BRANCH } from './constants'; const BRANCH_SUFFIX_COUNT = 5; const createTranslatedTextForFiles = (files, text) => { if (!files.length) return null; - return sprintf(n__('%{text} %{files}', '%{text} %{files} files', files.length), { - files: files.reduce((acc, val) => acc.concat(val.path), []).join(', '), - text, - }); + const filesPart = files.reduce((acc, val) => acc.concat(val.path), []).join(', '); + + return `${text} ${filesPart}`; }; export const discardDraftButtonDisabled = (state) => |