@pie-lib/translator 2.23.2-next.0 → 2.23.2-next.164

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.
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "module"
3
+ }
package/lib/en.js CHANGED
@@ -4,10 +4,10 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
- var _default = {
7
+ var _default = exports["default"] = {
8
8
  translation: {
9
9
  categorize: {
10
- limitMaxChoicesPerCategory: "You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.",
10
+ limitMaxChoicesPerCategory: 'You\'ve reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.',
11
11
  maxChoicesPerCategoryRestriction: 'To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s].'
12
12
  },
13
13
  ebsr: {
@@ -98,5 +98,4 @@ var _default = {
98
98
  cancel: 'Cancel'
99
99
  }
100
100
  };
101
- exports["default"] = _default;
102
101
  //# sourceMappingURL=en.js.map
package/lib/en.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/en.js"],"names":["translation","categorize","limitMaxChoicesPerCategory","maxChoicesPerCategoryRestriction","ebsr","part","numberLine","addElementLimit_one","addElementLimit_other","clearAll","imageClozeAssociation","reachedLimit_one","reachedLimit_other","drawingResponse","fillColor","outlineColor","noFill","lightblue","lightyellow","red","orange","yellow","violet","blue","green","white","black","onDoubleClick","charting","addCategory","actions","add","newLabel","keyLegend","incorrectAnswer","correctAnswer","correctKeyAnswer","graphing","point","circle","line","parabola","absolute","exponential","polygon","ray","segment","sine","vector","label","redo","reset","mathInline","primaryCorrectWithAlternates","multipleChoice","minSelections","maxSelections_one","maxSelections_other","minmaxSelections_equal","minmaxSelections_range","selectText","correctAnswerSelected","correctAnswerNotSelected","incorrectSelection","key","common","undo","correct","incorrect","showCorrectAnswer","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,qBALb;AAMNC,IAAAA,iBAAiB,EAAE,qBANb;AAONC,IAAAA,iCAAiC,EAC/B,gLARI;AASNC,IAAAA,OAAO,EAAE,SATH;AAUNC,IAAAA,QAAQ,EAAE,WAVJ;AAWNC,IAAAA,QAAQ,EAAE,WAXJ;AAYNC,IAAAA,MAAM,EAAE;AAZF;AApFK,C","sourcesContent":["export default {\n translation: {\n categorize: {\n limitMaxChoicesPerCategory:\n \"You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.\",\n maxChoicesPerCategoryRestriction:\n 'To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s].',\n },\n ebsr: {\n part: 'Part {{index}}',\n },\n numberLine: {\n addElementLimit_one: 'You can only add {{count}} element',\n addElementLimit_other: 'You can only add {{count}} elements',\n clearAll: 'Clear all',\n },\n imageClozeAssociation: {\n reachedLimit_one:\n 'You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.',\n reachedLimit_other: 'Full',\n },\n drawingResponse: {\n fillColor: 'Fill color',\n outlineColor: 'Outline color',\n noFill: 'No fill',\n lightblue: 'Light blue',\n lightyellow: 'Light yellow',\n red: 'Red',\n orange: 'Orange',\n yellow: 'Yellow',\n violet: 'Violet',\n blue: 'Blue',\n green: 'Green',\n white: 'White',\n black: 'Black',\n onDoubleClick: 'Double click to edit this text. Press Enter to submit.',\n },\n charting: {\n addCategory: 'Add category',\n actions: 'Actions',\n add: 'Add',\n delete: 'Delete',\n newLabel: 'New label',\n reachedLimit_other: \"There can't be more than {{count}} categories.\",\n keyLegend: {\n incorrectAnswer: 'Student incorrect answer',\n correctAnswer: 'Student correct answer',\n correctKeyAnswer: 'Answer key correct',\n },\n },\n graphing: {\n point: 'Point',\n circle: 'Circle',\n line: 'Line',\n parabola: 'Parabola',\n absolute: 'Absolute Value',\n exponential: 'Exponential',\n polygon: 'Polygon',\n ray: 'Ray',\n segment: 'Segment',\n sine: 'Sine',\n vector: 'Vector',\n label: 'Label',\n redo: 'Redo',\n reset: 'Reset',\n },\n mathInline: {\n primaryCorrectWithAlternates:\n '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.',\n },\n multipleChoice: {\n minSelections: 'Select at least {{minSelections}}.',\n maxSelections_one: 'Only {{maxSelections}} answer is allowed.',\n maxSelections_other: 'Only {{maxSelections}} answers are allowed.',\n minmaxSelections_equal: 'Select {{minSelections}}.',\n minmaxSelections_range: 'Select between {{minSelections}} and {{maxSelections}}.',\n },\n selectText: {\n correctAnswerSelected: 'Correct',\n correctAnswerNotSelected: 'Correct Answer Not Selected',\n incorrectSelection: 'Incorrect Selection',\n key: 'Key',\n },\n },\n common: {\n undo: 'Undo',\n clearAll: 'Clear all',\n correct: 'Correct',\n incorrect: 'Incorrect',\n showCorrectAnswer: 'Show correct answer',\n hideCorrectAnswer: 'Hide correct answer',\n commonCorrectAnswerWithAlternates:\n '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.',\n warning: 'Warning',\n showNote: 'Show Note',\n hideNote: 'Hide Note',\n cancel: 'Cancel',\n },\n};\n"],"file":"en.js"}
1
+ {"version":3,"file":"en.js","names":["translation","categorize","limitMaxChoicesPerCategory","maxChoicesPerCategoryRestriction","ebsr","part","numberLine","addElementLimit_one","addElementLimit_other","clearAll","imageClozeAssociation","reachedLimit_one","reachedLimit_other","drawingResponse","fillColor","outlineColor","noFill","lightblue","lightyellow","red","orange","yellow","violet","blue","green","white","black","onDoubleClick","charting","addCategory","actions","add","newLabel","keyLegend","incorrectAnswer","correctAnswer","correctKeyAnswer","graphing","point","circle","line","parabola","absolute","exponential","polygon","ray","segment","sine","vector","label","redo","reset","mathInline","primaryCorrectWithAlternates","multipleChoice","minSelections","maxSelections_one","maxSelections_other","minmaxSelections_equal","minmaxSelections_range","selectText","correctAnswerSelected","correctAnswerNotSelected","incorrectSelection","key","common","undo","correct","incorrect","showCorrectAnswer","hideCorrectAnswer","commonCorrectAnswerWithAlternates","warning","showNote","hideNote","cancel"],"sources":["../src/en.js"],"sourcesContent":["export default {\n translation: {\n categorize: {\n limitMaxChoicesPerCategory:\n 'You\\'ve reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.',\n maxChoicesPerCategoryRestriction:\n 'To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s].',\n },\n ebsr: {\n part: 'Part {{index}}',\n },\n numberLine: {\n addElementLimit_one: 'You can only add {{count}} element',\n addElementLimit_other: 'You can only add {{count}} elements',\n clearAll: 'Clear all',\n },\n imageClozeAssociation: {\n reachedLimit_one:\n 'You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.',\n reachedLimit_other: 'Full',\n },\n drawingResponse: {\n fillColor: 'Fill color',\n outlineColor: 'Outline color',\n noFill: 'No fill',\n lightblue: 'Light blue',\n lightyellow: 'Light yellow',\n red: 'Red',\n orange: 'Orange',\n yellow: 'Yellow',\n violet: 'Violet',\n blue: 'Blue',\n green: 'Green',\n white: 'White',\n black: 'Black',\n onDoubleClick: 'Double click to edit this text. Press Enter to submit.',\n },\n charting: {\n addCategory: 'Add category',\n actions: 'Actions',\n add: 'Add',\n delete: 'Delete',\n newLabel: 'New label',\n reachedLimit_other: \"There can't be more than {{count}} categories.\",\n keyLegend: {\n incorrectAnswer: 'Student incorrect answer',\n correctAnswer: 'Student correct answer',\n correctKeyAnswer: 'Answer key correct',\n },\n },\n graphing: {\n point: 'Point',\n circle: 'Circle',\n line: 'Line',\n parabola: 'Parabola',\n absolute: 'Absolute Value',\n exponential: 'Exponential',\n polygon: 'Polygon',\n ray: 'Ray',\n segment: 'Segment',\n sine: 'Sine',\n vector: 'Vector',\n label: 'Label',\n redo: 'Redo',\n reset: 'Reset',\n },\n mathInline: {\n primaryCorrectWithAlternates:\n '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.',\n },\n multipleChoice: {\n minSelections: 'Select at least {{minSelections}}.',\n maxSelections_one: 'Only {{maxSelections}} answer is allowed.',\n maxSelections_other: 'Only {{maxSelections}} answers are allowed.',\n minmaxSelections_equal: 'Select {{minSelections}}.',\n minmaxSelections_range: 'Select between {{minSelections}} and {{maxSelections}}.',\n },\n selectText: {\n correctAnswerSelected: 'Correct',\n correctAnswerNotSelected: 'Correct Answer Not Selected',\n incorrectSelection: 'Incorrect Selection',\n key: 'Key',\n },\n },\n common: {\n undo: 'Undo',\n clearAll: 'Clear all',\n correct: 'Correct',\n incorrect: 'Incorrect',\n showCorrectAnswer: 'Show correct answer',\n hideCorrectAnswer: 'Hide correct answer',\n commonCorrectAnswerWithAlternates:\n '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.',\n warning: 'Warning',\n showNote: 'Show Note',\n hideNote: 'Hide Note',\n cancel: 'Cancel',\n },\n};\n"],"mappings":";;;;;;oCAAe;EACbA,WAAW,EAAE;IACXC,UAAU,EAAE;MACVC,0BAA0B,EACxB,gIAAgI;MAClIC,gCAAgC,EAC9B;IACJ,CAAC;IACDC,IAAI,EAAE;MACJC,IAAI,EAAE;IACR,CAAC;IACDC,UAAU,EAAE;MACVC,mBAAmB,EAAE,oCAAoC;MACzDC,qBAAqB,EAAE,qCAAqC;MAC5DC,QAAQ,EAAE;IACZ,CAAC;IACDC,qBAAqB,EAAE;MACrBC,gBAAgB,EACd,8GAA8G;MAChHC,kBAAkB,EAAE;IACtB,CAAC;IACDC,eAAe,EAAE;MACfC,SAAS,EAAE,YAAY;MACvBC,YAAY,EAAE,eAAe;MAC7BC,MAAM,EAAE,SAAS;MACjBC,SAAS,EAAE,YAAY;MACvBC,WAAW,EAAE,cAAc;MAC3BC,GAAG,EAAE,KAAK;MACVC,MAAM,EAAE,QAAQ;MAChBC,MAAM,EAAE,QAAQ;MAChBC,MAAM,EAAE,QAAQ;MAChBC,IAAI,EAAE,MAAM;MACZC,KAAK,EAAE,OAAO;MACdC,KAAK,EAAE,OAAO;MACdC,KAA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AAiB,EAAE,qBAAqB;IACxCC,iCAAiC,EAC/B,gLAAgL;IAClLC,OAAO,EAAE,SAAS;IAClBC,QAAQ,EAAE,WAAW;IACrBC,QAAQ,EAAE,WAAW;IACrBC,MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
package/lib/es.js CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports["default"] = void 0;
7
- var _default = {
7
+ var _default = exports["default"] = {
8
8
  translation: {
9
9
  categorize: {
10
10
  limitMaxChoicesPerCategory: 'Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.',
@@ -98,5 +98,4 @@ var _default = {
98
98
  cancel: 'Cancelar'
99
99
  }
100
100
  };
101
- exports["default"] = _default;
102
101
  //# sourceMappingURL=es.js.map
package/lib/es.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/es.js"],"names":["translation","categorize","limitMaxChoicesPerCategory","maxChoicesPerCategoryRestriction","ebsr","part","numberLine","addElementLimit_one","addElementLimit_other","clearAll","imageClozeAssociation","reachedLimit_one","reachedLimit_other","drawingResponse","fillColor","outlineColor","noFill","lightblue","lightyellow","red","orange","yellow","violet","blue","green","white","black","onDoubleClick","charting","addCategory","actions","add","newLabel","keyLegend","incorrectAnswer","correctAnswer","correctKeyAnswer","graphing","point","circle","line","parabola","absolute","exponential","polygon","ray","segment","sine","vector","label","redo","reset","mathInline","primaryCorrectWithAlternates","multipleChoice","minSelections","maxSelections_one","maxSelections_other","minmaxSelections_equal","minmaxSelections_range","selectText","correctAnswerSelected","correctAnswerNotSelected","incorrectSelection","key","common","undo","correct","incorrect","showCorrectAnswer","hideCorrectAnswer","commonCorrectAnswerWithAlternates","warning","showNote","hideNote","cancel"],"mappings":";;;;;;eAAe;AACbA,EAAAA,WAAW,EAAE;AACXC,IAAAA,UAAU,EAAE;AACVC,MAAAA,0BAA0B,EACxB,gJAFQ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AAAA,QAAQ,EAAE,cAXJ;AAYNC,IAAAA,MAAM,EAAE;AAZF;AApFK,C","sourcesContent":["export default {\n translation: {\n categorize: {\n limitMaxChoicesPerCategory:\n 'Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.',\n maxChoicesPerCategoryRestriction:\n 'Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta',\n },\n ebsr: {\n part: 'Parte {{index}}',\n },\n numberLine: {\n addElementLimit_one: 'Solo puedes agregar {{count}} elemento',\n addElementLimit_other: 'Solo puedes agregar {{count}} elementos',\n clearAll: 'Borrar todo',\n },\n imageClozeAssociation: {\n reachedLimit_one:\n 'Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.',\n reachedLimit_other: 'Lleno',\n },\n drawingResponse: {\n fillColor: 'Color de relleno',\n outlineColor: 'Color del contorno',\n noFill: 'Sin relleno',\n lightblue: 'Azul claro',\n lightyellow: 'Amarillo claro',\n red: 'Rojo',\n orange: 'Naranja',\n yellow: 'Amarillo',\n violet: 'Violeta',\n blue: 'Azul',\n green: 'Verde',\n white: 'Blanco',\n black: 'Negro',\n onDoubleClick: 'Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar',\n },\n charting: {\n addCategory: 'Añadir categoría',\n actions: 'Acciones',\n add: 'Añadir',\n delete: 'Eliminar',\n newLabel: 'Nueva etiqueta',\n reachedLimit_other: 'No puede haber más de {{count}} categorías.',\n keyLegend: {\n incorrectAnswer: 'Respuesta incorrecta del estudiante',\n correctAnswer: 'Respuesta correcta del estudiante',\n correctKeyAnswer: 'Clave de respuesta correcta',\n },\n },\n graphing: {\n point: 'Punto',\n circle: 'Circulo',\n line: 'Línea',\n parabola: 'Parábola',\n absolute: 'Valor absoluto',\n exponential: 'Exponencial',\n polygon: 'Polígono',\n ray: 'Semirrecta',\n segment: 'Segmento ',\n sine: 'Seno',\n vector: 'Vector',\n label: 'Etiqueta',\n redo: 'Rehacer',\n reset: 'Reiniciar',\n },\n mathInline: {\n primaryCorrectWithAlternates:\n '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.',\n },\n multipleChoice: {\n minSelections: 'Seleccione al menos {{minSelections}}.',\n maxSelections_one: 'Sólo se permite {{maxSelections}} respuesta.',\n maxSelections_other: 'Sólo se permiten {{maxSelections}} respuestas.',\n minmaxSelections_equal: 'Seleccione {{minSelections}}.',\n minmaxSelections_range: 'Seleccione entre {{minSelections}} y {{maxSelections}}.',\n },\n selectText: {\n correctAnswerSelected: 'Respuesta Correcta',\n correctAnswerNotSelected: 'Respuesta Correcta No Seleccionada',\n incorrectSelection: 'Selección Incorrecta',\n key: 'Clave',\n },\n },\n common: {\n undo: 'Deshacer',\n clearAll: 'Borrar todo',\n correct: 'Correct',\n incorrect: 'Incorrect',\n showCorrectAnswer: 'Mostrar respuesta correcta',\n hideCorrectAnswer: 'Ocultar respuesta correcta',\n commonCorrectAnswerWithAlternates:\n '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.',\n warning: 'Advertencia',\n showNote: 'Mostrar Nota',\n hideNote: 'Ocultar Nota',\n cancel: 'Cancelar',\n },\n};\n"],"file":"es.js"}
1
+ {"version":3,"file":"es.js","names":["translation","categorize","limitMaxChoicesPerCategory","maxChoicesPerCategoryRestriction","ebsr","part","numberLine","addElementLimit_one","addElementLimit_other","clearAll","imageClozeAssociation","reachedLimit_one","reachedLimit_other","drawingResponse","fillColor","outlineColor","noFill","lightblue","lightyellow","red","orange","yellow","violet","blue","green","white","black","onDoubleClick","charting","addCategory","actions","add","newLabel","keyLegend","incorrectAnswer","correctAnswer","correctKeyAnswer","graphing","point","circle","line","parabola","absolute","exponential","polygon","ray","segment","sine","vector","label","redo","reset","mathInline","primaryCorrectWithAlternates","multipleChoice","minSelections","maxSelections_one","maxSelections_other","minmaxSelections_equal","minmaxSelections_range","selectText","correctAnswerSelected","correctAnswerNotSelected","incorrectSelection","key","common","undo","correct","incorrect","showCorrectAnswer","hideCorrectAnswer","commonCorrectAnswerWithAlternates","warning","showNote","hideNote","cancel"],"sources":["../src/es.js"],"sourcesContent":["export default {\n translation: {\n categorize: {\n limitMaxChoicesPerCategory:\n 'Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.',\n maxChoicesPerCategoryRestriction:\n 'Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta',\n },\n ebsr: {\n part: 'Parte {{index}}',\n },\n numberLine: {\n addElementLimit_one: 'Solo puedes agregar {{count}} elemento',\n addElementLimit_other: 'Solo puedes agregar {{count}} elementos',\n clearAll: 'Borrar todo',\n },\n imageClozeAssociation: {\n reachedLimit_one:\n 'Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.',\n reachedLimit_other: 'Lleno',\n },\n drawingResponse: {\n fillColor: 'Color de relleno',\n outlineColor: 'Color del contorno',\n noFill: 'Sin relleno',\n lightblue: 'Azul claro',\n lightyellow: 'Amarillo claro',\n red: 'Rojo',\n orange: 'Naranja',\n yellow: 'Amarillo',\n violet: 'Violeta',\n blue: 'Azul',\n green: 'Verde',\n white: 'Blanco',\n black: 'Negro',\n onDoubleClick: 'Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar',\n },\n charting: {\n addCategory: 'Añadir categoría',\n actions: 'Acciones',\n add: 'Añadir',\n delete: 'Eliminar',\n newLabel: 'Nueva etiqueta',\n reachedLimit_other: 'No puede haber más de {{count}} categorías.',\n keyLegend: {\n incorrectAnswer: 'Respuesta incorrecta del estudiante',\n correctAnswer: 'Respuesta correcta del estudiante',\n correctKeyAnswer: 'Clave de respuesta correcta',\n },\n },\n graphing: {\n point: 'Punto',\n circle: 'Circulo',\n line: 'Línea',\n parabola: 'Parábola',\n absolute: 'Valor absoluto',\n exponential: 'Exponencial',\n polygon: 'Polígono',\n ray: 'Semirrecta',\n segment: 'Segmento ',\n sine: 'Seno',\n vector: 'Vector',\n label: 'Etiqueta',\n redo: 'Rehacer',\n reset: 'Reiniciar',\n },\n mathInline: {\n primaryCorrectWithAlternates:\n '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.',\n },\n multipleChoice: {\n minSelections: 'Seleccione al menos {{minSelections}}.',\n maxSelections_one: 'Sólo se permite {{maxSelections}} respuesta.',\n maxSelections_other: 'Sólo se permiten {{maxSelections}} respuestas.',\n minmaxSelections_equal: 'Seleccione {{minSelections}}.',\n minmaxSelections_range: 'Seleccione entre {{minSelections}} y {{maxSelections}}.',\n },\n selectText: {\n correctAnswerSelected: 'Respuesta Correcta',\n correctAnswerNotSelected: 'Respuesta Correcta No Seleccionada',\n incorrectSelection: 'Selección Incorrecta',\n key: 'Clave',\n },\n },\n common: {\n undo: 'Deshacer',\n clearAll: 'Borrar todo',\n correct: 'Correct',\n incorrect: 'Incorrect',\n showCorrectAnswer: 'Mostrar respuesta correcta',\n hideCorrectAnswer: 'Ocultar respuesta correcta',\n commonCorrectAnswerWithAlternates:\n '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.',\n warning: 'Advertencia',\n showNote: 'Mostrar Nota',\n hideNote: 'Ocultar Nota',\n cancel: 'Cancelar',\n },\n};\n"],"mappings":";;;;;;oCAAe;EACbA,WAAW,EAAE;IACXC,UAAU,EAAE;MACVC,0BAA0B,EACxB,gJAAgJ;MAClJC,gCAAgC,EAC9B;IACJ,CAAC;IACDC,IAAI,EAAE;MACJC,IAAI,EAAE;IACR,CAAC;IACDC,UAAU,EAAE;MACVC,mBAAmB,EAAE,wCAAwC;MAC7DC,qBAA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CAAC;IACDC,cAAc,EAAE;MACdC,aAAa,EAAE,wCAAwC;MACvDC,iBAAiB,EAAE,8CAA8C;MACjEC,mBAAmB,EAAE,gDAAgD;MACrEC,sBAAsB,EAAE,+BAA+B;MACvDC,sBAAsB,EAAE;IAC1B,CAAC;IACDC,UAAU,EAAE;MACVC,qBAAqB,EAAE,oBAAoB;MAC3CC,wBAAwB,EAAE,oCAAoC;MAC9DC,kBAAkB,EAAE,sBAAsB;MAC1CC,GAAG,EAAE;IACP;EACF,CAAC;EACDC,MAAM,EAAE;IACNC,IAAI,EAAE,UAAU;IAChBzD,QAAQ,EAAE,aAAa;IACvB0D,OAAO,EAAE,SAAS;IAClBC,SAAS,EAAE,WAAW;IACtBC,iBAAiB,EAAE,4BAA4B;IAC/CC,iBAAiB,EAAE,4BAA4B;IAC/CC,iCAAiC,EAC/B,yMAAyM;IAC3MC,OAAO,EAAE,aAAa;IACtBC,QAAQ,EAAE,cAAc;IACxBC,QAAQ,EAAE,cAAc;IACxBC,MAAM,EAAE;EACV;AACF,CAAC","ignoreList":[]}
package/lib/index.js CHANGED
@@ -1,24 +1,16 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports["default"] = void 0;
9
-
10
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
11
-
12
9
  var _i18next = _interopRequireDefault(require("i18next"));
13
-
14
10
  var _en = _interopRequireDefault(require("./en"));
15
-
16
11
  var _es = _interopRequireDefault(require("./es"));
17
-
18
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
19
-
20
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
21
-
12
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
22
14
  _i18next["default"].init({
23
15
  fallbackLng: 'en',
24
16
  lng: 'en',
@@ -28,30 +20,25 @@ _i18next["default"].init({
28
20
  es: _es["default"]
29
21
  }
30
22
  });
31
-
32
- var _default = {
23
+ var _default = exports["default"] = {
33
24
  translator: _objectSpread(_objectSpread({}, _i18next["default"]), {}, {
34
25
  t: function t(key, options) {
35
26
  var lng = options.lng;
36
-
37
27
  switch (lng) {
38
28
  // these keys don't work with plurals, don't know why, so I added a workaround to convert them to the correct lng
39
29
  case 'en_US':
40
30
  case 'en-US':
41
31
  options.lng = 'en';
42
32
  break;
43
-
44
33
  case 'es_ES':
45
34
  case 'es-ES':
46
35
  case 'es_MX':
47
36
  case 'es-MX':
48
37
  options.lng = 'es';
49
38
  break;
50
-
51
39
  default:
52
40
  break;
53
41
  }
54
-
55
42
  return _i18next["default"].t(key, _objectSpread({
56
43
  lng: lng
57
44
  }, options));
@@ -65,5 +52,4 @@ var _default = {
65
52
  label: 'Spanish'
66
53
  }]
67
54
  };
68
- exports["default"] = _default;
69
55
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.js"],"names":["i18next","init","fallbackLng","lng","debug","resources","en","es","translator","t","key","options","languageOptions","value","label"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AACA;;;;;;AAEAA,oBAAQC,IAAR,CAAa;AACXC,EAAAA,WAAW,EAAE,IADF;AAEXC,EAAAA,GAAG,EAAE,IAFM;AAGXC,EAAAA,KAAK,EAAE,IAHI;AAIXC,EAAAA,SAAS,EAAE;AACTC,IAAAA,EAAE,EAAEA,cADK;AAETC,IAAAA,EAAE,EAAEA;AAFK;AAJA,CAAb;;eAUe;AACbC,EAAAA,UAAU,kCACLR,mBADK;AAERS,IAAAA,CAAC,EAAE,WAACC,GAAD,EAAMC,OAAN,EAAkB;AACnB,UAAQR,GAAR,GAAgBQ,OAAhB,CAAQR,GAAR;;AAEA,cAAQA,GAAR;AACE;AACA,aAAK,OAAL;AACA,aAAK,OAAL;AACEQ,UAAAA,OAAO,CAACR,GAAR,GAAc,IAAd;AACA;;AACF,aAAK,OAAL;AACA,aAAK,OAAL;AACA,aAAK,OAAL;AACA,aAAK,OAAL;AACEQ,UAAAA,OAAO,CAACR,GAAR,GAAc,IAAd;AACA;;AACF;AACE;AAbJ;;AAeA,aAAOH,oBAAQS,CAAR,CAAUC,GAAV;AAAiBP,QAAAA,GAAG,EAAHA;AAAjB,SAAyBQ,OAAzB,EAAP;AACD;AArBO,IADG;AAwBbC,EAAAA,eAAe,EAAE,CACf;AAAEC,IAAAA,KAAK,EAAE,OAAT;AAAkBC,IAAAA,KAAK,EAAE;AAAzB,GADe,EAEf;AAAED,IAAAA,KAAK,EAAE,OAAT;AAAkBC,IAAAA,KAAK,EAAE;AAAzB,GAFe;AAxBJ,C","sourcesContent":["import i18next from 'i18next';\nimport en from './en';\nimport es from './es';\n\ni18next.init({\n fallbackLng: 'en',\n lng: 'en',\n debug: true,\n resources: {\n en: en,\n es: es,\n },\n});\n\nexport default {\n translator: {\n ...i18next,\n t: (key, options) => {\n const { lng } = options;\n\n switch (lng) {\n // these keys don't work with plurals, don't know why, so I added a workaround to convert them to the correct lng\n case 'en_US':\n case 'en-US':\n options.lng = 'en';\n break;\n case 'es_ES':\n case 'es-ES':\n case 'es_MX':\n case 'es-MX':\n options.lng = 'es';\n break;\n default:\n break;\n }\n return i18next.t(key, { lng, ...options });\n },\n },\n languageOptions: [\n { value: 'en_US', label: 'English (US)' },\n { value: 'es_ES', label: 'Spanish' },\n ],\n};\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":["_i18next","_interopRequireDefault","require","_en","_es","ownKeys","e","r","t","Object","keys","getOwnPropertySymbols","o","filter","getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","defineProperty","i18next","init","fallbackLng","lng","debug","resources","en","es","_default","exports","translator","key","options","languageOptions","value","label"],"sources":["../src/index.js"],"sourcesContent":["import i18next from 'i18next';\nimport en from './en';\nimport es from './es';\n\ni18next.init({\n fallbackLng: 'en',\n lng: 'en',\n debug: true,\n resources: {\n en: en,\n es: es,\n },\n});\n\nexport default {\n translator: {\n ...i18next,\n t: (key, options) => {\n const { lng } = options;\n\n switch (lng) {\n // these keys don't work with plurals, don't know why, so I added a workaround to convert them to the correct lng\n case 'en_US':\n case 'en-US':\n options.lng = 'en';\n break;\n case 'es_ES':\n case 'es-ES':\n case 'es_MX':\n case 'es-MX':\n options.lng = 'es';\n break;\n default:\n break;\n }\n return i18next.t(key, { lng, ...options });\n },\n },\n languageOptions: [\n { value: 'en_US', label: 'English (US)' },\n { value: 'es_ES', label: 'Spanish' },\n ],\n};\n"],"mappings":";;;;;;;;AAAA,IAAAA,QAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,G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E;IACNC,EAAE,EAAEA;EACN;AACF,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,cAEY;EACbC,UAAU,EAAAlB,aAAA,CAAAA,aAAA,KACLQ,mBAAO;IACVlB,CAAC,EAAE,SAAHA,CAACA,CAAG6B,GAAG,EAAEC,OAAO,EAAK;MACnB,IAAQT,GAAG,GAAKS,OAAO,CAAfT,GAAG;MAEX,QAAQA,GAAG;QACT;QACA,KAAK,OAAO;QACZ,KAAK,OAAO;UACVS,OAAO,CAACT,GAAG,GAAG,IAAI;UAClB;QACF,KAAK,OAAO;QACZ,KAAK,OAAO;QACZ,KAAK,OAAO;QACZ,KAAK,OAAO;UACVS,OAAO,CAACT,GAAG,GAAG,IAAI;UAClB;QACF;UACE;MACJ;MACA,OAAOH,mBAAO,CAAClB,CAAC,CAAC6B,GAAG,EAAAnB,aAAA;QAAIW,GAAG,EAAHA;MAAG,GAAKS,OAAO,CAAE,CAAC;IAC5C;EAAC,EACF;EACDC,eAAe,EAAE,CACf;IAAEC,KAAK,EAAE,OAAO;IAAEC,KAAK,EAAE;EAAe,CAAC,EACzC;IAAED,KAAK,EAAE,OAAO;IAAEC,KAAK,EAAE;EAAU,CAAC;AAExC,CAAC","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pie-lib/translator",
3
- "version": "2.23.2-next.0+19a7ac5d",
3
+ "version": "2.23.2-next.164+09821f09",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -11,8 +11,20 @@
11
11
  "i18next": "^22.5.0",
12
12
  "lodash": "^4.17.11",
13
13
  "prop-types": "^15.7.2",
14
- "react": "^16.8.1",
15
- "react-dom": "^16.9.0"
14
+ "react": "^18.2.0",
15
+ "react-dom": "^18.2.0"
16
16
  },
17
- "gitHead": "19a7ac5d429f1c5fe9138faff9981720f8c9e294"
17
+ "resolutions": {
18
+ "react": "18.2.0",
19
+ "react-dom": "18.2.0"
20
+ },
21
+ "gitHead": "09821f09cfcaee178971c57f4134645350be2222",
22
+ "exports": {
23
+ ".": {
24
+ "require": "./lib/index.js",
25
+ "import": "./src/index.js",
26
+ "default": "./lib/index.js"
27
+ },
28
+ "./esm": "./esm/index.js"
29
+ }
18
30
  }
@@ -0,0 +1,278 @@
1
+ import React from 'react';
2
+ import { render, screen, waitFor } from '@testing-library/react';
3
+ import userEvent from '@testing-library/user-event';
4
+ import translatorExport from '../index';
5
+
6
+ describe('Translator', () => {
7
+ const { translator, languageOptions } = translatorExport;
8
+
9
+ describe('Initialization', () => {
10
+ it('should export translator object with i18next methods', () => {
11
+ expect(translator).toBeDefined();
12
+ expect(typeof translator.t).toBe('function');
13
+ });
14
+
15
+ it('should have default language set to English', () => {
16
+ expect(translator.language).toBe('en');
17
+ });
18
+
19
+ it('should export language options', () => {
20
+ expect(languageOptions).toBeDefined();
21
+ expect(Array.isArray(languageOptions)).toBe(true);
22
+ });
23
+
24
+ it('should have correct language options', () => {
25
+ expect(languageOptions).toEqual([
26
+ { value: 'en_US', label: 'English (US)' },
27
+ { value: 'es_ES', label: 'Spanish' },
28
+ ]);
29
+ });
30
+ });
31
+
32
+ describe('Translation Function', () => {
33
+ it('should translate a key in English', () => {
34
+ const result = translator.t('categorize.limitMaxChoicesPerCategory', {
35
+ lng: 'en_US',
36
+ maxChoicesPerCategory: 5,
37
+ });
38
+ expect(result).toContain('5');
39
+ expect(result).toContain('responses per area');
40
+ });
41
+
42
+ it('should translate a key in Spanish', () => {
43
+ const result = translator.t('categorize.limitMaxChoicesPerCategory', {
44
+ lng: 'es_ES',
45
+ maxChoicesPerCategory: 5,
46
+ });
47
+ expect(result).toBeDefined();
48
+ expect(typeof result).toBe('string');
49
+ });
50
+
51
+ it('should handle en_US locale and convert it to en', () => {
52
+ const result = translator.t('categorize.limitMaxChoicesPerCategory', {
53
+ lng: 'en_US',
54
+ maxChoicesPerCategory: 5,
55
+ });
56
+ expect(result).toContain('5');
57
+ });
58
+
59
+ it('should handle en-US locale and convert it to en', () => {
60
+ const result = translator.t('categorize.limitMaxChoicesPerCategory', {
61
+ lng: 'en-US',
62
+ maxChoicesPerCategory: 5,
63
+ });
64
+ expect(result).toContain('5');
65
+ });
66
+
67
+ it('should handle es_ES locale and convert it to es', () => {
68
+ const result = translator.t('categorize.limitMaxChoicesPerCategory', {
69
+ lng: 'es_ES',
70
+ maxChoicesPerCategory: 5,
71
+ });
72
+ expect(result).toBeDefined();
73
+ expect(typeof result).toBe('string');
74
+ });
75
+
76
+ it('should handle es-ES locale and convert it to es', () => {
77
+ const result = translator.t('categorize.limitMaxChoicesPerCategory', {
78
+ lng: 'es-ES',
79
+ maxChoicesPerCategory: 5,
80
+ });
81
+ expect(result).toBeDefined();
82
+ expect(typeof result).toBe('string');
83
+ });
84
+
85
+ it('should handle es_MX locale and convert it to es', () => {
86
+ const result = translator.t('categorize.limitMaxChoicesPerCategory', {
87
+ lng: 'es_MX',
88
+ maxChoicesPerCategory: 5,
89
+ });
90
+ expect(result).toBeDefined();
91
+ expect(typeof result).toBe('string');
92
+ });
93
+
94
+ it('should handle es-MX locale and convert it to es', () => {
95
+ const result = translator.t('categorize.limitMaxChoicesPerCategory', {
96
+ lng: 'es-MX',
97
+ maxChoicesPerCategory: 5,
98
+ });
99
+ expect(result).toBeDefined();
100
+ expect(typeof result).toBe('string');
101
+ });
102
+
103
+ it('should translate pluralized keys correctly', () => {
104
+ const resultOne = translator.t('numberLine.addElementLimit', {
105
+ lng: 'en',
106
+ count: 1,
107
+ });
108
+ expect(resultOne).toContain('1');
109
+ expect(resultOne).toContain('element');
110
+
111
+ const resultMultiple = translator.t('numberLine.addElementLimit', {
112
+ lng: 'en',
113
+ count: 5,
114
+ });
115
+ expect(resultMultiple).toContain('5');
116
+ expect(resultMultiple).toContain('elements');
117
+ });
118
+
119
+ it('should handle nested translation keys', () => {
120
+ const result = translator.t('charting.keyLegend.correctAnswer', {
121
+ lng: 'en',
122
+ });
123
+ expect(result).toContain('correct answer');
124
+ });
125
+
126
+ it('should return the key when translation is not found', () => {
127
+ const result = translator.t('nonexistent.key', {
128
+ lng: 'en',
129
+ });
130
+ expect(result).toBeDefined();
131
+ // i18next returns the key itself when translation is not found
132
+ expect(typeof result).toBe('string');
133
+ });
134
+
135
+ it('should support interpolation with multiple variables', () => {
136
+ const result = translator.t('categorize.maxChoicesPerCategoryRestriction', {
137
+ lng: 'en',
138
+ maxChoicesPerCategory: 10,
139
+ });
140
+ expect(result).toContain('10');
141
+ });
142
+ });
143
+
144
+ describe('i18next Methods', () => {
145
+ it('should have i18next methods available', () => {
146
+ expect(typeof translator.changeLanguage).toBe('function');
147
+ expect(typeof translator.getFixedT).toBe('function');
148
+ });
149
+
150
+ it('should have resources defined', () => {
151
+ expect(translator.getResourceBundle).toBeDefined();
152
+ const enBundle = translator.getResourceBundle('en', 'translation');
153
+ expect(enBundle).toBeDefined();
154
+ expect(enBundle.categorize).toBeDefined();
155
+ });
156
+ });
157
+
158
+ describe('Translation Keys Coverage', () => {
159
+ it('should have categorize translations', () => {
160
+ const result = translator.t('categorize.limitMaxChoicesPerCategory', {
161
+ lng: 'en',
162
+ maxChoicesPerCategory: 5,
163
+ });
164
+ expect(result).not.toBe('categorize.limitMaxChoicesPerCategory');
165
+ });
166
+
167
+ it('should have ebsr translations', () => {
168
+ const result = translator.t('ebsr.part', {
169
+ lng: 'en',
170
+ index: 1,
171
+ });
172
+ expect(result).toContain('Part');
173
+ });
174
+
175
+ it('should have numberLine translations', () => {
176
+ const result = translator.t('numberLine.clearAll', {
177
+ lng: 'en',
178
+ });
179
+ expect(result).toBe('Clear all');
180
+ });
181
+
182
+ it('should have charting translations', () => {
183
+ const result = translator.t('charting.add', {
184
+ lng: 'en',
185
+ });
186
+ expect(result).toBe('Add');
187
+ });
188
+
189
+ it('should have drawingResponse translations', () => {
190
+ const result = translator.t('drawingResponse.fillColor', {
191
+ lng: 'en',
192
+ });
193
+ expect(result).toBe('Fill color');
194
+ });
195
+
196
+ it('should have imageClozeAssociation translations', () => {
197
+ const result = translator.t('imageClozeAssociation.reachedLimit_one', {
198
+ lng: 'en',
199
+ count: 1,
200
+ });
201
+ expect(result).toBeDefined();
202
+ expect(typeof result).toBe('string');
203
+ });
204
+ });
205
+
206
+ describe('Language Fallback', () => {
207
+ it('should fallback to English when translation is missing in other language', () => {
208
+ const result = translator.t('ebsr.part', {
209
+ lng: 'es',
210
+ index: 1,
211
+ });
212
+ expect(result).toBeDefined();
213
+ expect(typeof result).toBe('string');
214
+ });
215
+
216
+ it('should handle undefined language and fallback gracefully', () => {
217
+ const result = translator.t('charting.add', {
218
+ lng: undefined,
219
+ });
220
+ expect(result).toBeDefined();
221
+ expect(typeof result).toBe('string');
222
+ });
223
+ });
224
+
225
+ describe('Component Integration', () => {
226
+ // Test with a simple component that uses the translator
227
+ const TranslatorTestComponent = ({ lng = 'en' }) => {
228
+ const { t } = translator;
229
+ const translated = t('charting.add', { lng });
230
+
231
+ return (
232
+ <div>
233
+ <button data-testid="translate-btn">
234
+ {translated}
235
+ </button>
236
+ </div>
237
+ );
238
+ };
239
+
240
+ it('should render translated content in a component', () => {
241
+ render(<TranslatorTestComponent lng="en" />);
242
+ const button = screen.getByTestId('translate-btn');
243
+ expect(button).toBeInTheDocument();
244
+ expect(button).toHaveTextContent('Add');
245
+ });
246
+
247
+ it('should update translated content when language changes', async () => {
248
+ const { rerender } = render(<TranslatorTestComponent lng="en" />);
249
+ const button = screen.getByTestId('translate-btn');
250
+ expect(button).toHaveTextContent('Add');
251
+
252
+ rerender(<TranslatorTestComponent lng="es" />);
253
+ await waitFor(() => {
254
+ expect(button).toBeInTheDocument();
255
+ });
256
+ });
257
+
258
+ it('should handle user interactions with translated content', async () => {
259
+ const user = userEvent.setup();
260
+ const handleClick = jest.fn();
261
+
262
+ const InteractiveComponent = () => {
263
+ const { t } = translator;
264
+ return (
265
+ <button onClick={handleClick} data-testid="interactive-btn">
266
+ {t('charting.delete', { lng: 'en' })}
267
+ </button>
268
+ );
269
+ };
270
+
271
+ render(<InteractiveComponent />);
272
+ const button = screen.getByTestId('interactive-btn');
273
+
274
+ await user.click(button);
275
+ expect(handleClick).toHaveBeenCalledTimes(1);
276
+ });
277
+ });
278
+ });
package/src/en.js CHANGED
@@ -2,7 +2,7 @@ export default {
2
2
  translation: {
3
3
  categorize: {
4
4
  limitMaxChoicesPerCategory:
5
- "You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.",
5
+ 'You\'ve reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.',
6
6
  maxChoicesPerCategoryRestriction:
7
7
  'To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s].',
8
8
  },