@@ -29,12 +29,13 @@ export type TNotificationTab = ENotificationTab.ALL | ENotificationTab.MENTIONS;
2929
3030export const NOTIFICATION_TABS = [
3131 {
32- label : "All " ,
32+ i18n_label : "notification.tabs.all " ,
3333 value : ENotificationTab . ALL ,
34- count : ( unReadNotification : TUnreadNotificationsCount ) => unReadNotification ?. total_unread_notifications_count || 0 ,
34+ count : ( unReadNotification : TUnreadNotificationsCount ) =>
35+ unReadNotification ?. total_unread_notifications_count || 0 ,
3536 } ,
3637 {
37- label : "Mentions " ,
38+ i18n_label : "notification.tabs.mentions " ,
3839 value : ENotificationTab . MENTIONS ,
3940 count : ( unReadNotification : TUnreadNotificationsCount ) =>
4041 unReadNotification ?. mention_unread_notifications_count || 0 ,
@@ -43,63 +44,63 @@ export const NOTIFICATION_TABS = [
4344
4445export const FILTER_TYPE_OPTIONS = [
4546 {
46- label : "Assigned to me " ,
47+ i18n_label : "notification.filter_type_options.assigned_to_me " ,
4748 value : ENotificationFilterType . ASSIGNED ,
4849 } ,
4950 {
50- label : "Created by me " ,
51+ i18n_label : "notification.filter_type_options.created_by_me " ,
5152 value : ENotificationFilterType . CREATED ,
5253 } ,
5354 {
54- label : "Subscribed by me " ,
55+ i18n_label : "notification.filter_type_options.subscribed_by_me " ,
5556 value : ENotificationFilterType . SUBSCRIBED ,
5657 } ,
5758] ;
5859
5960export const NOTIFICATION_SNOOZE_OPTIONS = [
6061 {
6162 key : "1_day" ,
62- label : "1 day " ,
63+ i18n_label : "notification.snooze_options.1_day " ,
6364 value : ( ) => {
6465 const date = new Date ( ) ;
6566 return new Date ( date . getTime ( ) + 24 * 60 * 60 * 1000 ) ;
6667 } ,
6768 } ,
6869 {
6970 key : "3_days" ,
70- label : "3 days " ,
71+ i18n_label : "notification.snooze_options.3_days " ,
7172 value : ( ) => {
7273 const date = new Date ( ) ;
7374 return new Date ( date . getTime ( ) + 3 * 24 * 60 * 60 * 1000 ) ;
7475 } ,
7576 } ,
7677 {
7778 key : "5_days" ,
78- label : "5 days " ,
79+ i18n_label : "notification.snooze_options.5_days " ,
7980 value : ( ) => {
8081 const date = new Date ( ) ;
8182 return new Date ( date . getTime ( ) + 5 * 24 * 60 * 60 * 1000 ) ;
8283 } ,
8384 } ,
8485 {
8586 key : "1_week" ,
86- label : "1 week " ,
87+ i18n_label : "notification.snooze_options.1_week " ,
8788 value : ( ) => {
8889 const date = new Date ( ) ;
8990 return new Date ( date . getTime ( ) + 7 * 24 * 60 * 60 * 1000 ) ;
9091 } ,
9192 } ,
9293 {
9394 key : "2_weeks" ,
94- label : "2 weeks " ,
95+ i18n_label : "notification.snooze_options.2_weeks " ,
9596 value : ( ) => {
9697 const date = new Date ( ) ;
9798 return new Date ( date . getTime ( ) + 14 * 24 * 60 * 60 * 1000 ) ;
9899 } ,
99100 } ,
100101 {
101102 key : "custom" ,
102- label : "Custom " ,
103+ i18n_label : "notification.snooze_options.custom " ,
103104 value : undefined ,
104105 } ,
105106] ;
0 commit comments