diff options
author | Brandon Labuschagne <blabuschagne@gitlab.com> | 2019-04-02 15:01:04 +0200 |
---|---|---|
committer | Brandon Labuschagne <blabuschagne@gitlab.com> | 2019-04-25 08:34:42 +0200 |
commit | 3a871c22e9630fbe2e04f6d201c4e29731d380a9 (patch) | |
tree | f7750eda52d95b95d61c6df75c14223bcd3fe4a6 /app/assets/javascripts/behaviors/quick_submit.js | |
parent | c45bc6d094863caf425c10fa6ff334629b549689 (diff) | |
download | gitlab-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.js | 5 |
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 ⌘-Enter' : 'You can also press Ctrl-Enter'; + const title = isMac() + ? __('You can also press ⌘-Enter') + : __('You can also press Ctrl-Enter'); $this.tooltip({ container: 'body', |