Commit 59fe5c1c authored by Phil Hughes's avatar Phil Hughes

Merge branch 'js-i18n-import-projects' into 'master'

Internationalisation of import_projects directory

See merge request gitlab-org/gitlab-ce!27681
parents 729bac5e a5ab4658
import { __ } from '~/locale';
export const namespaceSelectOptions = state => { export const namespaceSelectOptions = state => {
const serializedNamespaces = state.namespaces.map(({ fullPath }) => ({ const serializedNamespaces = state.namespaces.map(({ fullPath }) => ({
id: fullPath, id: fullPath,
...@@ -5,9 +7,9 @@ export const namespaceSelectOptions = state => { ...@@ -5,9 +7,9 @@ export const namespaceSelectOptions = state => {
})); }));
return [ return [
{ text: 'Groups', children: serializedNamespaces }, { text: __('Groups'), children: serializedNamespaces },
{ {
text: 'Users', text: __('Users'),
children: [{ id: state.defaultTargetNamespace, text: state.defaultTargetNamespace }], children: [{ id: state.defaultTargetNamespace, text: state.defaultTargetNamespace }],
}, },
]; ];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment