@magmamath/students-features 0.9.94 → 0.9.95
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/commonjs/features/celebrations/config.js.map +1 -0
- package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.js.map +1 -0
- package/dist/commonjs/features/chatbot/model/ChatBotModel.js.map +1 -0
- package/dist/commonjs/features/endOfAssignment/ui/EOABadge.js.map +1 -0
- package/dist/commonjs/features/exampleSolution/components/SolutionSection.js.map +1 -0
- package/dist/commonjs/features/feedback/components/ListCardCommentsCount.js.map +1 -0
- package/dist/commonjs/features/gifCelebrations/model/GifCelebrations.model.js.map +1 -0
- package/dist/commonjs/features/keyboard/components/BasicLayout/keyboardGroups.js +5 -1
- package/dist/commonjs/features/keyboard/components/BasicLayout/keyboardGroups.js.map +1 -1
- package/dist/commonjs/features/keyboard/components/UnitsLayout/keyboardGroups.js.map +1 -0
- package/dist/commonjs/features/keyboard/constants/keyboardGroupsByLocale.js +20 -0
- package/dist/commonjs/features/keyboard/constants/keyboardGroupsByLocale.js.map +1 -1
- package/dist/commonjs/features/keyboard/types/keyboardGroupIds.js +1 -0
- package/dist/commonjs/features/keyboard/types/keyboardGroupIds.js.map +1 -1
- package/dist/commonjs/features/problemSelector/components/ProblemSelector.js.map +1 -0
- package/dist/commonjs/lib/helpers/helpers.js +28 -5
- package/dist/commonjs/lib/helpers/helpers.js.map +1 -1
- package/dist/commonjs/shared/icons/Star.js.map +1 -0
- package/dist/commonjs/shared/icons/Valentine.js.map +1 -0
- package/dist/commonjs/shared/icons/VolumeIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/WeightIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/Winter.js.map +1 -0
- package/dist/commonjs/shared/icons/XCloseIcon.js.map +1 -0
- package/dist/commonjs/shared/translation/constants.js +3 -1
- package/dist/commonjs/shared/translation/constants.js.map +1 -0
- package/dist/commonjs/shared/translation/helpers.js.map +1 -0
- package/dist/commonjs/shared/translation/hooks.js.map +1 -0
- package/dist/commonjs/shared/translation/index.js.map +1 -0
- package/dist/commonjs/shared/translation/localization/ca.json +5 -5
- package/dist/commonjs/shared/translation/localization/de.json +42 -0
- package/dist/commonjs/shared/translation/localization/en.json +5 -5
- package/dist/commonjs/shared/translation/localization/gb.json +5 -5
- package/dist/commonjs/shared/translation/localization/sct.json +5 -5
- package/dist/commonjs/shared/translation/localization/sw.json +5 -5
- package/dist/commonjs/shared/translation/model.js.map +1 -0
- package/dist/commonjs/shared/translation/types.js +1 -0
- package/dist/commonjs/shared/translation/types.js.map +1 -0
- package/dist/commonjs/shared/translation/validation.types.js.map +1 -0
- package/dist/commonjs/types/common.types.js +2 -0
- package/dist/module/features/keyboard/components/BasicLayout/keyboardGroups.js +4 -0
- package/dist/module/features/keyboard/components/BasicLayout/keyboardGroups.js.map +1 -1
- package/dist/module/features/keyboard/constants/keyboardGroupsByLocale.js +21 -1
- package/dist/module/features/keyboard/constants/keyboardGroupsByLocale.js.map +1 -1
- package/dist/module/features/keyboard/types/keyboardGroupIds.js +1 -0
- package/dist/module/features/keyboard/types/keyboardGroupIds.js.map +1 -1
- package/dist/module/lib/helpers/helpers.js +28 -5
- package/dist/module/lib/helpers/helpers.js.map +1 -1
- package/dist/module/shared/translation/constants.js +3 -1
- package/dist/module/shared/translation/constants.js.map +1 -1
- package/dist/module/shared/translation/localization/ca.json +5 -5
- package/dist/module/shared/translation/localization/de.json +42 -0
- package/dist/module/shared/translation/localization/en.json +5 -5
- package/dist/module/shared/translation/localization/gb.json +5 -5
- package/dist/module/shared/translation/localization/sct.json +5 -5
- package/dist/module/shared/translation/localization/sw.json +5 -5
- package/dist/module/shared/translation/types.js +1 -0
- package/dist/module/shared/translation/types.js.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/keyboardGroups.d.ts +1 -0
- package/dist/typescript/commonjs/features/keyboard/components/BasicLayout/keyboardGroups.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/constants/keyboardGroupsByLocale.d.ts.map +1 -1
- package/dist/typescript/commonjs/features/keyboard/types/keyboardGroupIds.d.ts +1 -0
- package/dist/typescript/commonjs/features/keyboard/types/keyboardGroupIds.d.ts.map +1 -1
- package/dist/typescript/commonjs/lib/helpers/helpers.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/constants.d.ts +42 -0
- package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/types.d.ts +2 -1
- package/dist/typescript/commonjs/shared/translation/types.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/components/BasicLayout/keyboardGroups.d.ts +1 -0
- package/dist/typescript/module/features/keyboard/components/BasicLayout/keyboardGroups.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/constants/keyboardGroupsByLocale.d.ts.map +1 -1
- package/dist/typescript/module/features/keyboard/types/keyboardGroupIds.d.ts +1 -0
- package/dist/typescript/module/features/keyboard/types/keyboardGroupIds.d.ts.map +1 -1
- package/dist/typescript/module/lib/helpers/helpers.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/constants.d.ts +42 -0
- package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/types.d.ts +2 -1
- package/dist/typescript/module/shared/translation/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/features/keyboard/components/BasicLayout/keyboardGroups.ts +4 -0
- package/src/features/keyboard/constants/keyboardGroupsByLocale.ts +21 -0
- package/src/features/keyboard/types/keyboardGroupIds.ts +1 -0
- package/src/lib/helpers/helpers.ts +23 -8
- package/src/shared/translation/constants.ts +2 -0
- package/src/shared/translation/localization/ca.json +5 -5
- package/src/shared/translation/localization/de.json +42 -0
- package/src/shared/translation/localization/en.json +5 -5
- package/src/shared/translation/localization/gb.json +5 -5
- package/src/shared/translation/localization/sct.json +5 -5
- package/src/shared/translation/localization/sw.json +5 -5
- package/src/shared/translation/types.ts +4 -0
|
@@ -58,3 +58,7 @@ export const MATH_CURRENCY_US_KEYBOARD_GROUP: KeyboardGroup = {
|
|
|
58
58
|
id: MathEntryKeyboardGroupId.CURRENCY_US,
|
|
59
59
|
keys: [MATH_CURRENCY_UNITS.DOLLAR, MATH_CURRENCY_UNITS.CENT],
|
|
60
60
|
}
|
|
61
|
+
export const MATH_CURRENCY_DE_KEYBOARD_GROUP: KeyboardGroup = {
|
|
62
|
+
id: MathEntryKeyboardGroupId.CURRENCY_DE,
|
|
63
|
+
keys: [MATH_CURRENCY_UNITS.EURO, MATH_CURRENCY_UNITS.DOLLAR, MATH_CURRENCY_UNITS.POUND],
|
|
64
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { KeyboardGroup, KeyboardType } from '../types/types'
|
|
2
2
|
import {
|
|
3
|
+
MATH_CURRENCY_DE_KEYBOARD_GROUP,
|
|
3
4
|
MATH_CURRENCY_SW_KEYBOARD_GROUP,
|
|
4
5
|
MATH_CURRENCY_UK_KEYBOARD_GROUP,
|
|
5
6
|
MATH_CURRENCY_US_KEYBOARD_GROUP,
|
|
@@ -98,6 +99,20 @@ export const KEYBOARD_GROUPS_BY_LOCALE: Record<Locale, Record<KeyboardType, Keyb
|
|
|
98
99
|
[KeyboardType.BasicTime]: MATH_TIME_SW_KEYBOARD_GROUP,
|
|
99
100
|
[KeyboardType.Numpad]: MATH_ENTRY_NUMBERS_SW_KEYBOARD_GROUP,
|
|
100
101
|
}),
|
|
102
|
+
[Locale.DE]: createKeyboardLocale({
|
|
103
|
+
[KeyboardType.Basic]: MATH_ENTRY_BASIC_SW_KEYBOARD_GROUP,
|
|
104
|
+
[KeyboardType.BasicPlus]: MATH_ENTRY_BASIC_SW_PLUS,
|
|
105
|
+
[KeyboardType.BasicPlusMobile]: MATH_ENTRY_BASIC_PLUS_MOBILE_SW,
|
|
106
|
+
[KeyboardType.BasicPlusPlus]: MATH_ENTRY_BASIC_PLUS_PLUS_SW,
|
|
107
|
+
[KeyboardType.BasicPlusPlusMobile]: MATH_ENTRY_BASIC_PLUS_PLUS_MOBILE_SW,
|
|
108
|
+
[KeyboardType.BasicUnits]: {
|
|
109
|
+
...MATH_ENTRY_LENGTH_UNITS_US_KEYBOARD_GROUPS,
|
|
110
|
+
keys: MATH_ENTRY_LENGTH_UNITS_US_KEYBOARD_GROUPS.keys[0],
|
|
111
|
+
},
|
|
112
|
+
[KeyboardType.BasicCurrency]: MATH_CURRENCY_DE_KEYBOARD_GROUP,
|
|
113
|
+
[KeyboardType.BasicTime]: MATH_TIME_SW_KEYBOARD_GROUP,
|
|
114
|
+
[KeyboardType.Numpad]: MATH_ENTRY_NUMBERS_SW_KEYBOARD_GROUP,
|
|
115
|
+
}),
|
|
101
116
|
}
|
|
102
117
|
export const KEYBOARD_UNITS_GROUPS_BY_LOCALE: Record<
|
|
103
118
|
Locale,
|
|
@@ -119,4 +134,10 @@ export const KEYBOARD_UNITS_GROUPS_BY_LOCALE: Record<
|
|
|
119
134
|
[KeyboardUnitsGroupType.VOLUME]: MATH_ENTRY_VOLUME_UNITS_SW_KEYBOARD_GROUPS,
|
|
120
135
|
[KeyboardUnitsGroupType.WEIGHT]: MATH_ENTRY_WEIGHT_UNITS_SW_KEYBOARD_GROUPS,
|
|
121
136
|
}),
|
|
137
|
+
[Locale.DE]: createKeyboardUnitsLocale({
|
|
138
|
+
[KeyboardUnitsGroupType.LENGTH]: MATH_ENTRY_LENGTH_UNITS_SW_KEYBOARD_GROUPS,
|
|
139
|
+
[KeyboardUnitsGroupType.AREA]: MATH_ENTRY_AREA_UNITS_SW_KEYBOARD_GROUPS,
|
|
140
|
+
[KeyboardUnitsGroupType.VOLUME]: MATH_ENTRY_VOLUME_UNITS_SW_KEYBOARD_GROUPS,
|
|
141
|
+
[KeyboardUnitsGroupType.WEIGHT]: MATH_ENTRY_WEIGHT_UNITS_SW_KEYBOARD_GROUPS,
|
|
142
|
+
}),
|
|
122
143
|
}
|
|
@@ -27,12 +27,27 @@ export const getRelativeTimeText = (date: Date) => {
|
|
|
27
27
|
const years = getYears(days)
|
|
28
28
|
|
|
29
29
|
if (seconds < 60) return getText('time.justNow')
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
30
|
+
|
|
31
|
+
if (minutes < 60) {
|
|
32
|
+
if (minutes === 1) return `1 ${getText('time.minuteAgo')}`
|
|
33
|
+
return getText('time.minutesAgo', { count: minutes.toString() })
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
if (hours < 24) {
|
|
37
|
+
if (hours === 1) return `1 ${getText('time.hourAgo')}`
|
|
38
|
+
return getText('time.hoursAgo', { count: hours.toString() })
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
if (days < 30) {
|
|
42
|
+
if (days === 1) return `1 ${getText('time.dayAgo')}`
|
|
43
|
+
return getText('time.daysAgo', { count: days.toString() })
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
if (months < 12) {
|
|
47
|
+
if (months === 1) return `1 ${getText('time.monthAgo')}`
|
|
48
|
+
return getText('time.monthsAgo', { count: months.toString() })
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
if (years === 1) return `1 ${getText('time.yearAgo')}`
|
|
52
|
+
return getText('time.yearsAgo', { count: years.toString() })
|
|
38
53
|
}
|
|
@@ -4,6 +4,7 @@ import GB from './localization/gb.json'
|
|
|
4
4
|
import SW from './localization/sw.json'
|
|
5
5
|
import CA from './localization/ca.json'
|
|
6
6
|
import SCT from './localization/sct.json'
|
|
7
|
+
import DE from './localization/de.json'
|
|
7
8
|
|
|
8
9
|
export const LOCALIZATION_CONFIGS = {
|
|
9
10
|
[Locale.EN]: EN,
|
|
@@ -11,4 +12,5 @@ export const LOCALIZATION_CONFIGS = {
|
|
|
11
12
|
[Locale.SW]: SW,
|
|
12
13
|
[Locale.CA]: CA,
|
|
13
14
|
[Locale.SCT]: SCT,
|
|
15
|
+
[Locale.DE]: DE,
|
|
14
16
|
}
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
"teacherFeedback.noComments": "No comments yet",
|
|
4
4
|
"time.justNow": "just now",
|
|
5
5
|
"time.minuteAgo": "minute ago",
|
|
6
|
-
"time.minutesAgo": "minutes ago",
|
|
6
|
+
"time.minutesAgo": "{{count}} minutes ago",
|
|
7
7
|
"time.hourAgo": "hour ago",
|
|
8
|
-
"time.hoursAgo": "hours ago",
|
|
8
|
+
"time.hoursAgo": "{{count}} hours ago",
|
|
9
9
|
"time.dayAgo": "day ago",
|
|
10
|
-
"time.daysAgo": "days ago",
|
|
10
|
+
"time.daysAgo": "{{count}} days ago",
|
|
11
11
|
"time.monthAgo": "month ago",
|
|
12
|
-
"time.monthsAgo": "months ago",
|
|
12
|
+
"time.monthsAgo": "{{count}} months ago",
|
|
13
13
|
"time.yearAgo": "year ago",
|
|
14
|
-
"time.yearsAgo": "years ago",
|
|
14
|
+
"time.yearsAgo": "{{count}} years ago",
|
|
15
15
|
"chat": {
|
|
16
16
|
"anotherHint": "Give me another hint",
|
|
17
17
|
"giveHint": "I need a hint",
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"locale": "de-DE",
|
|
3
|
+
"teacherFeedback.noComments": "Noch keine Kommentare",
|
|
4
|
+
"time.justNow": "gerade eben",
|
|
5
|
+
"time.minuteAgo": "vor einer Minute",
|
|
6
|
+
"time.minutesAgo": "vor {{count}} Minuten",
|
|
7
|
+
"time.hourAgo": "vor einer Stunde",
|
|
8
|
+
"time.hoursAgo": "vor {{count}} Stunden",
|
|
9
|
+
"time.dayAgo": "vor einem Tag",
|
|
10
|
+
"time.daysAgo": "vor {{count}} Tagen",
|
|
11
|
+
"time.monthAgo": "vor einem Monat",
|
|
12
|
+
"time.monthsAgo": "vor {{count}} Monaten",
|
|
13
|
+
"time.yearAgo": "vor einem Jahr",
|
|
14
|
+
"time.yearsAgo": "vor {{count}} Jahren",
|
|
15
|
+
"chat": {
|
|
16
|
+
"anotherHint": "Gib mir noch einen Hinweis",
|
|
17
|
+
"giveHint": "Ich brauche einen Hinweis",
|
|
18
|
+
"giveHintOpenChat": "Ich brauche einen Hinweis",
|
|
19
|
+
"answerAgain": "Noch einmal antworten, um einen weiteren Hinweis zu bekommen!",
|
|
20
|
+
"errorMessage": "Etwas ist schiefgelaufen! Versuch es erneut",
|
|
21
|
+
"howCanIHelp": "Hi! Möchtest du Hilfe?",
|
|
22
|
+
"showError": "Fehler anzeigen",
|
|
23
|
+
"inputPlaceholder": "Tippe..."
|
|
24
|
+
},
|
|
25
|
+
"gifCelebrations": {
|
|
26
|
+
"greatStart": "Toller Start!",
|
|
27
|
+
"onTheWay": "Auf dem Weg!",
|
|
28
|
+
"almostThere": "Fast geschafft"
|
|
29
|
+
},
|
|
30
|
+
"exampleSolution": {
|
|
31
|
+
"exampleSolution": "Beispiellösung",
|
|
32
|
+
"letMeThink": "Lass mich nachdenken...",
|
|
33
|
+
"aha": "Aha!",
|
|
34
|
+
"errorMessage": "Beim Erstellen einer Beispiellösung ist etwas schiefgelaufen"
|
|
35
|
+
},
|
|
36
|
+
"keyboard": {
|
|
37
|
+
"length": "Länge",
|
|
38
|
+
"area": "Fläche",
|
|
39
|
+
"volume": "Volumen",
|
|
40
|
+
"weight": "Gewicht"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
"teacherFeedback.noComments": "No comments yet",
|
|
4
4
|
"time.justNow": "just now",
|
|
5
5
|
"time.minuteAgo": "minute ago",
|
|
6
|
-
"time.minutesAgo": "minutes ago",
|
|
6
|
+
"time.minutesAgo": "{{count}} minutes ago",
|
|
7
7
|
"time.hourAgo": "hour ago",
|
|
8
|
-
"time.hoursAgo": "hours ago",
|
|
8
|
+
"time.hoursAgo": "{{count}} hours ago",
|
|
9
9
|
"time.dayAgo": "day ago",
|
|
10
|
-
"time.daysAgo": "days ago",
|
|
10
|
+
"time.daysAgo": "{{count}} days ago",
|
|
11
11
|
"time.monthAgo": "month ago",
|
|
12
|
-
"time.monthsAgo": "months ago",
|
|
12
|
+
"time.monthsAgo": "{{count}} months ago",
|
|
13
13
|
"time.yearAgo": "year ago",
|
|
14
|
-
"time.yearsAgo": "years ago",
|
|
14
|
+
"time.yearsAgo": "{{count}} years ago",
|
|
15
15
|
"chat": {
|
|
16
16
|
"anotherHint": "Give me another hint",
|
|
17
17
|
"giveHint": "I need a hint",
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
"teacherFeedback.noComments": "No comments yet",
|
|
4
4
|
"time.justNow": "just now",
|
|
5
5
|
"time.minuteAgo": "minute ago",
|
|
6
|
-
"time.minutesAgo": "minutes ago",
|
|
6
|
+
"time.minutesAgo": "{{count}} minutes ago",
|
|
7
7
|
"time.hourAgo": "hour ago",
|
|
8
|
-
"time.hoursAgo": "hours ago",
|
|
8
|
+
"time.hoursAgo": "{{count}} hours ago",
|
|
9
9
|
"time.dayAgo": "day ago",
|
|
10
|
-
"time.daysAgo": "days ago",
|
|
10
|
+
"time.daysAgo": "{{count}} days ago",
|
|
11
11
|
"time.monthAgo": "month ago",
|
|
12
|
-
"time.monthsAgo": "months ago",
|
|
12
|
+
"time.monthsAgo": "{{count}} months ago",
|
|
13
13
|
"time.yearAgo": "year ago",
|
|
14
|
-
"time.yearsAgo": "years ago",
|
|
14
|
+
"time.yearsAgo": "{{count}} years ago",
|
|
15
15
|
"chat": {
|
|
16
16
|
"anotherHint": "Give me another hint",
|
|
17
17
|
"giveHint": "I need a hint",
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
"teacherFeedback.noComments": "No comments yet",
|
|
4
4
|
"time.justNow": "just now",
|
|
5
5
|
"time.minuteAgo": "minute ago",
|
|
6
|
-
"time.minutesAgo": "minutes ago",
|
|
6
|
+
"time.minutesAgo": "{{count}} minutes ago",
|
|
7
7
|
"time.hourAgo": "hour ago",
|
|
8
|
-
"time.hoursAgo": "hours ago",
|
|
8
|
+
"time.hoursAgo": "{{count}} hours ago",
|
|
9
9
|
"time.dayAgo": "day ago",
|
|
10
|
-
"time.daysAgo": "days ago",
|
|
10
|
+
"time.daysAgo": "{{count}} days ago",
|
|
11
11
|
"time.monthAgo": "month ago",
|
|
12
|
-
"time.monthsAgo": "months ago",
|
|
12
|
+
"time.monthsAgo": "{{count}} months ago",
|
|
13
13
|
"time.yearAgo": "year ago",
|
|
14
|
-
"time.yearsAgo": "years ago",
|
|
14
|
+
"time.yearsAgo": "{{count}} years ago",
|
|
15
15
|
"chat": {
|
|
16
16
|
"anotherHint": "Give me another hint",
|
|
17
17
|
"giveHint": "I need a hint",
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
"teacherFeedback.noComments": "Inga kommentarer än",
|
|
4
4
|
"time.justNow": "alldeles nyss",
|
|
5
5
|
"time.minuteAgo": "minut sedan",
|
|
6
|
-
"time.minutesAgo": "minuter sedan",
|
|
6
|
+
"time.minutesAgo": "{{count}} minuter sedan",
|
|
7
7
|
"time.hourAgo": "timme sedan",
|
|
8
|
-
"time.hoursAgo": "timmar sedan",
|
|
8
|
+
"time.hoursAgo": "{{count}} timmar sedan",
|
|
9
9
|
"time.dayAgo": "dag sedan",
|
|
10
|
-
"time.daysAgo": "dagar sedan",
|
|
10
|
+
"time.daysAgo": "{{count}} dagar sedan",
|
|
11
11
|
"time.monthAgo": "månad sedan",
|
|
12
|
-
"time.monthsAgo": "månader sedan",
|
|
12
|
+
"time.monthsAgo": "{{count}} månader sedan",
|
|
13
13
|
"time.yearAgo": "år sedan",
|
|
14
|
-
"time.yearsAgo": "år sedan",
|
|
14
|
+
"time.yearsAgo": "{{count}} år sedan",
|
|
15
15
|
"chat": {
|
|
16
16
|
"anotherHint": "Ge mig en till ledtråd",
|
|
17
17
|
"giveHint": "Ge mig en ledtråd",
|
|
@@ -3,6 +3,8 @@ import swTranslations from './localization/sw.json'
|
|
|
3
3
|
import gbTranslations from './localization/gb.json'
|
|
4
4
|
import caTranslations from './localization/ca.json'
|
|
5
5
|
import sctTranslations from './localization/sct.json'
|
|
6
|
+
import deTranslations from "./localization/de.json"
|
|
7
|
+
|
|
6
8
|
import { RetrieveKeys } from '../../lib/types/keys'
|
|
7
9
|
import { ISValidTranslation } from './validation.types'
|
|
8
10
|
|
|
@@ -16,6 +18,7 @@ export enum Locale {
|
|
|
16
18
|
GB = 'en-GB',
|
|
17
19
|
CA = 'en-CA',
|
|
18
20
|
SCT = 'en-SCT',
|
|
21
|
+
DE = 'de-DE'
|
|
19
22
|
}
|
|
20
23
|
|
|
21
24
|
// Validation of translations, do not remove
|
|
@@ -24,3 +27,4 @@ type ISValidSW = ISValidTranslation<typeof swTranslations>
|
|
|
24
27
|
type ISValidGB = ISValidTranslation<typeof gbTranslations>
|
|
25
28
|
type ISValidCA = ISValidTranslation<typeof caTranslations>
|
|
26
29
|
type ISValidSCT = ISValidTranslation<typeof sctTranslations>
|
|
30
|
+
type ISValidDE = ISValidTranslation<typeof deTranslations>
|