diff options
author | Brandon Labuschagne <blabuschagne@gitlab.com> | 2019-04-25 17:24:42 +0200 |
---|---|---|
committer | Brandon Labuschagne <blabuschagne@gitlab.com> | 2019-05-15 18:11:41 +0200 |
commit | 7b35c2d718768d24042e1b133fb30a105a5b48d2 (patch) | |
tree | 372d3429d1d9e4730fb3ffc4b09636d43795f42b | |
parent | e5d2e7e677455ed620652e3a641718f6984a0b37 (diff) | |
download | gitlab-ce-js-i18n-import-projects.tar.gz |
Internationalisation of import_projects directoryjs-i18n-import-projects
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
-rw-r--r-- | app/assets/javascripts/import_projects/store/getters.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/assets/javascripts/import_projects/store/getters.js b/app/assets/javascripts/import_projects/store/getters.js index f03474a8404..727b80765bd 100644 --- a/app/assets/javascripts/import_projects/store/getters.js +++ b/app/assets/javascripts/import_projects/store/getters.js @@ -1,3 +1,5 @@ +import { __ } from '~/locale'; + export const namespaceSelectOptions = state => { const serializedNamespaces = state.namespaces.map(({ fullPath }) => ({ id: fullPath, @@ -5,9 +7,9 @@ export const namespaceSelectOptions = state => { })); return [ - { text: 'Groups', children: serializedNamespaces }, + { text: __('Groups'), children: serializedNamespaces }, { - text: 'Users', + text: __('Users'), children: [{ id: state.defaultTargetNamespace, text: state.defaultTargetNamespace }], }, ]; |