2021-01-29 16:09:34 -05:00
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 : _ _ (
2021-02-19 07:11:06 -05:00
'An error occurred while updating the notification settings. Please try again.' ,
2021-01-29 16:09:34 -05:00
) ,
2021-02-05 10:09:28 -05:00
loadNotificationLevelErrorMessage : _ _ (
2021-02-19 07:11:06 -05:00
'An error occurred while loading the notification settings. Please try again.' ,
2021-02-05 10:09:28 -05:00
) ,
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' ) ,
2021-03-01 04:11:01 -05:00
merge _when _pipeline _succeeds : s _ _ ( 'NotificationEvent|Merge when pipeline succeeds' ) ,
2021-02-05 10:09:28 -05:00
success _pipeline : s _ _ ( 'NotificationEvent|Successful pipeline' ) ,
} ,
2021-01-29 16:09:34 -05:00
} ;