diff options
author | Brandon Labuschagne <blabuschagne@gitlab.com> | 2019-05-07 08:40:58 +0200 |
---|---|---|
committer | Brandon Labuschagne <blabuschagne@gitlab.com> | 2019-05-21 11:27:11 +0200 |
commit | 29a47bfc27597c8fb5aa2cdeedd026a8af85f083 (patch) | |
tree | 2017b07f61c9a32f4619709ead45e8411fb38102 /app/assets/javascripts/subscription_select.js | |
parent | a5f810c9b18d63778a9cd5dc1d2c288e68b1497a (diff) | |
download | gitlab-ce-29a47bfc27597c8fb5aa2cdeedd026a8af85f083.tar.gz |
I18N JS files starting with sjs-i18n-s
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/subscription_select.js')
-rw-r--r-- | app/assets/javascripts/subscription_select.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/subscription_select.js b/app/assets/javascripts/subscription_select.js index ebe1c6dd02d..7206bbd7109 100644 --- a/app/assets/javascripts/subscription_select.js +++ b/app/assets/javascripts/subscription_select.js @@ -1,4 +1,5 @@ import $ from 'jquery'; +import { __ } from './locale'; export default function subscriptionSelect() { $('.js-subscription-event').each((i, element) => { @@ -8,7 +9,7 @@ export default function subscriptionSelect() { selectable: true, fieldName, toggleLabel(selected, el, instance) { - let label = 'Subscription'; + let label = __('Subscription'); const $item = instance.dropdown.find('.is-active'); if ($item.length) { label = $item.text(); |