diff options
author | Brandon Labuschagne <blabuschagne@gitlab.com> | 2019-05-02 16:36:20 +0200 |
---|---|---|
committer | Brandon Labuschagne <blabuschagne@gitlab.com> | 2019-05-16 17:35:00 +0200 |
commit | 0b38e0a24792650b58ed0ad2a5e9ea8f95b7960e (patch) | |
tree | 3adab1e56a76ea1cc257db10e3ee5f62c7552ba0 /app/assets/javascripts/groups_select.js | |
parent | 112193e8a6dea1a42e234e06244b1a20dd7d711b (diff) | |
download | gitlab-ce-0b38e0a24792650b58ed0ad2a5e9ea8f95b7960e.tar.gz |
I18N of JS files starting with gjs-i18n-g-files
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/groups_select.js')
-rw-r--r-- | app/assets/javascripts/groups_select.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/groups_select.js b/app/assets/javascripts/groups_select.js index bdadbb1bb2a..a1263d1cdab 100644 --- a/app/assets/javascripts/groups_select.js +++ b/app/assets/javascripts/groups_select.js @@ -2,6 +2,7 @@ import $ from 'jquery'; import axios from './lib/utils/axios_utils'; import Api from './api'; import { normalizeHeaders } from './lib/utils/common_utils'; +import { __ } from '~/locale'; export default function groupsSelect() { import(/* webpackChunkName: 'select2' */ 'select2/select2') @@ -18,7 +19,7 @@ export default function groupsSelect() { : Api.groupsPath; $select.select2({ - placeholder: 'Search for a group', + placeholder: __('Search for a group'), allowClear: $select.hasClass('allowClear'), multiple: $select.hasClass('multiselect'), minimumInputLength: 0, |