debian-mirror-gitlab/app/assets/javascripts/jira_connect/branches/constants.js

29 lines
1.2 KiB
JavaScript
Raw Normal View History

2021-10-27 15:23:28 +05:30
import { __, s__ } from '~/locale';
2021-09-30 23:02:18 +05:30
export const BRANCHES_PER_PAGE = 20;
export const PROJECTS_PER_PAGE = 20;
2021-10-27 15:23:28 +05:30
export const I18N_NEW_BRANCH_LABEL_DROPDOWN = __('Project');
export const I18N_NEW_BRANCH_LABEL_BRANCH = __('Branch name');
export const I18N_NEW_BRANCH_LABEL_SOURCE = __('Source branch');
export const I18N_NEW_BRANCH_SUBMIT_BUTTON_TEXT = __('Create branch');
export const CREATE_BRANCH_ERROR_GENERIC = s__(
'JiraConnect|Failed to create branch. Please try again.',
);
export const CREATE_BRANCH_ERROR_WITH_CONTEXT = s__('JiraConnect|Failed to create branch.');
export const I18N_PAGE_TITLE_WITH_BRANCH_NAME = s__(
'JiraConnect|Create branch for Jira issue %{jiraIssue}',
);
export const I18N_PAGE_TITLE_DEFAULT = __('New branch');
export const I18N_NEW_BRANCH_SUCCESS_TITLE = s__(
'JiraConnect|New branch was successfully created.',
);
export const I18N_NEW_BRANCH_SUCCESS_MESSAGE = s__(
'JiraConnect|You can now close this window and return to Jira.',
);
2022-04-04 11:22:00 +05:30
export const I18N_NEW_BRANCH_PERMISSION_ALERT = s__(
"JiraConnect|You don't have permission to create branches for this project. Select a different project or contact the project owner for access. %{linkStart}Learn more.%{linkEnd}",
);