diff options
author | Brandon Labuschagne <blabuschagne@gitlab.com> | 2019-05-02 16:49:16 +0200 |
---|---|---|
committer | Brandon Labuschagne <blabuschagne@gitlab.com> | 2019-05-07 19:27:52 +0200 |
commit | ed8dc177eda6d1e1f7d89f307e33e678ec47569f (patch) | |
tree | 3e0fa4bf9abdcb6076e5e67e9bd71d7e49e5045d /app/assets/javascripts/issuable_index.js | |
parent | f7bba29cb573e74b56aba7882048aac7de0d6868 (diff) | |
download | gitlab-ce-ed8dc177eda6d1e1f7d89f307e33e678ec47569f.tar.gz |
I18N JS files starting with ijs-i18n-i
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/issuable_index.js')
-rw-r--r-- | app/assets/javascripts/issuable_index.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/issuable_index.js b/app/assets/javascripts/issuable_index.js index ffcbd7cf28c..f51c7a2f990 100644 --- a/app/assets/javascripts/issuable_index.js +++ b/app/assets/javascripts/issuable_index.js @@ -1,7 +1,7 @@ import $ from 'jquery'; import axios from './lib/utils/axios_utils'; import flash from './flash'; -import { __ } from './locale'; +import { s__, __ } from './locale'; import IssuableBulkUpdateSidebar from './issuable_bulk_update_sidebar'; import IssuableBulkUpdateActions from './issuable_bulk_update_actions'; @@ -29,7 +29,7 @@ export default class IssuableIndex { $resetToken.on('click', e => { e.preventDefault(); - $resetToken.text('resetting...'); + $resetToken.text(s__('EmailToken|resetting...')); axios .put($resetToken.attr('href')) @@ -38,12 +38,12 @@ export default class IssuableIndex { .val(data.new_address) .focus(); - $resetToken.text('reset it'); + $resetToken.text(s__('EmailToken|reset it')); }) .catch(() => { flash(__('There was an error when reseting email token.')); - $resetToken.text('reset it'); + $resetToken.text(s__('EmailToken|reset it')); }); }); } |