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

Internationalisation of import_projects directory

See merge request gitlab-org/gitlab-ce!27681
This commit is contained in:
Phil Hughes 2019-05-21 10:34:38 +00:00
commit 59fe5c1cbc
1 changed files with 4 additions and 2 deletions

View File

@ -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 }],
},
];