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
This commit is contained in:
Brandon Labuschagne 2019-05-21 10:34:37 +00:00 committed by Phil Hughes
parent 729bac5e16
commit a5ab465835
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 }],
},
];