@pie-element/math-inline 10.0.1-next.27 → 10.0.1-next.28
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/configure/package.json +6 -6
- package/controller/package.json +2 -2
- package/module/controller.js +116 -74
- package/module/element.js +1 -1
- package/module/manifest.json +0 -4
- package/module/print.js +1 -1
- package/package.json +8 -8
package/configure/package.json
CHANGED
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
"@material-ui/icons": "^3.0.1",
|
|
12
12
|
"@pie-framework/mathquill": "^1.1.3",
|
|
13
13
|
"@pie-framework/pie-configure-events": "^1.3.0",
|
|
14
|
-
"@pie-lib/config-ui": "^11.25.
|
|
15
|
-
"@pie-lib/editable-html": "^11.17.
|
|
16
|
-
"@pie-lib/math-rendering": "^3.
|
|
17
|
-
"@pie-lib/math-toolbar": "^1.27.
|
|
18
|
-
"@pie-lib/render-ui": "^4.31.
|
|
19
|
-
"@pie-lib/test-utils": "^0.
|
|
14
|
+
"@pie-lib/config-ui": "^11.25.1",
|
|
15
|
+
"@pie-lib/editable-html": "^11.17.1",
|
|
16
|
+
"@pie-lib/math-rendering": "^3.19.4",
|
|
17
|
+
"@pie-lib/math-toolbar": "^1.27.1",
|
|
18
|
+
"@pie-lib/render-ui": "^4.31.1",
|
|
19
|
+
"@pie-lib/test-utils": "^0.19.5",
|
|
20
20
|
"classnames": "^2.2.5",
|
|
21
21
|
"debug": "^3.1.0",
|
|
22
22
|
"prop-types": "^15.6.2",
|
package/controller/package.json
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@pie-framework/math-validation": "^1.4.2",
|
|
13
|
-
"@pie-lib/feedback": "^0.
|
|
14
|
-
"@pie-lib/translator": "^2.
|
|
13
|
+
"@pie-lib/feedback": "^0.21.4",
|
|
14
|
+
"@pie-lib/translator": "^2.20.4",
|
|
15
15
|
"debug": "^3.1.0",
|
|
16
16
|
"lodash": "^4.17.15"
|
|
17
17
|
},
|
package/module/controller.js
CHANGED
|
@@ -976,41 +976,68 @@ function isEmpty(value) {
|
|
|
976
976
|
|
|
977
977
|
var isEmpty_1 = isEmpty;
|
|
978
978
|
|
|
979
|
+
function _extends$1() {
|
|
980
|
+
_extends$1 = Object.assign || function (target) {
|
|
981
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
982
|
+
var source = arguments[i];
|
|
983
|
+
|
|
984
|
+
for (var key in source) {
|
|
985
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
986
|
+
target[key] = source[key];
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
return target;
|
|
992
|
+
};
|
|
993
|
+
|
|
994
|
+
return _extends$1.apply(this, arguments);
|
|
995
|
+
}
|
|
996
|
+
|
|
979
997
|
const defaults$1 = {
|
|
980
|
-
correct: {
|
|
981
|
-
|
|
982
|
-
|
|
998
|
+
correct: {
|
|
999
|
+
type: 'default',
|
|
1000
|
+
default: 'Correct',
|
|
1001
|
+
custom: 'Correct'
|
|
1002
|
+
},
|
|
1003
|
+
incorrect: {
|
|
1004
|
+
type: 'default',
|
|
1005
|
+
default: 'Incorrect',
|
|
1006
|
+
custom: 'Incorrect'
|
|
1007
|
+
},
|
|
1008
|
+
partial: {
|
|
1009
|
+
type: 'default',
|
|
1010
|
+
default: 'Nearly',
|
|
1011
|
+
custom: 'Nearly'
|
|
1012
|
+
},
|
|
983
1013
|
unanswered: {
|
|
984
1014
|
type: 'default',
|
|
985
1015
|
default: 'You have not entered a response',
|
|
986
|
-
custom: 'You have not entered a response'
|
|
987
|
-
}
|
|
1016
|
+
custom: 'You have not entered a response'
|
|
1017
|
+
}
|
|
988
1018
|
};
|
|
989
1019
|
|
|
990
|
-
// TODO: should replace getFeedbackForCorrectness
|
|
991
1020
|
/**
|
|
992
1021
|
* Get feedback for correctness
|
|
993
1022
|
* @param {'correct'|'incorrect'|'partial'} correctness
|
|
994
1023
|
* @param {Feedback} feedback
|
|
995
1024
|
*/
|
|
1025
|
+
|
|
996
1026
|
const getActualFeedbackForCorrectness = (correctness, feedback) => {
|
|
997
|
-
feedback = {
|
|
1027
|
+
feedback = _extends$1({}, defaults$1, feedback); // normalize correctness
|
|
998
1028
|
|
|
999
|
-
// normalize correctness
|
|
1000
1029
|
correctness = correctness === 'partially-correct' ? 'partial' : correctness;
|
|
1001
|
-
|
|
1002
1030
|
const defaultFeedback = defaults$1[correctness] || {};
|
|
1003
1031
|
const fb = feedback[correctness] || defaultFeedback;
|
|
1004
|
-
|
|
1005
1032
|
return getActualFeedback(fb, defaultFeedback[fb.type || 'default']);
|
|
1006
|
-
};
|
|
1033
|
+
}; // TODO: should replace getFeedback
|
|
1007
1034
|
|
|
1008
|
-
// TODO: should replace getFeedback
|
|
1009
1035
|
/**
|
|
1010
1036
|
* Get the feedback from a {FeedbackConfig}
|
|
1011
1037
|
* @param {FeedbackConfig} feedback
|
|
1012
1038
|
* @param {string} fallback
|
|
1013
1039
|
*/
|
|
1040
|
+
|
|
1014
1041
|
const getActualFeedback = (feedback, fallback) => {
|
|
1015
1042
|
if (!feedback || feedback.type === 'none') {
|
|
1016
1043
|
return undefined;
|
|
@@ -1653,7 +1680,7 @@ function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) {
|
|
|
1653
1680
|
function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1654
1681
|
function _isNativeReflectConstruct$2() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
1655
1682
|
var checkedLoadedFor = {};
|
|
1656
|
-
var Translator
|
|
1683
|
+
var Translator = function (_EventEmitter) {
|
|
1657
1684
|
_inherits(Translator, _EventEmitter);
|
|
1658
1685
|
var _super = _createSuper$2(Translator);
|
|
1659
1686
|
function Translator(services) {
|
|
@@ -3262,7 +3289,7 @@ var I18n = function (_EventEmitter) {
|
|
|
3262
3289
|
s.i18nFormat = createClassOnDemand(this.modules.i18nFormat);
|
|
3263
3290
|
if (s.i18nFormat.init) s.i18nFormat.init(this);
|
|
3264
3291
|
}
|
|
3265
|
-
this.translator = new Translator
|
|
3292
|
+
this.translator = new Translator(this.services, this.options);
|
|
3266
3293
|
this.translator.on('*', function (event) {
|
|
3267
3294
|
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
3268
3295
|
args[_key2 - 1] = arguments[_key2];
|
|
@@ -3622,7 +3649,7 @@ var I18n = function (_EventEmitter) {
|
|
|
3622
3649
|
clone.services.utils = {
|
|
3623
3650
|
hasLoadedNamespace: clone.hasLoadedNamespace.bind(clone)
|
|
3624
3651
|
};
|
|
3625
|
-
clone.translator = new Translator
|
|
3652
|
+
clone.translator = new Translator(clone.services, clone.options);
|
|
3626
3653
|
clone.translator.on('*', function (event) {
|
|
3627
3654
|
for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {
|
|
3628
3655
|
args[_key4 - 1] = arguments[_key4];
|
|
@@ -3673,26 +3700,41 @@ instance.hasLoadedNamespace;
|
|
|
3673
3700
|
instance.loadNamespaces;
|
|
3674
3701
|
instance.loadLanguages;
|
|
3675
3702
|
|
|
3703
|
+
function _extends() {
|
|
3704
|
+
_extends = Object.assign || function (target) {
|
|
3705
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
3706
|
+
var source = arguments[i];
|
|
3707
|
+
|
|
3708
|
+
for (var key in source) {
|
|
3709
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
3710
|
+
target[key] = source[key];
|
|
3711
|
+
}
|
|
3712
|
+
}
|
|
3713
|
+
}
|
|
3714
|
+
|
|
3715
|
+
return target;
|
|
3716
|
+
};
|
|
3717
|
+
|
|
3718
|
+
return _extends.apply(this, arguments);
|
|
3719
|
+
}
|
|
3720
|
+
|
|
3676
3721
|
var en = {
|
|
3677
3722
|
translation: {
|
|
3678
3723
|
categorize: {
|
|
3679
|
-
limitMaxChoicesPerCategory:
|
|
3680
|
-
|
|
3681
|
-
maxChoicesPerCategoryRestriction:
|
|
3682
|
-
'To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s].',
|
|
3724
|
+
limitMaxChoicesPerCategory: "You've reached the limit of {{maxChoicesPerCategory}} responses per area. To add another response, one must first be removed.",
|
|
3725
|
+
maxChoicesPerCategoryRestriction: 'To change this value to {{maxChoicesPerCategory}}, each category must have {{maxChoicesPerCategory}} or fewer answer choice[s].'
|
|
3683
3726
|
},
|
|
3684
3727
|
ebsr: {
|
|
3685
|
-
part: 'Part {{index}}'
|
|
3728
|
+
part: 'Part {{index}}'
|
|
3686
3729
|
},
|
|
3687
3730
|
numberLine: {
|
|
3688
3731
|
addElementLimit_one: 'You can only add {{count}} element',
|
|
3689
3732
|
addElementLimit_other: 'You can only add {{count}} elements',
|
|
3690
|
-
clearAll: 'Clear all'
|
|
3733
|
+
clearAll: 'Clear all'
|
|
3691
3734
|
},
|
|
3692
3735
|
imageClozeAssociation: {
|
|
3693
|
-
reachedLimit_one:
|
|
3694
|
-
|
|
3695
|
-
reachedLimit_other: 'Full',
|
|
3736
|
+
reachedLimit_one: 'You’ve reached the limit of {{count}} response per area. To add another response, one must first be removed.',
|
|
3737
|
+
reachedLimit_other: 'Full'
|
|
3696
3738
|
},
|
|
3697
3739
|
drawingResponse: {
|
|
3698
3740
|
fillColor: 'Fill color',
|
|
@@ -3708,7 +3750,7 @@ var en = {
|
|
|
3708
3750
|
green: 'Green',
|
|
3709
3751
|
white: 'White',
|
|
3710
3752
|
black: 'Black',
|
|
3711
|
-
onDoubleClick: 'Double click to edit this text. Press Enter to submit.'
|
|
3753
|
+
onDoubleClick: 'Double click to edit this text. Press Enter to submit.'
|
|
3712
3754
|
},
|
|
3713
3755
|
charting: {
|
|
3714
3756
|
addCategory: 'Add category',
|
|
@@ -3720,8 +3762,8 @@ var en = {
|
|
|
3720
3762
|
keyLegend: {
|
|
3721
3763
|
incorrectAnswer: 'Student incorrect answer',
|
|
3722
3764
|
correctAnswer: 'Student correct answer',
|
|
3723
|
-
correctKeyAnswer: 'Answer key correct'
|
|
3724
|
-
}
|
|
3765
|
+
correctKeyAnswer: 'Answer key correct'
|
|
3766
|
+
}
|
|
3725
3767
|
},
|
|
3726
3768
|
graphing: {
|
|
3727
3769
|
point: 'Point',
|
|
@@ -3737,25 +3779,24 @@ var en = {
|
|
|
3737
3779
|
vector: 'Vector',
|
|
3738
3780
|
label: 'Label',
|
|
3739
3781
|
redo: 'Redo',
|
|
3740
|
-
reset: 'Reset'
|
|
3782
|
+
reset: 'Reset'
|
|
3741
3783
|
},
|
|
3742
3784
|
mathInline: {
|
|
3743
|
-
primaryCorrectWithAlternates:
|
|
3744
|
-
'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.',
|
|
3785
|
+
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.'
|
|
3745
3786
|
},
|
|
3746
3787
|
multipleChoice: {
|
|
3747
3788
|
minSelections: 'Select at least {{minSelections}}.',
|
|
3748
3789
|
maxSelections_one: 'Only {{maxSelections}} answer is allowed.',
|
|
3749
3790
|
maxSelections_other: 'Only {{maxSelections}} answers are allowed.',
|
|
3750
3791
|
minmaxSelections_equal: 'Select {{minSelections}}.',
|
|
3751
|
-
minmaxSelections_range: 'Select between {{minSelections}} and {{maxSelections}}.'
|
|
3792
|
+
minmaxSelections_range: 'Select between {{minSelections}} and {{maxSelections}}.'
|
|
3752
3793
|
},
|
|
3753
3794
|
selectText: {
|
|
3754
3795
|
correctAnswerSelected: 'Correct',
|
|
3755
3796
|
correctAnswerNotSelected: 'Correct Answer Not Selected',
|
|
3756
3797
|
incorrectSelection: 'Incorrect Selection',
|
|
3757
|
-
key: 'Key'
|
|
3758
|
-
}
|
|
3798
|
+
key: 'Key'
|
|
3799
|
+
}
|
|
3759
3800
|
},
|
|
3760
3801
|
common: {
|
|
3761
3802
|
undo: 'Undo',
|
|
@@ -3764,35 +3805,31 @@ var en = {
|
|
|
3764
3805
|
incorrect: 'Incorrect',
|
|
3765
3806
|
showCorrectAnswer: 'Show correct answer',
|
|
3766
3807
|
hideCorrectAnswer: 'Hide correct answer',
|
|
3767
|
-
commonCorrectAnswerWithAlternates:
|
|
3768
|
-
'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.',
|
|
3808
|
+
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.',
|
|
3769
3809
|
warning: 'Warning',
|
|
3770
3810
|
showNote: 'Show Note',
|
|
3771
3811
|
hideNote: 'Hide Note',
|
|
3772
|
-
cancel: 'Cancel'
|
|
3773
|
-
}
|
|
3812
|
+
cancel: 'Cancel'
|
|
3813
|
+
}
|
|
3774
3814
|
};
|
|
3775
3815
|
|
|
3776
3816
|
var es = {
|
|
3777
3817
|
translation: {
|
|
3778
3818
|
categorize: {
|
|
3779
|
-
limitMaxChoicesPerCategory:
|
|
3780
|
-
|
|
3781
|
-
maxChoicesPerCategoryRestriction:
|
|
3782
|
-
'Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta',
|
|
3819
|
+
limitMaxChoicesPerCategory: 'Has alcanzado el límite de {{maxChoicesPerCategory}} respuestas por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.',
|
|
3820
|
+
maxChoicesPerCategoryRestriction: 'Para cambiar este valor a {{maxChoicesPerCategory}}, cada categoría debe tener {{maxChoicesPerCategory}} o menos opciones de respuesta'
|
|
3783
3821
|
},
|
|
3784
3822
|
ebsr: {
|
|
3785
|
-
part: 'Parte {{index}}'
|
|
3823
|
+
part: 'Parte {{index}}'
|
|
3786
3824
|
},
|
|
3787
3825
|
numberLine: {
|
|
3788
3826
|
addElementLimit_one: 'Solo puedes agregar {{count}} elemento',
|
|
3789
3827
|
addElementLimit_other: 'Solo puedes agregar {{count}} elementos',
|
|
3790
|
-
clearAll: 'Borrar todo'
|
|
3828
|
+
clearAll: 'Borrar todo'
|
|
3791
3829
|
},
|
|
3792
3830
|
imageClozeAssociation: {
|
|
3793
|
-
reachedLimit_one:
|
|
3794
|
-
|
|
3795
|
-
reachedLimit_other: 'Lleno',
|
|
3831
|
+
reachedLimit_one: 'Has alcanzado el límite de {{count}} respuesta por área. Para agregar otra respuesta, primero se debe eliminar una respuesta.',
|
|
3832
|
+
reachedLimit_other: 'Lleno'
|
|
3796
3833
|
},
|
|
3797
3834
|
drawingResponse: {
|
|
3798
3835
|
fillColor: 'Color de relleno',
|
|
@@ -3808,7 +3845,7 @@ var es = {
|
|
|
3808
3845
|
green: 'Verde',
|
|
3809
3846
|
white: 'Blanco',
|
|
3810
3847
|
black: 'Negro',
|
|
3811
|
-
onDoubleClick: 'Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar'
|
|
3848
|
+
onDoubleClick: 'Haz doble clic para revisar este texto. Presiona el botón de ingreso para enviar'
|
|
3812
3849
|
},
|
|
3813
3850
|
charting: {
|
|
3814
3851
|
addCategory: 'Añadir categoría',
|
|
@@ -3820,8 +3857,8 @@ var es = {
|
|
|
3820
3857
|
keyLegend: {
|
|
3821
3858
|
incorrectAnswer: 'Respuesta incorrecta del estudiante',
|
|
3822
3859
|
correctAnswer: 'Respuesta correcta del estudiante',
|
|
3823
|
-
correctKeyAnswer: 'Clave de respuesta correcta'
|
|
3824
|
-
}
|
|
3860
|
+
correctKeyAnswer: 'Clave de respuesta correcta'
|
|
3861
|
+
}
|
|
3825
3862
|
},
|
|
3826
3863
|
graphing: {
|
|
3827
3864
|
point: 'Punto',
|
|
@@ -3837,25 +3874,24 @@ var es = {
|
|
|
3837
3874
|
vector: 'Vector',
|
|
3838
3875
|
label: 'Etiqueta',
|
|
3839
3876
|
redo: 'Rehacer',
|
|
3840
|
-
reset: 'Reiniciar'
|
|
3877
|
+
reset: 'Reiniciar'
|
|
3841
3878
|
},
|
|
3842
3879
|
mathInline: {
|
|
3843
|
-
primaryCorrectWithAlternates:
|
|
3844
|
-
'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.',
|
|
3880
|
+
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.'
|
|
3845
3881
|
},
|
|
3846
3882
|
multipleChoice: {
|
|
3847
3883
|
minSelections: 'Seleccione al menos {{minSelections}}.',
|
|
3848
3884
|
maxSelections_one: 'Sólo se permite {{maxSelections}} respuesta.',
|
|
3849
3885
|
maxSelections_other: 'Sólo se permiten {{maxSelections}} respuestas.',
|
|
3850
3886
|
minmaxSelections_equal: 'Seleccione {{minSelections}}.',
|
|
3851
|
-
minmaxSelections_range: 'Seleccione entre {{minSelections}} y {{maxSelections}}.'
|
|
3887
|
+
minmaxSelections_range: 'Seleccione entre {{minSelections}} y {{maxSelections}}.'
|
|
3852
3888
|
},
|
|
3853
3889
|
selectText: {
|
|
3854
3890
|
correctAnswerSelected: 'Respuesta Correcta',
|
|
3855
3891
|
correctAnswerNotSelected: 'Respuesta Correcta No Seleccionada',
|
|
3856
3892
|
incorrectSelection: 'Selección Incorrecta',
|
|
3857
|
-
key: 'Clave'
|
|
3858
|
-
}
|
|
3893
|
+
key: 'Clave'
|
|
3894
|
+
}
|
|
3859
3895
|
},
|
|
3860
3896
|
common: {
|
|
3861
3897
|
undo: 'Deshacer',
|
|
@@ -3864,13 +3900,12 @@ var es = {
|
|
|
3864
3900
|
incorrect: 'Incorrect',
|
|
3865
3901
|
showCorrectAnswer: 'Mostrar respuesta correcta',
|
|
3866
3902
|
hideCorrectAnswer: 'Ocultar respuesta correcta',
|
|
3867
|
-
commonCorrectAnswerWithAlternates:
|
|
3868
|
-
'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.',
|
|
3903
|
+
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.',
|
|
3869
3904
|
warning: 'Advertencia',
|
|
3870
3905
|
showNote: 'Mostrar Nota',
|
|
3871
3906
|
hideNote: 'Ocultar Nota',
|
|
3872
|
-
cancel: 'Cancelar'
|
|
3873
|
-
}
|
|
3907
|
+
cancel: 'Cancelar'
|
|
3908
|
+
}
|
|
3874
3909
|
};
|
|
3875
3910
|
|
|
3876
3911
|
instance.init({
|
|
@@ -3879,15 +3914,15 @@ instance.init({
|
|
|
3879
3914
|
debug: true,
|
|
3880
3915
|
resources: {
|
|
3881
3916
|
en: en,
|
|
3882
|
-
es: es
|
|
3883
|
-
}
|
|
3917
|
+
es: es
|
|
3918
|
+
}
|
|
3884
3919
|
});
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
translator: {
|
|
3888
|
-
...instance,
|
|
3920
|
+
var index = {
|
|
3921
|
+
translator: _extends({}, instance, {
|
|
3889
3922
|
t: (key, options) => {
|
|
3890
|
-
const {
|
|
3923
|
+
const {
|
|
3924
|
+
lng
|
|
3925
|
+
} = options;
|
|
3891
3926
|
|
|
3892
3927
|
switch (lng) {
|
|
3893
3928
|
// these keys don't work with plurals, don't know why, so I added a workaround to convert them to the correct lng
|
|
@@ -3895,6 +3930,7 @@ var Translator = {
|
|
|
3895
3930
|
case 'en-US':
|
|
3896
3931
|
options.lng = 'en';
|
|
3897
3932
|
break;
|
|
3933
|
+
|
|
3898
3934
|
case 'es_ES':
|
|
3899
3935
|
case 'es-ES':
|
|
3900
3936
|
case 'es_MX':
|
|
@@ -3902,13 +3938,19 @@ var Translator = {
|
|
|
3902
3938
|
options.lng = 'es';
|
|
3903
3939
|
break;
|
|
3904
3940
|
}
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3941
|
+
|
|
3942
|
+
return instance.t(key, _extends({
|
|
3943
|
+
lng
|
|
3944
|
+
}, options));
|
|
3945
|
+
}
|
|
3946
|
+
}),
|
|
3947
|
+
languageOptions: [{
|
|
3948
|
+
value: 'en_US',
|
|
3949
|
+
label: 'English (US)'
|
|
3950
|
+
}, {
|
|
3951
|
+
value: 'es_ES',
|
|
3952
|
+
label: 'Spanish'
|
|
3953
|
+
}]
|
|
3912
3954
|
};
|
|
3913
3955
|
|
|
3914
3956
|
var defaults = {
|
|
@@ -3938,7 +3980,7 @@ var defaults = {
|
|
|
3938
3980
|
validationDefault: 'literal',
|
|
3939
3981
|
};
|
|
3940
3982
|
|
|
3941
|
-
const { translator } =
|
|
3983
|
+
const { translator } = index;
|
|
3942
3984
|
|
|
3943
3985
|
const log = debug();
|
|
3944
3986
|
|