@contractspec/module.learning-journey 3.7.5 → 3.7.7
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/README.md +65 -188
- package/dist/browser/contracts/index.js +148 -148
- package/dist/browser/contracts/models.js +1 -1
- package/dist/browser/contracts/onboarding.js +5 -5
- package/dist/browser/contracts/operations.js +4 -4
- package/dist/browser/engines/index.js +173 -173
- package/dist/browser/engines/xp.js +18 -18
- package/dist/browser/events.js +1 -1
- package/dist/browser/i18n/catalogs/index.js +18 -18
- package/dist/browser/i18n/index.js +26 -26
- package/dist/browser/i18n/locale.js +2 -2
- package/dist/browser/i18n/messages.js +18 -18
- package/dist/browser/index.js +336 -335
- package/dist/contracts/index.d.ts +2 -2
- package/dist/contracts/index.js +148 -148
- package/dist/contracts/models.js +1 -1
- package/dist/contracts/onboarding.js +5 -5
- package/dist/contracts/operations.js +4 -4
- package/dist/engines/index.d.ts +1 -1
- package/dist/engines/index.js +173 -173
- package/dist/engines/xp.js +18 -18
- package/dist/events.js +1 -1
- package/dist/i18n/catalogs/index.d.ts +1 -1
- package/dist/i18n/catalogs/index.js +18 -18
- package/dist/i18n/index.d.ts +7 -7
- package/dist/i18n/index.js +26 -26
- package/dist/i18n/locale.d.ts +1 -1
- package/dist/i18n/locale.js +2 -2
- package/dist/i18n/messages.js +18 -18
- package/dist/index.d.ts +3 -3
- package/dist/index.js +336 -335
- package/dist/node/contracts/index.js +148 -148
- package/dist/node/contracts/models.js +1 -1
- package/dist/node/contracts/onboarding.js +5 -5
- package/dist/node/contracts/operations.js +4 -4
- package/dist/node/engines/index.js +173 -173
- package/dist/node/engines/xp.js +18 -18
- package/dist/node/events.js +1 -1
- package/dist/node/i18n/catalogs/index.js +18 -18
- package/dist/node/i18n/index.js +26 -26
- package/dist/node/i18n/locale.js +2 -2
- package/dist/node/i18n/messages.js +18 -18
- package/dist/node/index.js +336 -335
- package/package.json +7 -7
|
@@ -39,18 +39,18 @@ var enMessages = defineTranslation({
|
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
// src/i18n/catalogs/
|
|
42
|
+
// src/i18n/catalogs/es.ts
|
|
43
43
|
import { defineTranslation as defineTranslation2 } from "@contractspec/lib.contracts-spec/translations";
|
|
44
|
-
var
|
|
44
|
+
var esMessages = defineTranslation2({
|
|
45
45
|
meta: {
|
|
46
46
|
key: "learning-journey.messages",
|
|
47
47
|
version: "1.0.0",
|
|
48
48
|
domain: "learning-journey",
|
|
49
|
-
description: "XP source labels (
|
|
49
|
+
description: "XP source labels (Spanish)",
|
|
50
50
|
owners: ["platform"],
|
|
51
51
|
stability: "experimental"
|
|
52
52
|
},
|
|
53
|
-
locale: "
|
|
53
|
+
locale: "es",
|
|
54
54
|
fallback: "en",
|
|
55
55
|
messages: {
|
|
56
56
|
"xp.source.base": {
|
|
@@ -58,40 +58,40 @@ var frMessages = defineTranslation2({
|
|
|
58
58
|
description: "XP breakdown label for base XP"
|
|
59
59
|
},
|
|
60
60
|
"xp.source.scoreBonus": {
|
|
61
|
-
value: "
|
|
61
|
+
value: "Bonificación por puntuación",
|
|
62
62
|
description: "XP breakdown label for score-based bonus"
|
|
63
63
|
},
|
|
64
64
|
"xp.source.perfectScore": {
|
|
65
|
-
value: "
|
|
65
|
+
value: "Puntuación perfecta",
|
|
66
66
|
description: "XP breakdown label for perfect score bonus"
|
|
67
67
|
},
|
|
68
68
|
"xp.source.firstAttempt": {
|
|
69
|
-
value: "
|
|
69
|
+
value: "Primer intento",
|
|
70
70
|
description: "XP breakdown label for first attempt bonus"
|
|
71
71
|
},
|
|
72
72
|
"xp.source.retryPenalty": {
|
|
73
|
-
value: "
|
|
73
|
+
value: "Penalización por reintento",
|
|
74
74
|
description: "XP breakdown label for retry penalty"
|
|
75
75
|
},
|
|
76
76
|
"xp.source.streakBonus": {
|
|
77
|
-
value: "
|
|
77
|
+
value: "Bonificación por racha",
|
|
78
78
|
description: "XP breakdown label for streak bonus"
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
|
|
83
|
-
// src/i18n/catalogs/
|
|
83
|
+
// src/i18n/catalogs/fr.ts
|
|
84
84
|
import { defineTranslation as defineTranslation3 } from "@contractspec/lib.contracts-spec/translations";
|
|
85
|
-
var
|
|
85
|
+
var frMessages = defineTranslation3({
|
|
86
86
|
meta: {
|
|
87
87
|
key: "learning-journey.messages",
|
|
88
88
|
version: "1.0.0",
|
|
89
89
|
domain: "learning-journey",
|
|
90
|
-
description: "XP source labels (
|
|
90
|
+
description: "XP source labels (French)",
|
|
91
91
|
owners: ["platform"],
|
|
92
92
|
stability: "experimental"
|
|
93
93
|
},
|
|
94
|
-
locale: "
|
|
94
|
+
locale: "fr",
|
|
95
95
|
fallback: "en",
|
|
96
96
|
messages: {
|
|
97
97
|
"xp.source.base": {
|
|
@@ -99,23 +99,23 @@ var esMessages = defineTranslation3({
|
|
|
99
99
|
description: "XP breakdown label for base XP"
|
|
100
100
|
},
|
|
101
101
|
"xp.source.scoreBonus": {
|
|
102
|
-
value: "
|
|
102
|
+
value: "Bonus de score",
|
|
103
103
|
description: "XP breakdown label for score-based bonus"
|
|
104
104
|
},
|
|
105
105
|
"xp.source.perfectScore": {
|
|
106
|
-
value: "
|
|
106
|
+
value: "Score parfait",
|
|
107
107
|
description: "XP breakdown label for perfect score bonus"
|
|
108
108
|
},
|
|
109
109
|
"xp.source.firstAttempt": {
|
|
110
|
-
value: "
|
|
110
|
+
value: "Premier essai",
|
|
111
111
|
description: "XP breakdown label for first attempt bonus"
|
|
112
112
|
},
|
|
113
113
|
"xp.source.retryPenalty": {
|
|
114
|
-
value: "
|
|
114
|
+
value: "Pénalité de réessai",
|
|
115
115
|
description: "XP breakdown label for retry penalty"
|
|
116
116
|
},
|
|
117
117
|
"xp.source.streakBonus": {
|
|
118
|
-
value: "
|
|
118
|
+
value: "Bonus de série",
|
|
119
119
|
description: "XP breakdown label for streak bonus"
|
|
120
120
|
}
|
|
121
121
|
}
|
|
@@ -133,14 +133,6 @@ var createLearningJourneyI18n = factory.create;
|
|
|
133
133
|
var getDefaultI18n = factory.getDefault;
|
|
134
134
|
var resetI18nRegistry = factory.resetRegistry;
|
|
135
135
|
|
|
136
|
-
// src/i18n/locale.ts
|
|
137
|
-
import {
|
|
138
|
-
DEFAULT_LOCALE,
|
|
139
|
-
SUPPORTED_LOCALES,
|
|
140
|
-
resolveLocale,
|
|
141
|
-
isSupportedLocale
|
|
142
|
-
} from "@contractspec/lib.contracts-spec/translations";
|
|
143
|
-
|
|
144
136
|
// src/i18n/keys.ts
|
|
145
137
|
var XP_SOURCE_KEYS = {
|
|
146
138
|
"xp.source.base": "xp.source.base",
|
|
@@ -153,6 +145,14 @@ var XP_SOURCE_KEYS = {
|
|
|
153
145
|
var I18N_KEYS = {
|
|
154
146
|
...XP_SOURCE_KEYS
|
|
155
147
|
};
|
|
148
|
+
|
|
149
|
+
// src/i18n/locale.ts
|
|
150
|
+
import {
|
|
151
|
+
DEFAULT_LOCALE,
|
|
152
|
+
isSupportedLocale,
|
|
153
|
+
resolveLocale,
|
|
154
|
+
SUPPORTED_LOCALES
|
|
155
|
+
} from "@contractspec/lib.contracts-spec/translations";
|
|
156
156
|
export {
|
|
157
157
|
resolveLocale,
|
|
158
158
|
resetI18nRegistry,
|
|
@@ -39,18 +39,18 @@ var enMessages = defineTranslation({
|
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
// src/i18n/catalogs/
|
|
42
|
+
// src/i18n/catalogs/es.ts
|
|
43
43
|
import { defineTranslation as defineTranslation2 } from "@contractspec/lib.contracts-spec/translations";
|
|
44
|
-
var
|
|
44
|
+
var esMessages = defineTranslation2({
|
|
45
45
|
meta: {
|
|
46
46
|
key: "learning-journey.messages",
|
|
47
47
|
version: "1.0.0",
|
|
48
48
|
domain: "learning-journey",
|
|
49
|
-
description: "XP source labels (
|
|
49
|
+
description: "XP source labels (Spanish)",
|
|
50
50
|
owners: ["platform"],
|
|
51
51
|
stability: "experimental"
|
|
52
52
|
},
|
|
53
|
-
locale: "
|
|
53
|
+
locale: "es",
|
|
54
54
|
fallback: "en",
|
|
55
55
|
messages: {
|
|
56
56
|
"xp.source.base": {
|
|
@@ -58,40 +58,40 @@ var frMessages = defineTranslation2({
|
|
|
58
58
|
description: "XP breakdown label for base XP"
|
|
59
59
|
},
|
|
60
60
|
"xp.source.scoreBonus": {
|
|
61
|
-
value: "
|
|
61
|
+
value: "Bonificación por puntuación",
|
|
62
62
|
description: "XP breakdown label for score-based bonus"
|
|
63
63
|
},
|
|
64
64
|
"xp.source.perfectScore": {
|
|
65
|
-
value: "
|
|
65
|
+
value: "Puntuación perfecta",
|
|
66
66
|
description: "XP breakdown label for perfect score bonus"
|
|
67
67
|
},
|
|
68
68
|
"xp.source.firstAttempt": {
|
|
69
|
-
value: "
|
|
69
|
+
value: "Primer intento",
|
|
70
70
|
description: "XP breakdown label for first attempt bonus"
|
|
71
71
|
},
|
|
72
72
|
"xp.source.retryPenalty": {
|
|
73
|
-
value: "
|
|
73
|
+
value: "Penalización por reintento",
|
|
74
74
|
description: "XP breakdown label for retry penalty"
|
|
75
75
|
},
|
|
76
76
|
"xp.source.streakBonus": {
|
|
77
|
-
value: "
|
|
77
|
+
value: "Bonificación por racha",
|
|
78
78
|
description: "XP breakdown label for streak bonus"
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
|
|
83
|
-
// src/i18n/catalogs/
|
|
83
|
+
// src/i18n/catalogs/fr.ts
|
|
84
84
|
import { defineTranslation as defineTranslation3 } from "@contractspec/lib.contracts-spec/translations";
|
|
85
|
-
var
|
|
85
|
+
var frMessages = defineTranslation3({
|
|
86
86
|
meta: {
|
|
87
87
|
key: "learning-journey.messages",
|
|
88
88
|
version: "1.0.0",
|
|
89
89
|
domain: "learning-journey",
|
|
90
|
-
description: "XP source labels (
|
|
90
|
+
description: "XP source labels (French)",
|
|
91
91
|
owners: ["platform"],
|
|
92
92
|
stability: "experimental"
|
|
93
93
|
},
|
|
94
|
-
locale: "
|
|
94
|
+
locale: "fr",
|
|
95
95
|
fallback: "en",
|
|
96
96
|
messages: {
|
|
97
97
|
"xp.source.base": {
|
|
@@ -99,23 +99,23 @@ var esMessages = defineTranslation3({
|
|
|
99
99
|
description: "XP breakdown label for base XP"
|
|
100
100
|
},
|
|
101
101
|
"xp.source.scoreBonus": {
|
|
102
|
-
value: "
|
|
102
|
+
value: "Bonus de score",
|
|
103
103
|
description: "XP breakdown label for score-based bonus"
|
|
104
104
|
},
|
|
105
105
|
"xp.source.perfectScore": {
|
|
106
|
-
value: "
|
|
106
|
+
value: "Score parfait",
|
|
107
107
|
description: "XP breakdown label for perfect score bonus"
|
|
108
108
|
},
|
|
109
109
|
"xp.source.firstAttempt": {
|
|
110
|
-
value: "
|
|
110
|
+
value: "Premier essai",
|
|
111
111
|
description: "XP breakdown label for first attempt bonus"
|
|
112
112
|
},
|
|
113
113
|
"xp.source.retryPenalty": {
|
|
114
|
-
value: "
|
|
114
|
+
value: "Pénalité de réessai",
|
|
115
115
|
description: "XP breakdown label for retry penalty"
|
|
116
116
|
},
|
|
117
117
|
"xp.source.streakBonus": {
|
|
118
|
-
value: "
|
|
118
|
+
value: "Bonus de série",
|
|
119
119
|
description: "XP breakdown label for streak bonus"
|
|
120
120
|
}
|
|
121
121
|
}
|