@@ -130,11 +130,11 @@ export type PerseusStrings = {
130
130
tan : string ;
131
131
simulationLoadFail : string ;
132
132
simulationLocaleWarning : string ;
133
+ selectAnAnswer : string ;
134
+ // The following strings are used for interactive graph SR descriptions.
133
135
addPoint : string ;
134
136
removePoint : string ;
135
137
graphKeyboardPrompt : string ;
136
- selectAnAnswer : string ;
137
- // The following strings are used for interactive graph SR descriptions.
138
138
closePolygon : string ;
139
139
openPolygon : string ;
140
140
srPointAtCoordinates : ( {
@@ -148,23 +148,23 @@ export type PerseusStrings = {
148
148
} ) => string ;
149
149
srInteractiveElements : ( { elements} : { elements : string } ) => string ;
150
150
srNoInteractiveElements : string ;
151
- circleGraphAriaLabel : string ;
152
- circleShapeAriaLabel : ( {
151
+ srCircleGraph : string ;
152
+ srCircleShape : ( {
153
153
centerX,
154
154
centerY,
155
155
} : {
156
- centerX : number ;
157
- centerY : number ;
156
+ centerX : string ;
157
+ centerY : string ;
158
158
} ) => string ;
159
- circleRadiusPointAriaLabel : ( {
159
+ srCircleRadiusPoint : ( {
160
160
radiusPointX,
161
161
radiusPointY,
162
162
} : {
163
- radiusPointX : number ;
164
- radiusPointY : number ;
163
+ radiusPointX : string ;
164
+ radiusPointY : string ;
165
165
} ) => string ;
166
- circleRadiusDescription : ( { radius} : { radius : number } ) => string ;
167
- circleOuterPointsDescription : ( {
166
+ srCircleRadius : ( { radius} : { radius : number } ) => string ;
167
+ srCircleOuterPoints : ( {
168
168
point1X,
169
169
point1Y,
170
170
point2X,
@@ -174,14 +174,14 @@ export type PerseusStrings = {
174
174
point4X,
175
175
point4Y,
176
176
} : {
177
- point1X : number ;
178
- point1Y : number ;
179
- point2X : number ;
180
- point2Y : number ;
181
- point3X : number ;
182
- point3Y : number ;
183
- point4X : number ;
184
- point4Y : number ;
177
+ point1X : string ;
178
+ point1Y : string ;
179
+ point2X : string ;
180
+ point2Y : string ;
181
+ point3X : string ;
182
+ point3Y : string ;
183
+ point4X : string ;
184
+ point4Y : string ;
185
185
} ) => string ;
186
186
// The above strings are used for interactive graph SR descriptions.
187
187
} ;
@@ -356,15 +356,16 @@ export const strings: {
356
356
simulationLoadFail : "Sorry, this simulation cannot load." ,
357
357
simulationLocaleWarning :
358
358
"Sorry, this simulation isn't available in your language." ,
359
+ selectAnAnswer : "Select an answer" ,
360
+
361
+ // The following strings are used for interactive graph SR descriptions.
359
362
addPoint : "Add Point" ,
360
363
removePoint : "Remove Point" ,
361
364
graphKeyboardPrompt : "Press Shift + Enter to interact with the graph" ,
362
365
closePolygon : "Close shape" ,
363
366
openPolygon : "Re-open shape" ,
364
367
srInteractiveElements : "Interactive elements: %(elements)s" ,
365
368
srNoInteractiveElements : "No interactive elements" ,
366
- selectAnAnswer : "Select an answer" ,
367
-
368
369
// TODO(LEMS-2660): The following strings are ones that will need
369
370
// translation tickets after all interactive graph SR strings have
370
371
// been finalized. Remove this comment after the tickets have been
@@ -373,27 +374,27 @@ export const strings: {
373
374
context : "Screenreader-accessible description of a point on a graph" ,
374
375
message : "Point %(num)s at %(x)s comma %(y)s" ,
375
376
} ,
376
- circleGraphAriaLabel : {
377
+ srCircleGraph : {
377
378
context : "Aria label for the circle graph as a whole." ,
378
379
message : "A circle on a coordinate plane." ,
379
380
} ,
380
- circleShapeAriaLabel : {
381
+ srCircleShape : {
381
382
context :
382
383
"Aria label for the interactive circle shape in a circle graph." ,
383
384
message :
384
385
"Circle. The center point is at %(centerX)s comma %(centerY)s." ,
385
386
} ,
386
- circleRadiusPointAriaLabel : {
387
+ srCircleRadiusPoint : {
387
388
context :
388
389
"Aria label for the interactive point that sits on the edge of the circle in a circle graph. Moving this point updates the radius of the circle" ,
389
390
message : "Radius point at %(radiusPointX)s comma %(radiusPointY)s." ,
390
391
} ,
391
- circleRadiusDescription : {
392
+ srCircleRadius : {
392
393
context :
393
394
"Screenreader-only description of the radius of a circle in a circle graph." ,
394
395
message : "Circle radius is %(radius)s." ,
395
396
} ,
396
- circleOuterPointsDescription : {
397
+ srCircleOuterPoints : {
397
398
context :
398
399
"Screenreader-only description of key points on a circle in a circle graph." ,
399
400
message :
@@ -556,24 +557,24 @@ export const mockStrings: PerseusStrings = {
556
557
simulationLoadFail : "Sorry, this simulation cannot load." ,
557
558
simulationLocaleWarning :
558
559
"Sorry, this simulation isn't available in your language." ,
559
- addPoint : "Add Point" ,
560
- removePoint : "Remove Point" ,
561
- graphKeyboardPrompt : "Press Shift + Enter to interact with the graph" ,
562
560
selectAnAnswer : "Select an answer" ,
563
561
564
562
// The following strings are used for interactive graph SR descriptions.
563
+ graphKeyboardPrompt : "Press Shift + Enter to interact with the graph" ,
564
+ addPoint : "Add Point" ,
565
+ removePoint : "Remove Point" ,
565
566
closePolygon : "Close shape" ,
566
567
openPolygon : "Re-open shape" ,
567
568
srPointAtCoordinates : ( { num, x, y} ) => `Point ${ num } at ${ x } comma ${ y } ` ,
568
569
srInteractiveElements : ( { elements} ) => `Interactive elements: ${ elements } ` ,
569
570
srNoInteractiveElements : "No interactive elements" ,
570
- circleGraphAriaLabel : "A circle on a coordinate plane." ,
571
- circleShapeAriaLabel : ( { centerX, centerY} ) =>
571
+ srCircleGraph : "A circle on a coordinate plane." ,
572
+ srCircleShape : ( { centerX, centerY} ) =>
572
573
`Circle. The center point is at ${ centerX } comma ${ centerY } .` ,
573
- circleRadiusPointAriaLabel : ( { radiusPointX, radiusPointY} ) =>
574
+ srCircleRadiusPoint : ( { radiusPointX, radiusPointY} ) =>
574
575
`Radius point at ${ radiusPointX } comma ${ radiusPointY } .` ,
575
- circleRadiusDescription : ( { radius} ) => `Circle radius is ${ radius } .` ,
576
- circleOuterPointsDescription : ( {
576
+ srCircleRadius : ( { radius} ) => `Circle radius is ${ radius } .` ,
577
+ srCircleOuterPoints : ( {
577
578
point1X,
578
579
point1Y,
579
580
point2X,
0 commit comments