diff options
author | Brandon Labuschagne <blabuschagne@gitlab.com> | 2019-05-07 15:00:52 +0300 |
---|---|---|
committer | Brandon Labuschagne <blabuschagne@gitlab.com> | 2019-05-23 13:26:44 +0300 |
commit | d4ed2f74e36f7a1613a148cdbec57f0ad0417a75 (patch) | |
tree | d5824500c362c43d6963e813d3390ffd6387c12c /app/assets/javascripts/usage_ping_consent.js | |
parent | f59a63115e4dada039b9bc098a50fae2589f2ece (diff) |
I18N JS files starting with u
This is one of many MRs opened in order to improve the overall
internationalisation of the GitLab codebase.
This commit only targets Vanilla JS files.
i18n documentation
https://docs.gitlab.com/ee/development/i18n/externalization.html
Diffstat (limited to 'app/assets/javascripts/usage_ping_consent.js')
-rw-r--r-- | app/assets/javascripts/usage_ping_consent.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/usage_ping_consent.js b/app/assets/javascripts/usage_ping_consent.js index d3d745a3c11..1e7a5fb19c2 100644 --- a/app/assets/javascripts/usage_ping_consent.js +++ b/app/assets/javascripts/usage_ping_consent.js @@ -2,6 +2,7 @@ import $ from 'jquery'; import axios from './lib/utils/axios_utils'; import Flash, { hideFlash } from './flash'; import { parseBoolean } from './lib/utils/common_utils'; +import { __ } from './locale'; export default () => { $('body').on('click', '.js-usage-consent-action', e => { @@ -25,7 +26,7 @@ export default () => { }) .catch(() => { hideConsentMessage(); - Flash('Something went wrong. Try again later.'); + Flash(__('Something went wrong. Try again later.')); }); }); }; |