summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/notifications/constants.js
blob: 4f875977d78271cd9b85542ca477b20f865c73c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import { __, s__ } from '~/locale';

export const CUSTOM_LEVEL = 'custom';

export const i18n = {
  notificationTitles: {
    participating: s__('NotificationLevel|Participate'),
    mention: s__('NotificationLevel|On mention'),
    watch: s__('NotificationLevel|Watch'),
    global: s__('NotificationLevel|Global'),
    disabled: s__('NotificationLevel|Disabled'),
    custom: s__('NotificationLevel|Custom'),
  },
  notificationTooltipTitle: __('Notification setting - %{notification_title}'),
  notificationDescriptions: {
    participating: __('You will only receive notifications for threads you have participated in'),
    mention: __('You will receive notifications only for comments in which you were @mentioned'),
    watch: __('You will receive notifications for any activity'),
    disabled: __('You will not get any notifications via email'),
    global: __('Use your global notification setting'),
    custom: __('You will only receive notifications for the events you choose'),
    owner_disabled: __('Notifications have been disabled by the project or group owner'),
  },
  updateNotificationLevelErrorMessage: __(
    'An error occurred while updating the notification settings. Please try again.',
  ),
  loadNotificationLevelErrorMessage: __(
    'An error occurred while loading the notification settings. Please try again.',
  ),
  customNotificationsModal: {
    title: __('Custom notification events'),
    bodyTitle: __('Notification events'),
    bodyMessage: __(
      'Custom notification levels are the same as participating levels. With custom notification levels you will also receive notifications for select events. To find out more, check out %{notificationLinkStart} notification emails%{notificationLinkEnd}.',
    ),
  },
  eventNames: {
    change_reviewer_merge_request: s__('NotificationEvent|Change reviewer merge request'),
    close_issue: s__('NotificationEvent|Close issue'),
    close_merge_request: s__('NotificationEvent|Close merge request'),
    failed_pipeline: s__('NotificationEvent|Failed pipeline'),
    fixed_pipeline: s__('NotificationEvent|Fixed pipeline'),
    issue_due: s__('NotificationEvent|Issue due'),
    merge_merge_request: s__('NotificationEvent|Merge merge request'),
    moved_project: s__('NotificationEvent|Moved project'),
    new_epic: s__('NotificationEvent|New epic'),
    new_issue: s__('NotificationEvent|New issue'),
    new_merge_request: s__('NotificationEvent|New merge request'),
    new_note: s__('NotificationEvent|New note'),
    new_release: s__('NotificationEvent|New release'),
    push_to_merge_request: s__('NotificationEvent|Push to merge request'),
    reassign_issue: s__('NotificationEvent|Reassign issue'),
    reassign_merge_request: s__('NotificationEvent|Reassign merge request'),
    reopen_issue: s__('NotificationEvent|Reopen issue'),
    reopen_merge_request: s__('NotificationEvent|Reopen merge request'),
    merge_when_pipeline_succeeds: s__('NotificationEvent|Merge when pipeline succeeds'),
    success_pipeline: s__('NotificationEvent|Successful pipeline'),
  },
};