File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
client/modules/IDE/components
translations/locales/en-US Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -64,10 +64,12 @@ const VersionIndicator = () => {
64
64
const label = t ( 'Toolbar.LibraryVersion' ) ;
65
65
const currentVersion =
66
66
versionInfo ?. version || t ( 'Toolbar.CustomLibraryVersion' ) ;
67
- let ariaLabel = `${ label } : ${ currentVersion } ` ;
68
- if ( showNotificationDot ) {
69
- ariaLabel = `${ t ( 'Toolbar.Notification' ) } - ${ ariaLabel } ` ;
70
- }
67
+ const description = t (
68
+ showNotificationDot
69
+ ? 'Toolbar.NewVersionPickerARIA'
70
+ : 'Toolbar.VersionPickerARIA'
71
+ ) ;
72
+ const ariaLabel = `${ label } : ${ currentVersion } - ${ description } ` ;
71
73
72
74
return (
73
75
< VersionPickerButton onClick = { openVersionSettings } ariaLabel = { ariaLabel } >
Original file line number Diff line number Diff line change 159
159
"By" : " by " ,
160
160
"LibraryVersion" : " p5.js version" ,
161
161
"CustomLibraryVersion" : " Custom" ,
162
- "Notification" : " New"
162
+ "VersionPickerARIA" : " Version picker" ,
163
+ "NewVersionPickerARIA" : " Version picker"
163
164
},
164
165
"Console" : {
165
166
"Title" : " Console" ,
You can’t perform that action at this time.
0 commit comments