summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Labuschagne <blabuschagne@gitlab.com>2019-05-21 10:34:37 +0000
committerPhil Hughes <me@iamphill.com>2019-05-21 10:34:37 +0000
commita5ab4658352c643114485df19d7a2673e0e6a78e (patch)
treea61b55184876175fdf754dd2627790f22996811d
parent729bac5e1643eb47e97ed1b9e2a90868cdbb2382 (diff)
downloadgitlab-ce-a5ab4658352c643114485df19d7a2673e0e6a78e.tar.gz
Internationalisation of import_projects directory
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.js6
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 }],
},
];