@pie-qti/i18n 0.1.0 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/core/I18n.d.ts +3 -2
  2. package/dist/core/I18n.d.ts.map +1 -1
  3. package/dist/core/I18n.js +11 -6
  4. package/dist/core/I18n.js.map +1 -1
  5. package/dist/locales/ar-SA.d.ts +43 -0
  6. package/dist/locales/ar-SA.d.ts.map +1 -1
  7. package/dist/locales/ar-SA.js +44 -0
  8. package/dist/locales/ar-SA.js.map +1 -1
  9. package/dist/locales/en-US.d.ts +43 -0
  10. package/dist/locales/en-US.d.ts.map +1 -1
  11. package/dist/locales/en-US.js +44 -0
  12. package/dist/locales/en-US.js.map +1 -1
  13. package/dist/locales/es-ES.d.ts +43 -0
  14. package/dist/locales/es-ES.d.ts.map +1 -1
  15. package/dist/locales/es-ES.js +44 -0
  16. package/dist/locales/es-ES.js.map +1 -1
  17. package/dist/locales/fr-FR.d.ts +43 -0
  18. package/dist/locales/fr-FR.d.ts.map +1 -1
  19. package/dist/locales/fr-FR.js +44 -0
  20. package/dist/locales/fr-FR.js.map +1 -1
  21. package/dist/locales/nl-NL.d.ts +43 -0
  22. package/dist/locales/nl-NL.d.ts.map +1 -1
  23. package/dist/locales/nl-NL.js +44 -0
  24. package/dist/locales/nl-NL.js.map +1 -1
  25. package/dist/locales/ro-RO.d.ts +43 -0
  26. package/dist/locales/ro-RO.d.ts.map +1 -1
  27. package/dist/locales/ro-RO.js +44 -0
  28. package/dist/locales/ro-RO.js.map +1 -1
  29. package/dist/locales/th-TH.d.ts +43 -0
  30. package/dist/locales/th-TH.d.ts.map +1 -1
  31. package/dist/locales/th-TH.js +44 -0
  32. package/dist/locales/th-TH.js.map +1 -1
  33. package/dist/locales/zh-CN.d.ts +43 -0
  34. package/dist/locales/zh-CN.d.ts.map +1 -1
  35. package/dist/locales/zh-CN.js +44 -0
  36. package/dist/locales/zh-CN.js.map +1 -1
  37. package/dist/providers/SvelteI18nProvider.d.ts +5 -14
  38. package/dist/providers/SvelteI18nProvider.d.ts.map +1 -1
  39. package/dist/providers/SvelteI18nProvider.js +7 -47
  40. package/dist/providers/SvelteI18nProvider.js.map +1 -1
  41. package/package.json +29 -7
  42. package/.turbo/turbo-build.log +0 -264
  43. package/docs/ADVANCED_FEATURES.md +0 -556
  44. package/docs/COMPONENT_PATTERNS.md +0 -896
  45. package/docs/INTEGRATION_GUIDE.md +0 -695
  46. package/scripts/check-translations.ts +0 -289
  47. package/scripts/scan-hardcoded-strings.ts +0 -266
  48. package/src/core/I18n.ts +0 -235
  49. package/src/core/I18nProvider.ts +0 -68
  50. package/src/core/types.ts +0 -45
  51. package/src/index.ts +0 -22
  52. package/src/locales/ar-SA.ts +0 -860
  53. package/src/locales/en-US.ts +0 -828
  54. package/src/locales/es-ES.ts +0 -816
  55. package/src/locales/fr-FR.ts +0 -815
  56. package/src/locales/nl-NL.ts +0 -815
  57. package/src/locales/ro-RO.ts +0 -815
  58. package/src/locales/th-TH.ts +0 -816
  59. package/src/locales/zh-CN.ts +0 -828
  60. package/src/providers/SvelteI18nProvider.ts +0 -170
  61. package/tests/i18n.test.ts +0 -146
  62. package/tsconfig.json +0 -10
  63. package/tsconfig.tsbuildinfo +0 -1
