Skip to content

Commit 7994db4

Browse files
authored
chore: Add ARIA-related messages for samples (#9983)
1 parent 3c2b8b4 commit 7994db4

3 files changed

Lines changed: 43 additions & 3 deletions

File tree

packages/blockly/msg/json/en.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"@metadata": {
33
"author": "Ellen Spertus <ellen.spertus@gmail.com>",
4-
"lastupdated": "2026-05-26 18:03:57.831506",
4+
"lastupdated": "2026-06-12 08:24:49.493474",
55
"locale": "en",
66
"messagedocumentation" : "qqq"
77
},
@@ -615,5 +615,13 @@
615615
"CURRENT_BLOCK_ANNOUNCEMENT": "Current block: %1",
616616
"PARENT_BLOCKS_ANNOUNCEMENT": "Parent blocks: %1",
617617
"NO_PARENT_ANNOUNCEMENT": "Current block has no parent",
618-
"SCREENREADER_HINT": "Use the arrow keys to navigate. Press %1 to toggle screenreader accessibility mode."
618+
"SCREENREADER_HINT": "Use the arrow keys to navigate. Press %1 to toggle screenreader accessibility mode.",
619+
"ARIA_LABEL_ADD_ELSE_IF": "Add else if",
620+
"ARIA_LABEL_REMOVE_ELSE_IF": "Remove else if",
621+
"ARIA_TYPE_FIELD_ANGLE": "angle",
622+
"ARIA_LABEL_FIELD_ANGLE": "%1 degrees",
623+
"ARIA_TYPE_FIELD_DATE": "date",
624+
"ARIA_TYPE_FIELD_COLOUR": "color",
625+
"ARIA_TYPE_FIELD_BITMAP": "pixel image",
626+
"ARIA_TYPE_FIELD_GRID": "grid dropdown"
619627
}

packages/blockly/msg/json/qqq.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,5 +609,13 @@
609609
"CURRENT_BLOCK_ANNOUNCEMENT": "Screenreader announcement providing context about the currently focused block.",
610610
"PARENT_BLOCKS_ANNOUNCEMENT": "Screenreader announcement providing context about the currently focused block's parents.",
611611
"NO_PARENT_ANNOUNCEMENT": "Screenreader announcement informing users that the currently focused block has no parent blocks.",
612-
"SCREENREADER_HINT": "Message announced when screenreader optimization mode is turned off."
612+
"SCREENREADER_HINT": "Message announced when screenreader optimization mode is turned off.",
613+
"ARIA_LABEL_ADD_ELSE_IF": "ARIA label for button that adds an else if clause to a block.",
614+
"ARIA_LABEL_REMOVE_ELSE_IF": "ARIA label for button that removes an else if clause from a block.",
615+
"ARIA_TYPE_FIELD_ANGLE": "ARIA type name for the angle field.",
616+
"ARIA_LABEL_FIELD_ANGLE": "ARIA label for the angle field's value.",
617+
"ARIA_TYPE_FIELD_DATE": "ARIA type name for the date field.",
618+
"ARIA_TYPE_FIELD_COLOUR": "ARIA type name for the colour field.",
619+
"ARIA_TYPE_FIELD_BITMAP": "ARIA type name for the bitmap field.",
620+
"ARIA_TYPE_FIELD_GRID": "ARIA type name for the grid field."
613621
}

packages/blockly/msg/messages.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2356,3 +2356,27 @@ Blockly.Msg.NO_PARENT_ANNOUNCEMENT = 'Current block has no parent';
23562356
/** @type {string} */
23572357
/// Message announced when screenreader optimization mode is turned off.
23582358
Blockly.Msg.SCREENREADER_HINT = 'Use the arrow keys to navigate. Press %1 to toggle screenreader accessibility mode.';
2359+
/** @type {string} */
2360+
/// ARIA label for button that adds an else if clause to a block.
2361+
Blockly.Msg.ARIA_LABEL_ADD_ELSE_IF = 'Add else if';
2362+
/** @type {string} */
2363+
/// ARIA label for button that removes an else if clause from a block.
2364+
Blockly.Msg.ARIA_LABEL_REMOVE_ELSE_IF = 'Remove else if';
2365+
/** @type {string} */
2366+
/// ARIA type name for the angle field.
2367+
Blockly.Msg.ARIA_TYPE_FIELD_ANGLE = 'angle';
2368+
/** @type {string} */
2369+
/// ARIA label for the angle field's value.
2370+
Blockly.Msg.ARIA_LABEL_FIELD_ANGLE = '%1 degrees';
2371+
/** @type {string} */
2372+
/// ARIA type name for the date field.
2373+
Blockly.Msg.ARIA_TYPE_FIELD_DATE = 'date';
2374+
/** @type {string} */
2375+
/// ARIA type name for the colour field.
2376+
Blockly.Msg.ARIA_TYPE_FIELD_COLOUR = 'color';
2377+
/** @type {string} */
2378+
/// ARIA type name for the bitmap field.
2379+
Blockly.Msg.ARIA_TYPE_FIELD_BITMAP = 'pixel image';
2380+
/** @type {string} */
2381+
/// ARIA type name for the grid field.
2382+
Blockly.Msg.ARIA_TYPE_FIELD_GRID = 'grid dropdown';

0 commit comments

Comments
 (0)