summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/behaviors/quick_submit.js
diff options
context:
space:
mode:
authorBrandon Labuschagne <blabuschagne@gitlab.com>2019-04-02 15:01:04 +0200
committerBrandon Labuschagne <blabuschagne@gitlab.com>2019-04-25 08:34:42 +0200
commit3a871c22e9630fbe2e04f6d201c4e29731d380a9 (patch)
treef7750eda52d95b95d61c6df75c14223bcd3fe4a6 /app/assets/javascripts/behaviors/quick_submit.js
parentc45bc6d094863caf425c10fa6ff334629b549689 (diff)
downloadgitlab-ce-3a871c22e9630fbe2e04f6d201c4e29731d380a9.tar.gz
Internationalisation of behaviors directoryjs-i18n-behaviors
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/assets/javascripts/behaviors/quick_submit.js')
-rw-r--r--app/assets/javascripts/behaviors/quick_submit.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/assets/javascripts/behaviors/quick_submit.js b/app/assets/javascripts/behaviors/quick_submit.js
index c1ea67f9293..530ab0bd4d9 100644
--- a/app/assets/javascripts/behaviors/quick_submit.js
+++ b/app/assets/javascripts/behaviors/quick_submit.js
@@ -1,6 +1,7 @@
import $ from 'jquery';
import '../commons/bootstrap';
import { isInIssuePage } from '../lib/utils/common_utils';
+import { __ } from '~/locale';
// Quick Submit behavior
//
@@ -65,7 +66,9 @@ $(document).on(
}
const $this = $(this);
- const title = isMac() ? 'You can also press &#8984;-Enter' : 'You can also press Ctrl-Enter';
+ const title = isMac()
+ ? __('You can also press &#8984;-Enter')
+ : __('You can also press Ctrl-Enter');
$this.tooltip({
container: 'body',