@@ -1,828 +0,0 @@
1
- /**
2
- * English (United States) translations
3
- *
4
- * Guidelines for translators:
5
- * - Keep messages concise for UI constraints
6
- * - Use sentence case for labels, title case for buttons
7
- * - Maintain consistent terminology across interactions
8
- * - Variables in {curlyBraces} will be replaced with dynamic values
9
- */
10
- export default {
11
- common: {
12
- loading: 'Loading...',
13
- error: 'Error',
14
- success: 'Success',
15
- cancel: 'Cancel',
16
- confirm: 'Confirm',
17
- close: 'Close',
18
- save: 'Save',
19
- delete: 'Delete',
20
- edit: 'Edit',
21
- remove: 'Remove',
22
- add: 'Add',
23
- search: 'Search',
24
- filter: 'Filter',
25
- reset: 'Reset',
26
- clear: 'Clear',
27
- clearAll: 'Clear All',
28
- submit: 'Submit',
29
- next: 'Next',
30
- previous: 'Previous',
31
- back: 'Back',
32
- continue: 'Continue',
33
- finish: 'Finish',
34
- complete: 'Complete',
35
- completed: 'Completed',
36
- status: 'Status',
37
- required: 'Required',
38
- review: 'Review',
39
- selected: 'Selected',
40
- available: 'Available',
41
- showDetails: 'Show details',
42
- hideDetails: 'Hide details',
43
- details: 'Details',
44
- deselected: '{item} deselected',
45
- selectionCancelled: 'Selection cancelled',
46
- question: 'Question',
47
- of: 'of',
48
- answered: 'answered',
49
- pleaseComplete: 'Please complete the required interactions',
50
- submitting: 'Submitting...',
51
- submitAnswer: 'Submit Answer',
52
- tryAgain: 'Try Again',
53
- errorNoData: 'No interaction data provided',
54
- },
55
-
56
- units: {
57
- bytes: '{count} bytes',
58
- kilobytes: '{count} KB',
59
- megabytes: '{count} MB',
60
- seconds: '{count} seconds',
61
- minutes: '{count} minutes',
62
- hours: '{count} hours',
63
- },
64
-
65
- // Pluralization examples
66
- // Use i18n.plural('plurals.items', { count: n }) to access these
67
- plurals: {
68
- items: {
69
- one: '{count} item',
70
- other: '{count} items',
71
- },
72
- files: {
73
- one: '{count} file selected',
74
- other: '{count} files selected',
75
- },
76
- questions: {
77
- one: '{count} question',
78
- other: '{count} questions',
79
- },
80
- answers: {
81
- one: '{count} answer',
82
- other: '{count} answers',
83
- },
84
- choices: {
85
- one: '{count} choice',
86
- other: '{count} choices',
87
- },
88
- attempts: {
89
- one: '{count} attempt remaining',
90
- other: '{count} attempts remaining',
91
- },
92
- minutesRemaining: {
93
- one: '{count} minute remaining',
94
- other: '{count} minutes remaining',
95
- },
96
- secondsRemaining: {
97
- one: '{count} second remaining',
98
- other: '{count} seconds remaining',
99
- },
100
- submitAnswer: {
101
- one: 'Submit Answer',
102
- other: 'Submit Answers',
103
- },
104
- },
105
-
106
- validation: {
107
- required: 'This field is required',
108
- invalidFormat: 'Invalid format',
109
- tooShort: 'Too short (minimum {min} characters)',
110
- tooLong: 'Too long (maximum {max} characters)',
111
- outOfRange: 'Value must be between {min} and {max}',
112
- },
113
-
114
- interactions: {
115
- choice: {
116
- selectOption: 'Select an option',
117
- selectMultiple: 'Select all that apply',
118
- selected: 'Selected',
119
- notSelected: 'Not selected',
120
- correct: 'Correct',
121
- },
122
-
123
- upload: {
124
- // Shown as label above file input
125
- label: 'Upload a file',
126
- selectFile: 'Choose file',
127
- dragDrop: 'or drag and drop',
128
-
129
- // Displayed before list of allowed file types
130
- allowedTypes: 'Allowed file types:',
131
-
132
- // Displayed when file is selected
133
- selectedFile: 'Selected:',
134
-
135
- // File size display - {size} will be replaced with numeric value
136
- fileSize: '{size} bytes',
137
- fileSizeKb: '{size} KB',
138
- fileSizeMb: '{size} MB',
139
-
140
- removeFile: 'Remove file',
141
-
142
- // Error shown when file type validation fails
143
- // {types} will be replaced with comma-separated list of allowed types
144
- errorInvalidType: 'File type not allowed. Allowed: {types}',
145
- errorReadFailed: 'Failed to read file',
146
-
147
- // {max} will be replaced with maximum size in MB
148
- errorTooLarge: 'File is too large (maximum {max} MB)',
149
- unknownType: 'Unknown file type',
150
- },
151
-
152
- drawing: {
153
- label: 'Draw your response',
154
- clear: 'Clear drawing',
155
- undo: 'Undo',
156
- redo: 'Redo',
157
- strokeColor: 'Stroke color',
158
- strokeWidth: 'Stroke width',
159
- tool: 'Tool',
160
- instructions: 'Draw with your mouse or touch. Use the Clear button to reset.',
161
- canvas: 'Drawing canvas',
162
- updated: 'Drawing updated.',
163
- cleared: 'Drawing cleared.',
164
- generated: 'Generated:',
165
- },
166
-
167
- extendedText: {
168
- placeholder: 'Type your response here...',
169
- characterCount: '{count} characters',
170
- characterLimit: '{count} / {max} characters',
171
- bold: 'Bold',
172
- italic: 'Italic',
173
- underline: 'Underline',
174
- bulletList: 'Bullet list',
175
- numberedList: 'Numbered list',
176
- insertMath: 'Insert math equation',
177
- insertInlineMath: 'Insert inline math',
178
- insertBlockMath: 'Insert block math',
179
- enterMathExpression: 'Enter your math expression:',
180
- latexSource: 'LaTeX source:',
181
- keyboard: 'Keyboard',
182
- update: 'Update',
183
- insert: 'Insert',
184
- },
185
-
186
- slider: {
187
- label: 'Slider',
188
- selectedValue: 'Selected value: {value}',
189
- min: 'Minimum: {min}',
190
- max: 'Maximum: {max}',
191
- step: 'Step: {step}',
192
- ariaLabel: 'Slider value from {lowerBound} to {upperBound}',
193
- statTitle: 'Selected Value',
194
- },
195
-
196
- hottext: {
197
- selected: 'Selected:',
198
- selectText: 'Select text from the passage',
199
- clearSelection: 'Clear Selection',
200
- ariaLabel: 'Text selection interaction',
201
- },
202
-
203
- hotspot: {
204
- selected: 'Selected:',
205
- selectArea: 'Select areas on the image',
206
- ariaLabel: 'Hotspot interaction',
207
- altText: 'Hotspot interaction',
208
- },
209
-
210
- selectPoint: {
211
- instruction: 'Click on the image to select points',
212
- instructionAria: 'Click to select points on the image',
213
- maxPointsReached: 'Maximum points reached. Remove a point to add a new one.',
214
- point: 'Point {index}',
215
- removePoint: 'Remove point {index}',
216
- removePointTitle: 'Click to remove this point',
217
- removePointAt: 'Remove point {index} at coordinates {x}, {y}',
218
- removePointAtTitle: 'Click to remove this point ({x}, {y})',
219
- canvas: 'Selection canvas',
220
- noImage: 'No image provided',
221
- pointsSelected: 'Points selected:',
222
- minimumMet: '✓ Minimum met',
223
- selectAtLeast: 'Select at least {minChoices}',
224
- },
225
-
226
- match: {
227
- // Keyboard instruction for accessible drag-drop
228
- keyboardInstructions: 'Press Space or Enter to select a source item. Tab to navigate to targets. Press Space or Enter on a target to create a match. Press Escape to cancel selection.',
229
- dragInstruction: 'Press Space or Enter to match',
230
- dropTarget: 'Drop item here',
231
- matchedWith: 'Matched with {target}',
232
- selectedForMatching: 'Selected for matching',
233
- available: 'Available',
234
- availableForMatching: 'Available for matching',
235
- removeMatch: 'Remove match',
236
- clearMatch: 'Clear match for {source}',
237
- sourceItemsLabel: 'Source items to match',
238
- targetItemsLabel: 'Target items for matching',
239
- dragFromHere: 'Drag from here:',
240
- dropHere: 'Drop here:',
241
- deselected: '{item} deselected',
242
- selected: '{item} selected',
243
- navigateToTarget: 'Navigate to a target and press Space or Enter to match',
244
- selectionCancelled: 'Selection cancelled',
245
- matchCleared: 'Match cleared for {item}',
246
- },
247
-
248
- gapMatch: {
249
- instruction: 'Drag words to fill in the blanks',
250
- available: 'Available words',
251
- availableLabel: 'Available words to place',
252
- availableHeading: 'Available words:',
253
- removeWord: 'Remove word',
254
- // {word} will be replaced with the word being removed
255
- removeFromBlanks: 'Remove {word} from the blanks',
256
- selectPlaceholder: 'Select...',
257
- gapAriaLabel: 'Gap {gapId}',
258
- blankGapAriaLabel: 'Blank {gapId}. Drop an answer here.',
259
- filledGapAriaLabel: 'Blank {gapId}, filled with {word}. Click to clear.',
260
- },
261
-
262
- graphicGapMatch: {
263
- instruction: 'Place labels on the image hotspots',
264
- keyboardInstructions: 'Press Space or Enter to select a label. Tab to navigate to hotspots on the image. Press Space or Enter on a hotspot to place the label. Press Escape to cancel selection.',
265
- available: 'Available labels',
266
- availableLabel: 'Available labels to place',
267
- availableHeading: 'Available Labels:',
268
- alreadyPlaced: 'Already placed on hotspot',
269
- selectedForPlacement: 'Selected for placement',
270
- pressSpaceToSelect: 'Press Space to select',
271
- pressSpaceToPlace: 'Press Space or Enter to place label',
272
- removeLabel: 'Remove label',
273
- removeFromHotspot: 'Remove {label} from hotspot',
274
- labelPlaced: '{label} placed on hotspot {hotspot}',
275
- hotspot: 'Hotspot {number}',
276
- contains: 'Contains: {label}',
277
- },
278
-
279
- order: {
280
- instruction: 'Drag items to reorder them',
281
- keyboardInstructions: 'Press Space or Enter to grab an item. Use arrow keys to move the item. Press Space or Enter again to drop. Press Escape to cancel.',
282
- grabbed: 'Grabbed. Use arrow keys to move.',
283
- moveUp: 'Move up',
284
- moveDown: 'Move down',
285
- position: 'Position {current} of {total}',
286
- listLabel: 'Reorderable list of choices',
287
- confirmOrder: 'Confirm Order',
288
- confirmOrderNoChanges: 'Confirm Order (No Changes)',
289
- confirmAria: 'Confirm this order as your answer',
290
- itemGrabbed: '{item} grabbed. Current position {position} of {total}. Use arrow keys to move, Space or Enter to drop.',
291
- itemDropped: '{item} dropped at position {position} of {total}',
292
- itemMoved: '{item} moved to position {position} of {total}',
293
- selectionCancelled: '{item} selection cancelled',
294
- },
295
-
296
- associate: {
297
- instruction: 'Create associations between items',
298
- createPair: 'Create pair',
299
- removePair: 'Remove pair',
300
- removeAssociation: 'Remove association',
301
- diagramLabel: 'Association diagram',
302
- altText: 'Association diagram',
303
- hotspotConnections: '{label} ({usageCount}/{matchMax} connections)',
304
- selectAnother: 'Selected: <strong>{label}</strong>. Click another',
305
- selectAnotherHotspot: 'Selected: <strong>{label}</strong>. Click another hotspot to create an association.',
306
- minimumRequired: 'Minimum required: {minAssociations}',
307
- currentAssociations: 'Current Associations',
308
- correctAssociations: 'Correct Associations',
309
- clickToAssociate: 'Click two items to create an association between them',
310
- clickAnotherOrDeselect: 'Click another item to create an association (or click again to deselect)',
311
- associations: 'Associations',
312
- associationsCount: 'Associations ({count}/{max})',
313
- clickHotspotsToAssociate: 'Click two hotspots on the image to create an association.',
314
- clickAnotherHotspot: 'Selected: <strong>{label}</strong>. Click another hotspot to create an association.',
315
- },
316
-
317
- positionObject: {
318
- instruction: 'Drag objects onto the image',
319
- placeObject: 'Place {object} on image',
320
- removeObject: 'Remove {object}',
321
- objectAt: '{object} at position ({x}, {y})',
322
- canvasLabel: 'Positioning canvas',
323
- backgroundAlt: 'Positioning background',
324
- positioned: 'Positioned {label} at ({x}, {y})',
325
- minimumRequired: 'Minimum required: {minChoices}',
326
- maximumAllowed: 'Maximum: {maxChoices}',
327
- availableObjects: 'Available Objects',
328
- objectUsage: '{label} ({usageCount}/{matchMax} used)',
329
- availableObjectsCount: 'Available Objects ({count}/{max})',
330
- dragObjectsInstruction: 'Drag objects onto the canvas to position them.',
331
- used: '{usageCount}/{matchMax} used',
332
- },
333
-
334
- endAttempt: {
335
- buttonLabel: 'End Attempt',
336
- ended: 'Attempt Ended',
337
- requested: 'Requested',
338
- warningMessage: 'Your attempt has been ended and can no longer be modified.',
339
- confirmMessage: 'Are you sure you want to end your attempt? You will not be able to change your responses.',
340
- },
341
-
342
- media: {
343
- play: 'Play',
344
- pause: 'Pause',
345
- volume: 'Volume',
346
- mute: 'Mute',
347
- unmute: 'Unmute',
348
- fullscreen: 'Fullscreen',
349
- exitFullscreen: 'Exit fullscreen',
350
- playbackSpeed: 'Playback speed',
351
- currentTime: '{current} / {duration}',
352
- loading: 'Loading media...',
353
- ariaLabel: 'Media content',
354
- maxPlayLimitReached: 'Maximum play limit reached',
355
- playCount: 'Play count:',
356
- remaining: 'Remaining:',
357
- requirementMet: '✓ Requirement met',
358
- playAtLeast: 'Play at least {minPlays} time',
359
- playAtLeastPlural: 'Play at least {minPlays} times',
360
- browserNoSupport: 'Your browser does not support this media type.',
361
- audioNoSupport: 'Your browser does not support the audio element.',
362
- videoNoSupport: 'Your browser does not support the video element.',
363
- objectDisabled: 'This item uses an embedded object type that is disabled by default for security.',
364
- },
365
-
366
- graphicOrder: {
367
- instruction: 'Click hotspots to order them',
368
- diagramLabel: 'Ordering diagram',
369
- altText: 'Ordering diagram',
370
- orderHeading: 'Order (drag to reorder)',
371
- itemLabel: 'Item {index}: {label}',
372
- confirmOrder: 'Confirm Order',
373
- confirmOrderNoChanges: 'Confirm Order (No Changes)',
374
- confirmAria: 'Confirm this order as your answer',
375
- },
376
-
377
- custom: {
378
- unsupported: 'Unsupported customInteraction',
379
- description: 'This item contains a vendor-specific interaction. This player does not execute custom interactions.',
380
- promptLabel: 'Prompt',
381
- manualResponse: 'Manual response (optional)',
382
- placeholder: 'Enter a manual response (fallback)',
383
- attributes: 'Attributes',
384
- xml: 'XML',
385
- },
386
-
387
- inline: {
388
- placeholder: '...',
389
- selectPlaceholder: 'Select...',
390
- },
391
- },
392
-
393
- item: {
394
- loading: 'Loading item...',
395
- loadingError: 'Failed to load item',
396
- loadError: 'Error loading item: {error}',
397
- parsingError: 'Failed to parse QTI XML',
398
- processingError: 'Failed to process responses',
399
- submit: 'Submit',
400
- complete: 'Complete',
401
- completed: 'Completed',
402
- attempt: 'Attempt {numAttempts}',
403
- },
404
-
405
- itemSession: {
406
- attempt: 'Attempt {numAttempts}',
407
- attemptsRemaining: '{attemptsRemaining} attempts remaining',
408
- maxAttempts: 'Max attempts: {maxAttempts}',
409
- },
410
-
411
- feedback: {
412
- close: 'Close feedback',
413
- closeFeedback: 'Dismiss feedback',
414
- testFeedback: 'Test feedback',
415
- },
416
-
417
- assessment: {
418
- title: 'Assessment',
419
- loading: 'Loading assessment...',
420
- loadingError: 'Timeout loading assessment. This assessment may be invalid or the player failed to initialize.',
421
- question: 'Question {current} of {total}',
422
- questionAnnouncement: 'Question {current} of {total}',
423
- section: 'Section {current} of {total}',
424
- sectionDefault: 'Section {number}',
425
- closeMenu: 'Close menu',
426
- readingPassage: 'Reading Passage',
427
- expandPassage: 'Expand passage',
428
- collapsePassage: 'Collapse passage',
429
-
430
- attempts: {
431
- remaining: '{count} attempts remaining',
432
- oneRemaining: '1 attempt remaining',
433
- noRemaining: 'No attempts remaining ({count} used)',
434
- used: 'Attempts: {count}',
435
- maxReached: 'Max attempts reached',
436
- required: 'Must answer before continuing',
437
- reviewNotAllowed: 'Not allowed once submitted',
438
- },
439
-
440
- navigation: {
441
- previous: 'Previous',
442
- next: 'Next',
443
- submit: 'Submit',
444
- jumpTo: 'Jump to question {number}',
445
- sectionMenu: 'Section menu',
446
- progress: 'Progress: {percent}%',
447
- },
448
-
449
- sections: {
450
- title: 'Sections',
451
- selectSection: 'Select section',
452
- },
453
-
454
- timer: {
455
- remaining: 'Time Remaining',
456
- elapsed: 'Time Elapsed',
457
- expired: 'Time Expired',
458
- timeRemaining: 'Time remaining: {time}',
459
- timeElapsed: 'Time elapsed: {time}',
460
- timeUp: "Time's up!",
461
- },
462
-
463
- feedback: {
464
- correct: 'Correct',
465
- incorrect: 'Incorrect',
466
- partiallyCorrect: 'Partially correct',
467
- unanswered: 'Unanswered',
468
- score: 'Score: {score} / {maxScore}',
469
- passed: 'Passed',
470
- failed: 'Failed',
471
- },
472
-
473
- completion: {
474
- title: 'Assessment Complete',
475
- message: 'You have completed the assessment.',
476
- score: 'Your score: {score} out of {maxScore}',
477
- percentage: 'Percentage: {percent}%',
478
- viewResults: 'View results',
479
- exit: 'Exit',
480
- },
481
-
482
- errors: {
483
- navigationFailed: 'Navigation failed. Please try again.',
484
- submitFailed: 'Failed to submit assessment. Please try again.',
485
- loadFailed: 'Failed to load question.',
486
- saveFailed: 'Failed to save response.',
487
- },
488
- },
489
-
490
- i18n: {
491
- selectLanguage: 'Language',
492
- selectLanguageAriaLabel: 'Select display language',
493
- },
494
-
495
- accessibility: {
496
- skipToContent: 'Skip to content',
497
- skipToNavigation: 'Skip to navigation',
498
- itemBody: 'Question content',
499
- navigationRegion: 'Assessment navigation',
500
- announcement: 'Announcement',
501
- newQuestion: 'New question loaded',
502
- answerRecorded: 'Answer recorded',
503
- resizer: 'Resize passage and question panels',
504
- },
505
-
506
- demo: {
507
- selectSampleItem: 'Select Sample Item',
508
- configurationPanel: 'Configuration Panel',
509
- viewingAs: 'Viewing as',
510
- role: 'Role',
511
- candidate: 'Candidate',
512
- author: 'Author',
513
- proctor: 'Proctor',
514
- scorer: 'Scorer',
515
- tutor: 'Tutor',
516
- showCorrectAnswers: 'Show correct answers',
517
- showFeedback: 'Show feedback',
518
- settings_aria: 'Open settings menu',
519
- xmlEditor: 'XML Editor',
520
-
521
- // Navigation
522
- appName: 'PIE QTI Player',
523
- home: 'Home',
524
- itemDemo: 'Item Demo',
525
- assessmentDemo: 'Assessment Demo',
526
- likertDemo: 'Likert Plugin Demo',
527
- iframeDemo: 'Iframe Demo',
528
- theme: 'Theme',
529
-
530
- // Home Page
531
- homeTitle: 'QTI Player',
532
- homeSubtitle: 'A modern, framework-agnostic player for QTI assessment items. Works 100% client-side by default, with optional server-side hooks for production use.',
533
- homeMetaDescription: 'Modern QTI player with optional backend integration',
534
- tryItems: 'Try Items',
535
- tryAssessments: 'Try Assessments',
536
- pluginDemo: 'Plugin Demo',
537
- dropQtiFile: 'Drop QTI XML file here',
538
- orClickToSelect: 'or click to select a file',
539
- selectFile: 'Select File',
540
- selectedFile: 'Selected:',
541
- loadInPlayer: 'Load in Player',
542
- footerTitle: 'QTI Player',
543
- footerLicense: 'MIT Licensed • Open Source',
544
-
545
- // Settings Panel
546
- settings: 'Settings',
547
- candidateStudent: 'Candidate (Student)',
548
- testConstructor: 'Test Constructor',
549
- controlsRubricVisibility: 'Controls rubric visibility and correct answer display',
550
- useBackendScoring: 'Use Backend Scoring',
551
- scoreOnServer: 'Score responses on the server instead of client-side',
552
- sessionManagement: 'Session Management',
553
- saving: 'Saving...',
554
- saveSession: 'Save Session',
555
- loadSession: 'Load Session',
556
-
557
- // Export & Template
558
- exportResponses: 'Export Responses',
559
- json: 'JSON',
560
- csv: 'CSV',
561
- templateProcessing: 'Template Processing',
562
- rerunTemplateProcessing: 'Re-run templateProcessing and reset the item session',
563
- regenerateVariant: 'Regenerate Variant',
564
- templateVariablesDebug: 'Template Variables (Debug)',
565
- variable: 'Variable',
566
- value: 'Value',
567
-
568
- // Keyboard Shortcuts
569
- keyboardShortcuts: 'Keyboard Shortcuts',
570
- submitAnswersShortcut: 'Submit answers',
571
- tryAgainShortcut: 'Try again',
572
- exportJsonShortcut: 'Export JSON',
573
- saveSessionShortcut: 'Save session',
574
- useCmdOnMacOS: 'Use <kbd class="kbd kbd-xs">Cmd</kbd> on macOS',
575
-
576
- // Results Panel
577
- results: 'Results',
578
- score: 'Score',
579
- outcomeVariables: 'Outcome Variables',
580
-
581
- // Misc
582
- format: 'Format',
583
- selectItemOrPasteXml: 'Select a sample item or paste custom XML to get started.',
584
- pageTitle: 'Player Demo - PIE QTI Player',
585
-
586
- // Sample Item Descriptions
587
- sampleItemDescriptions: {
588
- '': 'Custom uploaded item',
589
- 'simple-choice': 'Basic subtraction word problem with plausible distractors',
590
- 'partial-credit': 'Multiple choice with partial credit using mapResponse',
591
- 'capital-cities': 'Geography question with shuffled choices',
592
- 'text-entry': 'Fill-in-the-blank question with case-insensitive matching',
593
- 'extended-text': 'Multi-line text response question',
594
- 'inline-choice': 'Dropdown menu embedded in text',
595
- 'order-interaction': 'Arrange items in correct sequence',
596
- 'match-interaction': 'Match items from two columns',
597
- 'associate-interaction': 'Create associations between items',
598
- 'gap-match': 'Drag words into gaps in text',
599
- 'graphic-gap-match-solar-system': 'Label the four inner planets of our solar system',
600
- 'slider': 'Select a value on a numerical slider',
601
- 'hotspot': 'Click on the Blue Planet in this astronomy question',
602
- 'hotspot-partial-credit': 'Identify planet with liquid water (partial credit for terrestrial planets)',
603
- 'template-variable-demo': 'templateProcessing generates values; responseProcessing scores against them',
604
- 'upload-interaction': 'Upload a file as the response (baseType=file)',
605
- 'drawing-interaction': 'Draw on a canvas (baseType=file, PNG dataUrl)',
606
- 'media-audio': 'Audio player with play count tracking and minPlays requirement',
607
- 'media-video': 'Video player with play count tracking and maxPlays limit',
608
- 'hottext-single': 'Click to select a single word within text (grammar question)',
609
- 'hottext-multiple': 'Click to select multiple text segments (reading comprehension)',
610
- 'select-point': 'Click on the image to select a point location (geography question)',
611
- 'graphic-order': 'Drag to reorder items on an image (geological layers)',
612
- 'graphic-associate': 'Click pairs of hotspots to create associations (organ matching)',
613
- 'position-object': 'Drag and position furniture objects on a room layout',
614
- 'end-attempt': 'Button to end the assessment attempt',
615
- 'custom-interaction': 'Shows a fallback UI for customInteraction and allows a manual response',
616
- 'choice-with-stimulus': 'Question with reading passage embedded inline',
617
- 'math-inline': 'Multiple choice with MathML inline math rendering',
618
- 'math-extended': 'Extended response with MathML and rich text editor for showing mathematical work',
619
- 'math-fractions': 'Fraction arithmetic with MathML block display',
620
- 'adaptive-capitals': 'Multi-attempt adaptive question with progressive feedback and hints',
621
- },
622
- },
623
-
624
- transform: {
625
- // App title and navigation
626
- appName: 'QTI Batch Processor',
627
- appDescription: 'Upload QTI packages to analyze structure, transform to PIE format, and preview results',
628
- home: 'Home',
629
-
630
- // Session management
631
- sessions: {
632
- title: 'Recent Sessions',
633
- session: 'Session',
634
- status: 'Status',
635
- packages: 'Packages',
636
- created: 'Created',
637
- createdAt: 'Created {date}',
638
- open: 'Open',
639
- delete: 'Delete',
640
- deleteTitle: 'Delete session',
641
- deleteConfirmTitle: 'Delete Session',
642
- deleteConfirmMessage: 'Are you sure you want to delete this session? This action cannot be undone and all files will be permanently removed.',
643
- deleted: 'Session deleted',
644
- notFound: 'Session Not Found',
645
- notFoundMessage: 'The requested session could not be found or does not exist.',
646
- },
647
-
648
- // Samples
649
- samples: {
650
- title: 'Sample QTI Packages',
651
- description: 'Try the processor with pre-loaded sample packages demonstrating various QTI interaction types.',
652
- itemCount: '{count, plural, one {# item} other {# items}}',
653
- hasManifest: 'Manifest',
654
- load: 'Load Sample',
655
- loadSample: 'Load Sample',
656
- loaded: "Sample '{id}' loaded successfully",
657
- notFound: "Sample package '{id}' not found",
658
- loadFailed: 'Failed to load sample',
659
- },
660
-
661
- // Upload
662
- upload: {
663
- dropPrompt: 'Drop QTI ZIP files here',
664
- orClickToSelect: 'or click to select files',
665
- selectFiles: 'Select Files',
666
- processing: 'Processing...',
667
- invalidType: 'Only ZIP files are allowed',
668
- fileTooLarge: 'File too large: {filename}. Maximum size is {maxSize}MB.',
669
- noFiles: 'No files provided',
670
- uploadFailed: 'Upload failed',
671
- },
672
-
673
- // Session detail page
674
- detail: {
675
- uploadedPackages: 'Uploaded Packages',
676
- package: 'Package',
677
- type: 'Type',
678
- size: 'Size',
679
- uploaded: 'Uploaded',
680
- actions: 'Actions',
681
- analyzing: 'Package is being analyzed...',
682
- analysisComplete: 'Analysis complete. Review results below or proceed to transformation.',
683
- cannotConvert: 'Cannot Convert to PIE',
684
- unsupportedMessage: 'This package contains QTI interaction types that have no PIE equivalent. See issues below for details. Use the QTI player instead to preview these items.',
685
- transforming: 'Transforming...',
686
- transformToPie: 'Transform to PIE',
687
- analysisResults: 'Analysis Results',
688
- totalItems: 'Total Items',
689
- passages: 'Passages',
690
- tests: 'Tests',
691
- interactionTypesFound: 'Interaction Types Found',
692
- issuesFound: 'Issues Found',
693
- packageDetails: 'Package Details',
694
- noManifest: 'No Manifest',
695
- items: 'items',
696
- interactionTypes: 'Interaction Types',
697
- assessmentTests: 'Assessment Tests',
698
- file: 'File',
699
- pattern: 'Pattern',
700
- sampleItems: 'Sample Items by Interaction Type',
701
- issues: 'Issues',
702
- browseAssessments: 'Browse & Preview Assessment Tests',
703
- browseAssessmentsDescription: 'Browse and preview {count, plural, one {# QTI assessment test} other {# QTI assessment tests}} found in this session',
704
- individualItems: 'Individual Items',
705
- browseItems: 'Browse & Preview Items',
706
- browseItemsDescription: 'Browse and preview {count, plural, one {# QTI item} other {# QTI items}} found in this session',
707
- },
708
-
709
- // Analysis results
710
- analysis: {
711
- title: 'Analysis Results',
712
- totalItems: 'Total Items',
713
- passages: 'Passages',
714
- tests: 'Tests',
715
- packages: 'Packages',
716
- interactionTypesFound: 'Interaction Types Found',
717
- issuesFound: 'Issues Found ({count})',
718
- assessmentTests: 'Assessment Tests',
719
- individualItems: 'Individual Items',
720
- },
721
-
722
- // Items browser
723
- items: {
724
- title: 'Item Browser',
725
- description: 'Browse and preview {count} QTI assessment items',
726
- loading: 'Loading items...',
727
- notFound: 'No items found in this session.',
728
- itemsCount: 'Items ({count})',
729
- showCorrect: 'Show Correct',
730
- xmlNotAvailable: 'Item XML not available',
731
- noSelection: 'No item selected',
732
- notAvailable: 'Items Not Available',
733
- },
734
-
735
- // Assessments browser
736
- assessments: {
737
- title: 'Assessment Tests',
738
- loading: 'Loading assessment tests...',
739
- notFound: 'No assessment tests found in this session.',
740
- showCorrect: 'Show Correct',
741
- assessmentsCount: 'Assessments ({count})',
742
- selectPrompt: 'Select an assessment to preview',
743
- },
744
-
745
- // Transformation results
746
- transformed: {
747
- pageTitle: 'Transformation Results - Session {sessionId}',
748
- breadcrumb: 'Transformed',
749
- title: 'Transformation Results',
750
- summary: '{itemCount} item{itemCount, plural, one {} other {s}}{assessmentCount, plural, =0 {} other { + {assessmentCount} assessment{assessmentCount, plural, one {} other {s}}}} transformed in {duration}',
751
- backToSession: 'Back to Session',
752
- content: 'Transformed Content',
753
- items: 'Items',
754
- assessments: 'Assessments',
755
- errors: 'Errors',
756
- warnings: '{count, plural, one {# warning} other {# warnings}}',
757
- transformationErrors: '{count, plural, one {# Transformation Error} other {# Transformation Errors}}',
758
- noItems: 'No items transformed',
759
- selectPrompt: 'Select an item or assessment to preview',
760
- },
761
-
762
- // PIE Player controls
763
- player: {
764
- selectPlayerType: 'Select player type',
765
- iife: 'IIFE',
766
- esm: 'ESM',
767
- gather: 'Gather',
768
- view: 'View',
769
- evaluate: 'Evaluate',
770
- browse: 'Browse',
771
- student: 'Student',
772
- instructor: 'Instructor',
773
- notAvailable: 'PIE Players Not Available',
774
- debugConfig: 'Debug: config JSON',
775
- },
776
-
777
- // QTI Player controls
778
- qtiPlayer: {
779
- errorLoading: 'Error loading QTI player',
780
- loading: 'Loading QTI player...',
781
- waitingForData: 'Waiting for assessment data...',
782
- },
783
-
784
- // Assessment preview
785
- assessmentPreview: {
786
- totalItems: 'Total Items',
787
- sections: 'Sections',
788
- timeLimit: 'Time Limit',
789
- configuration: 'Configuration',
790
- navigation: 'Navigation:',
791
- submission: 'Submission:',
792
- },
793
-
794
- // Confirmation dialog
795
- dialog: {
796
- defaultTitle: 'Confirm Action',
797
- defaultConfirm: 'Confirm',
798
- defaultCancel: 'Cancel',
799
- close: 'close',
800
- },
801
-
802
- // API Error messages
803
- errors: {
804
- noContent: 'Please provide QTI XML content',
805
- invalidQti: 'The provided content does not appear to be valid QTI XML',
806
- transformFailed: 'Transformation failed',
807
- noItemsProduced: 'Transformation produced no items',
808
- transformError: 'Transformation error: {message}',
809
- sessionNotFound: 'Session not found',
810
- alreadyAnalyzed: 'Session already analyzed',
811
- noListSupport: 'Storage backend does not support listing files',
812
- noZipFiles: 'No ZIP files found and no extracted files available',
813
- extractFailed: 'Failed to extract {filename}',
814
- analysisComplete: 'Analysis complete',
815
- notAnalyzed: 'Session not analyzed yet',
816
- analysisFailed: 'Analysis failed',
817
- noTransformation: 'No transformation results found for session {sessionId}',
818
- getTransformationFailed: 'Failed to get transformation results',
819
- loadSamplesFailed: 'Failed to load samples',
820
- },
821
-
822
- // Badges
823
- badges: {
824
- qti: 'QTI',
825
- uploaded: 'Uploaded',
826
- },
827
- },
828
- } as const; // 'as const' for strict type inference