diff options
author | Brandon Labuschagne <blabuschagne@gitlab.com> | 2019-05-03 15:50:57 +0300 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2019-05-03 15:50:57 +0300 |
commit | f947ac92f27ef8ae52202e91a305ee3c04363e21 (patch) | |
tree | 6308d8b12d5a0ae4f6d35b46df41af35e3596feb /app | |
parent | 9f8123d935679582ac4f1487e1dcb559863372cb (diff) |
Internationalisation of reports directory
This is one of many MRs opened in order to improve the overall
internationalisation of the GitLab codebase.
i18n documentation
https://docs.gitlab.com/ee/development/i18n/externalization.html
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/reports/store/utils.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/reports/store/utils.js b/app/assets/javascripts/reports/store/utils.js index 35632218269..10560d0ae8e 100644 --- a/app/assets/javascripts/reports/store/utils.js +++ b/app/assets/javascripts/reports/store/utils.js @@ -1,4 +1,4 @@ -import { sprintf, n__, s__ } from '~/locale'; +import { sprintf, n__, s__, __ } from '~/locale'; import { STATUS_FAILED, STATUS_SUCCESS, @@ -38,12 +38,12 @@ const textBuilder = results => { export const summaryTextBuilder = (name = '', results = {}) => { const resultsString = textBuilder(results); - return `${name} contained ${resultsString}`; + return sprintf(__('%{name} contained %{resultsString}'), { name, resultsString }); }; export const reportTextBuilder = (name = '', results = {}) => { const resultsString = textBuilder(results); - return `${name} found ${resultsString}`; + return sprintf(__('%{name} found %{resultsString}'), { name, resultsString }); }; export const statusIcon = status => { |