Skip to content

Commit 0d9430a

Browse files
committed
Update aria format
1 parent 2b2fb95 commit 0d9430a

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

client/modules/IDE/components/VersionIndicator.jsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,12 @@ const VersionIndicator = () => {
6464
const label = t('Toolbar.LibraryVersion');
6565
const currentVersion =
6666
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}`;
7173

7274
return (
7375
<VersionPickerButton onClick={openVersionSettings} ariaLabel={ariaLabel}>

translations/locales/en-US/translations.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,8 @@
159159
"By": " by ",
160160
"LibraryVersion": "p5.js version",
161161
"CustomLibraryVersion": "Custom",
162-
"Notification": "New"
162+
"VersionPickerARIA": "Version picker",
163+
"NewVersionPickerARIA": "Version picker"
163164
},
164165
"Console": {
165166
"Title": "Console",

0 commit comments

Comments
 (0)