@@ -136,6 +136,8 @@ function exportComparisonDataAsMarkdown() {
136136 copy (markdown )
137137}
138138
139+ const { announce } = useCommandPalette ()
140+
139141useCommandPaletteContextCommands (
140142 computed ((): CommandPaletteContextCommandInput [] => {
141143 const commands: CommandPaletteContextCommandInput [] = [
@@ -147,6 +149,7 @@ useCommandPaletteContextCommands(
147149 iconClass: ' i-lucide:list-checks' ,
148150 action : () => {
149151 selectAll ()
152+ announce ($t (' command_palette.announcements.facets_all_selected' ))
150153 },
151154 },
152155 {
@@ -157,6 +160,7 @@ useCommandPaletteContextCommands(
157160 iconClass: ' i-lucide:list-x' ,
158161 action : () => {
159162 deselectAll ()
163+ announce ($t (' command_palette.announcements.facets_all_deselected' ))
160164 },
161165 },
162166 ]
@@ -170,6 +174,7 @@ useCommandPaletteContextCommands(
170174 iconClass: ' i-lucide:copy' ,
171175 action : () => {
172176 exportComparisonDataAsMarkdown ()
177+ announce ($t (' command_palette.announcements.copied_to_clipboard' ))
173178 },
174179 })
175180 }
@@ -185,6 +190,11 @@ useCommandPaletteContextCommands(
185190 active: comparisonView .value === ' table' ,
186191 action : () => {
187192 comparisonView .value = ' table'
193+ announce (
194+ $t (' command_palette.announcements.view_switched' , {
195+ view: $t (' compare.packages.table_view' ),
196+ }),
197+ )
188198 },
189199 },
190200 {
@@ -196,6 +206,11 @@ useCommandPaletteContextCommands(
196206 active: comparisonView .value === ' charts' ,
197207 action : () => {
198208 comparisonView .value = ' charts'
209+ announce (
210+ $t (' command_palette.announcements.view_switched' , {
211+ view: $t (' compare.packages.charts_view' ),
212+ }),
213+ )
199214 },
200215 },
201216 )
0 commit comments