You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/vs/workbench/contrib/comments/browser/reactionsAction.ts
+34-15Lines changed: 34 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -66,27 +66,46 @@ export class ReactionActionViewItem extends ActionViewItem {
66
66
'This is a tooltip for an emoji button so that the current user can toggle their reaction to a comment.',
67
67
'The first arg is localized message "Toggle reaction" or empty if the user doesn\'t have permission to toggle the reaction, the second is the name of the reaction.']
68
68
},"{0}{1} reaction",toggleMessage,action.label);
69
-
}elseif(action.count===1){
70
-
returnnls.localize({
71
-
key: 'comment.reactionLabelOne',comment: [
72
-
'This is a tooltip for an emoji that is a "reaction" to a comment where the count of the reactions is 1.',
73
-
'The emoji is also a button so that the current user can also toggle their own emoji reaction.',
74
-
'The first arg is localized message "Toggle reaction" or empty if the user doesn\'t have permission to toggle the reaction, the second is the name of the reaction.']
75
-
},"{0}1 reaction with {1}",toggleMessage,action.label);
76
-
}elseif(action.count>1){
77
-
returnnls.localize({
78
-
key: 'comment.reactionLabelMany',comment: [
79
-
'This is a tooltip for an emoji that is a "reaction" to a comment where the count of the reactions is greater than 1.',
80
-
'The emoji is also a button so that the current user can also toggle their own emoji reaction.',
81
-
'The first arg is localized message "Toggle reaction" or empty if the user doesn\'t have permission to toggle the reaction, the second is number of users who have reacted with that reaction, and the third is the name of the reaction.']
82
-
},"{0}{1} reactions with {2}",toggleMessage,action.count,action.label);
'This is a tooltip for an emoji that is a "reaction" to a comment where the count of the reactions is 1.',
74
+
'The emoji is also a button so that the current user can also toggle their own emoji reaction.',
75
+
'The first arg is localized message "Toggle reaction" or empty if the user doesn\'t have permission to toggle the reaction, the second is the name of the reaction.']
76
+
},"{0}1 reaction with {1}",toggleMessage,action.label);
77
+
}elseif(action.count>1){
78
+
returnnls.localize({
79
+
key: 'comment.reactionLabelMany',comment: [
80
+
'This is a tooltip for an emoji that is a "reaction" to a comment where the count of the reactions is greater than 1.',
81
+
'The emoji is also a button so that the current user can also toggle their own emoji reaction.',
82
+
'The first arg is localized message "Toggle reaction" or empty if the user doesn\'t have permission to toggle the reaction, the second is number of users who have reacted with that reaction, and the third is the name of the reaction.']
83
+
},"{0}{1} reactions with {2}",toggleMessage,action.count,action.label);
'This is a tooltip for an emoji that is a "reaction" to a comment where the count of the reactions is less than or equal to 10.',
90
+
'The emoji is also a button so that the current user can also toggle their own emoji reaction.',
91
+
'The first arg is localized message "Toggle reaction" or empty if the user doesn\'t have permission to toggle the reaction, the second iis a list of the reactors, and the third is the name of the reaction.']
92
+
},"{0}{1} reacted with {2}",toggleMessage,action.reactors.join(', '),action.label);
'This is a tooltip for an emoji that is a "reaction" to a comment where the count of the reactions is less than or equal to 10.',
98
+
'The emoji is also a button so that the current user can also toggle their own emoji reaction.',
99
+
'The first arg is localized message "Toggle reaction" or empty if the user doesn\'t have permission to toggle the reaction, the second iis a list of the reactors, and the third is the name of the reaction.']
100
+
},"{0}{1} and {2} more reacted with {3}",toggleMessage,displayedReactors.join(', '),action.count-displayedReactors.length,action.label);
0 commit comments