@pie-lib/translator 5.0.0-next.3 → 5.0.0-next.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.
- package/dist/en.d.ts +52 -8
- package/dist/en.js +52 -0
- package/dist/es.d.ts +52 -8
- package/dist/es.js +54 -2
- package/dist/index.d.ts +0 -8
- package/dist/index.js +1 -1
- package/package.json +4 -11
package/dist/en.d.ts
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @synced-from pie-lib/packages/translator/src/en.js
|
|
3
|
-
* @auto-generated
|
|
4
|
-
*
|
|
5
|
-
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
-
* Manual edits will be overwritten on next sync.
|
|
7
|
-
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
-
*/
|
|
9
1
|
declare const _default: {
|
|
10
2
|
translation: {
|
|
11
3
|
categorize: {
|
|
@@ -72,6 +64,24 @@ declare const _default: {
|
|
|
72
64
|
mathInline: {
|
|
73
65
|
primaryCorrectWithAlternates: string;
|
|
74
66
|
};
|
|
67
|
+
mcPopulatedBlank: {
|
|
68
|
+
answerChoices: string;
|
|
69
|
+
blankLabel: string;
|
|
70
|
+
emptyBlank: string;
|
|
71
|
+
blankPreSelectionHint: string;
|
|
72
|
+
correctAnswerSelected: string;
|
|
73
|
+
incorrectAnswerSelected: string;
|
|
74
|
+
selectedAnswerImage: string;
|
|
75
|
+
choiceImage: string;
|
|
76
|
+
clickToEnableAutoplay: string;
|
|
77
|
+
audioResourceUnavailable: string;
|
|
78
|
+
listen: string;
|
|
79
|
+
listenSilentAlt: string;
|
|
80
|
+
listenPlayingAlt: string;
|
|
81
|
+
printAudio: string;
|
|
82
|
+
printTranscript: string;
|
|
83
|
+
printKey: string;
|
|
84
|
+
};
|
|
75
85
|
multipleChoice: {
|
|
76
86
|
minSelections: string;
|
|
77
87
|
maxSelections_one: string;
|
|
@@ -85,6 +95,38 @@ declare const _default: {
|
|
|
85
95
|
incorrectSelection: string;
|
|
86
96
|
key: string;
|
|
87
97
|
};
|
|
98
|
+
simpleCloze: {
|
|
99
|
+
correctAnswerShown: string;
|
|
100
|
+
correct: string;
|
|
101
|
+
incorrect: string;
|
|
102
|
+
unanswered: string;
|
|
103
|
+
placeholder: string;
|
|
104
|
+
answerInput: string;
|
|
105
|
+
printCorrectAnswer: string;
|
|
106
|
+
printAnswerBlank: string;
|
|
107
|
+
};
|
|
108
|
+
vennClassification: {
|
|
109
|
+
tray: string;
|
|
110
|
+
unknownTarget: string;
|
|
111
|
+
cancelled: string;
|
|
112
|
+
returnedToTray: string;
|
|
113
|
+
placedIn: string;
|
|
114
|
+
pickedUp: string;
|
|
115
|
+
pickedUpWithKeyboard: string;
|
|
116
|
+
dropTarget: string;
|
|
117
|
+
unsupportedCircles_one: string;
|
|
118
|
+
unsupportedCircles_other: string;
|
|
119
|
+
setNumber: string;
|
|
120
|
+
regionOnly: string;
|
|
121
|
+
regionNeither: string;
|
|
122
|
+
regionNoneOf: string;
|
|
123
|
+
regionAndSeparator: string;
|
|
124
|
+
tileFallbackName: string;
|
|
125
|
+
tileNotPlaced: string;
|
|
126
|
+
tileInRegion: string;
|
|
127
|
+
tileCorrect: string;
|
|
128
|
+
tileIncorrect: string;
|
|
129
|
+
};
|
|
88
130
|
};
|
|
89
131
|
common: {
|
|
90
132
|
undo: string;
|
|
@@ -93,6 +135,8 @@ declare const _default: {
|
|
|
93
135
|
incorrect: string;
|
|
94
136
|
showCorrectAnswer: string;
|
|
95
137
|
hideCorrectAnswer: string;
|
|
138
|
+
showTeacherInstructions: string;
|
|
139
|
+
hideTeacherInstructions: string;
|
|
96
140
|
commonCorrectAnswerWithAlternates: string;
|
|
97
141
|
warning: string;
|
|
98
142
|
showNote: string;
|
package/dist/en.js
CHANGED
|
@@ -61,6 +61,24 @@ var e = {
|
|
|
61
61
|
reset: "Reset"
|
|
62
62
|
},
|
|
63
63
|
mathInline: { primaryCorrectWithAlternates: "Note: The answer shown above is the primary correct answer specified by the author for this item, but other answers may also be recognized as correct." },
|
|
64
|
+
mcPopulatedBlank: {
|
|
65
|
+
answerChoices: "Answer choices",
|
|
66
|
+
blankLabel: "blank",
|
|
67
|
+
emptyBlank: "(blank)",
|
|
68
|
+
blankPreSelectionHint: "The answer you choose will appear on the blank line above.",
|
|
69
|
+
correctAnswerSelected: "Correct answer selected",
|
|
70
|
+
incorrectAnswerSelected: "Incorrect answer selected",
|
|
71
|
+
selectedAnswerImage: "Selected answer image",
|
|
72
|
+
choiceImage: "Choice {{id}}",
|
|
73
|
+
clickToEnableAutoplay: "Click to enable audio autoplay",
|
|
74
|
+
audioResourceUnavailable: "Audio is enabled but no playable audio URL is configured.",
|
|
75
|
+
listen: "Listen",
|
|
76
|
+
listenSilentAlt: "Repeat instructions",
|
|
77
|
+
listenPlayingAlt: "Instructions are playing",
|
|
78
|
+
printAudio: "Audio:",
|
|
79
|
+
printTranscript: "Transcript:",
|
|
80
|
+
printKey: "(key)"
|
|
81
|
+
},
|
|
64
82
|
multipleChoice: {
|
|
65
83
|
minSelections: "Select at least {{minSelections}}.",
|
|
66
84
|
maxSelections_one: "Only {{maxSelections}} answer is allowed.",
|
|
@@ -73,6 +91,38 @@ var e = {
|
|
|
73
91
|
correctAnswerNotSelected: "Correct Answer Not Selected",
|
|
74
92
|
incorrectSelection: "Incorrect Selection",
|
|
75
93
|
key: "Key"
|
|
94
|
+
},
|
|
95
|
+
simpleCloze: {
|
|
96
|
+
correctAnswerShown: "Correct answer",
|
|
97
|
+
correct: "Correct",
|
|
98
|
+
incorrect: "Incorrect",
|
|
99
|
+
unanswered: "No answer",
|
|
100
|
+
placeholder: "Enter your answer...",
|
|
101
|
+
answerInput: "Your answer",
|
|
102
|
+
printCorrectAnswer: "Correct answer:",
|
|
103
|
+
printAnswerBlank: "Answer blank"
|
|
104
|
+
},
|
|
105
|
+
vennClassification: {
|
|
106
|
+
tray: "Tiles to classify",
|
|
107
|
+
unknownTarget: "unknown",
|
|
108
|
+
cancelled: "Cancelled",
|
|
109
|
+
returnedToTray: "{{name}} returned to tray",
|
|
110
|
+
placedIn: "{{name}} placed in {{target}}",
|
|
111
|
+
pickedUp: "Picked up {{name}}",
|
|
112
|
+
pickedUpWithKeyboard: "Picked up {{name}}, drop target: {{target}}. Use arrow keys to choose a drop target, Enter to drop, Escape to cancel.",
|
|
113
|
+
dropTarget: "Drop target: {{target}}",
|
|
114
|
+
unsupportedCircles_one: "This diagram cannot be shown: it has {{count}} circle, and only {{supported}} are supported.",
|
|
115
|
+
unsupportedCircles_other: "This diagram cannot be shown: it has {{count}} circles, and only {{supported}} are supported.",
|
|
116
|
+
setNumber: "Set {{number}}",
|
|
117
|
+
regionOnly: "{{set}} only",
|
|
118
|
+
regionNeither: "Neither {{first}} nor {{second}}",
|
|
119
|
+
regionNoneOf: "None of {{sets}}",
|
|
120
|
+
regionAndSeparator: " and ",
|
|
121
|
+
tileFallbackName: "Tile",
|
|
122
|
+
tileNotPlaced: "not placed",
|
|
123
|
+
tileInRegion: "in {{region}}",
|
|
124
|
+
tileCorrect: "correct",
|
|
125
|
+
tileIncorrect: "incorrect"
|
|
76
126
|
}
|
|
77
127
|
},
|
|
78
128
|
common: {
|
|
@@ -82,6 +132,8 @@ var e = {
|
|
|
82
132
|
incorrect: "Incorrect",
|
|
83
133
|
showCorrectAnswer: "Show correct answer",
|
|
84
134
|
hideCorrectAnswer: "Hide correct answer",
|
|
135
|
+
showTeacherInstructions: "Show Teacher Instructions",
|
|
136
|
+
hideTeacherInstructions: "Hide Teacher Instructions",
|
|
85
137
|
commonCorrectAnswerWithAlternates: "Note: The answer shown above is the most common correct answer for this item. One or more additional correct answers are also defined, and will also be recognized as correct.",
|
|
86
138
|
warning: "Warning",
|
|
87
139
|
showNote: "Show Note",
|
package/dist/es.d.ts
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @synced-from pie-lib/packages/translator/src/es.js
|
|
3
|
-
* @auto-generated
|
|
4
|
-
*
|
|
5
|
-
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
-
* Manual edits will be overwritten on next sync.
|
|
7
|
-
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
-
*/
|
|
9
1
|
declare const _default: {
|
|
10
2
|
translation: {
|
|
11
3
|
categorize: {
|
|
@@ -72,6 +64,24 @@ declare const _default: {
|
|
|
72
64
|
mathInline: {
|
|
73
65
|
primaryCorrectWithAlternates: string;
|
|
74
66
|
};
|
|
67
|
+
mcPopulatedBlank: {
|
|
68
|
+
answerChoices: string;
|
|
69
|
+
blankLabel: string;
|
|
70
|
+
emptyBlank: string;
|
|
71
|
+
blankPreSelectionHint: string;
|
|
72
|
+
correctAnswerSelected: string;
|
|
73
|
+
incorrectAnswerSelected: string;
|
|
74
|
+
selectedAnswerImage: string;
|
|
75
|
+
choiceImage: string;
|
|
76
|
+
clickToEnableAutoplay: string;
|
|
77
|
+
audioResourceUnavailable: string;
|
|
78
|
+
listen: string;
|
|
79
|
+
listenSilentAlt: string;
|
|
80
|
+
listenPlayingAlt: string;
|
|
81
|
+
printAudio: string;
|
|
82
|
+
printTranscript: string;
|
|
83
|
+
printKey: string;
|
|
84
|
+
};
|
|
75
85
|
multipleChoice: {
|
|
76
86
|
minSelections: string;
|
|
77
87
|
maxSelections_one: string;
|
|
@@ -85,6 +95,38 @@ declare const _default: {
|
|
|
85
95
|
incorrectSelection: string;
|
|
86
96
|
key: string;
|
|
87
97
|
};
|
|
98
|
+
simpleCloze: {
|
|
99
|
+
correctAnswerShown: string;
|
|
100
|
+
correct: string;
|
|
101
|
+
incorrect: string;
|
|
102
|
+
unanswered: string;
|
|
103
|
+
placeholder: string;
|
|
104
|
+
answerInput: string;
|
|
105
|
+
printCorrectAnswer: string;
|
|
106
|
+
printAnswerBlank: string;
|
|
107
|
+
};
|
|
108
|
+
vennClassification: {
|
|
109
|
+
tray: string;
|
|
110
|
+
unknownTarget: string;
|
|
111
|
+
cancelled: string;
|
|
112
|
+
returnedToTray: string;
|
|
113
|
+
placedIn: string;
|
|
114
|
+
pickedUp: string;
|
|
115
|
+
pickedUpWithKeyboard: string;
|
|
116
|
+
dropTarget: string;
|
|
117
|
+
unsupportedCircles_one: string;
|
|
118
|
+
unsupportedCircles_other: string;
|
|
119
|
+
setNumber: string;
|
|
120
|
+
regionOnly: string;
|
|
121
|
+
regionNeither: string;
|
|
122
|
+
regionNoneOf: string;
|
|
123
|
+
regionAndSeparator: string;
|
|
124
|
+
tileFallbackName: string;
|
|
125
|
+
tileNotPlaced: string;
|
|
126
|
+
tileInRegion: string;
|
|
127
|
+
tileCorrect: string;
|
|
128
|
+
tileIncorrect: string;
|
|
129
|
+
};
|
|
88
130
|
};
|
|
89
131
|
common: {
|
|
90
132
|
undo: string;
|
|
@@ -93,6 +135,8 @@ declare const _default: {
|
|
|
93
135
|
incorrect: string;
|
|
94
136
|
showCorrectAnswer: string;
|
|
95
137
|
hideCorrectAnswer: string;
|
|
138
|
+
showTeacherInstructions: string;
|
|
139
|
+
hideTeacherInstructions: string;
|
|
96
140
|
commonCorrectAnswerWithAlternates: string;
|
|
97
141
|
warning: string;
|
|
98
142
|
showNote: string;
|
package/dist/es.js
CHANGED
|
@@ -61,6 +61,24 @@ var e = {
|
|
|
61
61
|
reset: "Reiniciar"
|
|
62
62
|
},
|
|
63
63
|
mathInline: { primaryCorrectWithAlternates: "Nota: La respuesta que se muestra arriba es la respuesta correcta principal especificada por el autor para esta pregunta, pero también se pueden reconocer otras respuestas como correctas." },
|
|
64
|
+
mcPopulatedBlank: {
|
|
65
|
+
answerChoices: "Opciones de respuesta",
|
|
66
|
+
blankLabel: "espacio en blanco",
|
|
67
|
+
emptyBlank: "(en blanco)",
|
|
68
|
+
blankPreSelectionHint: "La respuesta que elijas aparecerá en la línea en blanco de arriba.",
|
|
69
|
+
correctAnswerSelected: "Respuesta correcta seleccionada",
|
|
70
|
+
incorrectAnswerSelected: "Respuesta incorrecta seleccionada",
|
|
71
|
+
selectedAnswerImage: "Imagen de la respuesta seleccionada",
|
|
72
|
+
choiceImage: "Opción {{id}}",
|
|
73
|
+
clickToEnableAutoplay: "Haz clic para activar la reproducción automática del audio",
|
|
74
|
+
audioResourceUnavailable: "El audio está activado, pero no hay una URL de audio reproducible configurada.",
|
|
75
|
+
listen: "Escuchar",
|
|
76
|
+
listenSilentAlt: "Escuchar. Repetir las instrucciones.",
|
|
77
|
+
listenPlayingAlt: "Escuchar. Estas son las instrucciones.",
|
|
78
|
+
printAudio: "Audio:",
|
|
79
|
+
printTranscript: "Transcripción:",
|
|
80
|
+
printKey: "(clave)"
|
|
81
|
+
},
|
|
64
82
|
multipleChoice: {
|
|
65
83
|
minSelections: "Seleccione al menos {{minSelections}}.",
|
|
66
84
|
maxSelections_one: "Sólo se permite {{maxSelections}} respuesta.",
|
|
@@ -73,15 +91,49 @@ var e = {
|
|
|
73
91
|
correctAnswerNotSelected: "Respuesta Correcta No Seleccionada",
|
|
74
92
|
incorrectSelection: "Selección Incorrecta",
|
|
75
93
|
key: "Clave"
|
|
94
|
+
},
|
|
95
|
+
simpleCloze: {
|
|
96
|
+
correctAnswerShown: "Respuesta correcta",
|
|
97
|
+
correct: "Correcto",
|
|
98
|
+
incorrect: "Incorrecto",
|
|
99
|
+
unanswered: "Sin respuesta",
|
|
100
|
+
placeholder: "Escribe tu respuesta...",
|
|
101
|
+
answerInput: "Tu respuesta",
|
|
102
|
+
printCorrectAnswer: "Respuesta correcta:",
|
|
103
|
+
printAnswerBlank: "Espacio para la respuesta"
|
|
104
|
+
},
|
|
105
|
+
vennClassification: {
|
|
106
|
+
tray: "Fichas para clasificar",
|
|
107
|
+
unknownTarget: "desconocido",
|
|
108
|
+
cancelled: "Cancelado",
|
|
109
|
+
returnedToTray: "Se devolvió {{name}} a la bandeja",
|
|
110
|
+
placedIn: "Se colocó {{name}} en {{target}}",
|
|
111
|
+
pickedUp: "Se tomó {{name}}",
|
|
112
|
+
pickedUpWithKeyboard: "Se tomó {{name}}, destino: {{target}}. Usa las flechas para elegir un destino, Enter para soltar y Escape para cancelar.",
|
|
113
|
+
dropTarget: "Destino: {{target}}",
|
|
114
|
+
unsupportedCircles_one: "No se puede mostrar este diagrama: tiene {{count}} círculo, y solo se admiten {{supported}}.",
|
|
115
|
+
unsupportedCircles_other: "No se puede mostrar este diagrama: tiene {{count}} círculos, y solo se admiten {{supported}}.",
|
|
116
|
+
setNumber: "Conjunto {{number}}",
|
|
117
|
+
regionOnly: "Solo {{set}}",
|
|
118
|
+
regionNeither: "Ni {{first}} ni {{second}}",
|
|
119
|
+
regionNoneOf: "Ninguno de {{sets}}",
|
|
120
|
+
regionAndSeparator: " y ",
|
|
121
|
+
tileFallbackName: "Ficha",
|
|
122
|
+
tileNotPlaced: "sin colocar",
|
|
123
|
+
tileInRegion: "en {{region}}",
|
|
124
|
+
tileCorrect: "correcta",
|
|
125
|
+
tileIncorrect: "incorrecta"
|
|
76
126
|
}
|
|
77
127
|
},
|
|
78
128
|
common: {
|
|
79
129
|
undo: "Deshacer",
|
|
80
130
|
clearAll: "Borrar todo",
|
|
81
|
-
correct: "
|
|
82
|
-
incorrect: "
|
|
131
|
+
correct: "Correcto",
|
|
132
|
+
incorrect: "Incorrecto",
|
|
83
133
|
showCorrectAnswer: "Mostrar respuesta correcta",
|
|
84
134
|
hideCorrectAnswer: "Ocultar respuesta correcta",
|
|
135
|
+
showTeacherInstructions: "Mostrar instrucciones para el maestro",
|
|
136
|
+
hideTeacherInstructions: "Ocultar instrucciones para el maestro",
|
|
85
137
|
commonCorrectAnswerWithAlternates: "Nota: La respuesta que se muestra arriba es la respuesta correcta más común para esta pregunta. También se definen una o más respuestas correctas adicionales, y también se reconocerán como correctas.",
|
|
86
138
|
warning: "Advertencia",
|
|
87
139
|
showNote: "Mostrar Nota",
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @synced-from pie-lib/packages/translator/src/index.js
|
|
3
|
-
* @auto-generated
|
|
4
|
-
*
|
|
5
|
-
* This file is automatically synced from pie-elements and converted to TypeScript.
|
|
6
|
-
* Manual edits will be overwritten on next sync.
|
|
7
|
-
* To make changes, edit the upstream JavaScript file and run sync again.
|
|
8
|
-
*/
|
|
9
1
|
import { type i18n, type TOptions } from 'i18next';
|
|
10
2
|
interface Translator extends i18n {
|
|
11
3
|
t: (key: string, options: TOptions) => string;
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-lib/translator",
|
|
3
|
-
"version": "5.0.0-next.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "5.0.0-next.4",
|
|
4
|
+
"description": "UI string translations shared by the React and Svelte PIE elements",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/pie-framework/pie-elements-ng.git",
|
|
8
|
-
"directory": "packages/
|
|
8
|
+
"directory": "packages/shared/translator"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"
|
|
12
|
-
"i18next": "^25.7.0",
|
|
13
|
-
"prop-types": "^15.7.2",
|
|
14
|
-
"@pie-element/shared-lodash": "0.1.1-next.1"
|
|
11
|
+
"i18next": "^25.7.0"
|
|
15
12
|
},
|
|
16
13
|
"type": "module",
|
|
17
14
|
"main": "./dist/index.js",
|
|
@@ -30,9 +27,5 @@
|
|
|
30
27
|
"build": "bun x vite build && bun x tsc --emitDeclarationOnly",
|
|
31
28
|
"dev": "bun x vite",
|
|
32
29
|
"test": "bun x vitest run"
|
|
33
|
-
},
|
|
34
|
-
"peerDependencies": {
|
|
35
|
-
"react": "^18.0.0",
|
|
36
|
-
"react-dom": "^18.0.0"
|
|
37
30
|
}
|
|
38
31
|
}
|