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:
parent
729bac5e16
commit
a5ab465835
1 changed files with 4 additions and 2 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
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 => {
|
||||||
}));
|
}));
|
||||||
|
|
||||||
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 }],
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue