@monkvision/common 5.3.5 → 5.3.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/INTERNATIONALIZATION.md +4 -0
- package/lib/i18n/translations/damageTypes.js +36 -0
- package/lib/i18n/translations/image.d.ts +5 -1
- package/lib/i18n/translations/image.js +243 -2
- package/lib/i18n/translations/vehicleParts.js +166 -0
- package/lib/state/actions/index.d.ts +1 -0
- package/lib/state/actions/index.js +1 -0
- package/lib/state/actions/monkAction.d.ts +4 -0
- package/lib/state/actions/monkAction.js +4 -0
- package/lib/state/actions/updatedOneImageAdditionalData.d.ts +42 -0
- package/lib/state/actions/updatedOneImageAdditionalData.js +44 -0
- package/lib/state/actions/updatedOneInspectionAdditionalData.js +1 -1
- package/lib/state/reducer.js +3 -0
- package/package.json +13 -13
|
@@ -45,6 +45,8 @@ const MyComponent = i18nWrap(function MyComponent(){
|
|
|
45
45
|
/// in i18n.ts
|
|
46
46
|
import { i18nCreateSDKInstance } from '@monkvision/common';
|
|
47
47
|
import en from './translations/en.json';
|
|
48
|
+
import cs from './translations/cs.json';
|
|
49
|
+
import no from './translations/no.json';
|
|
48
50
|
import ro from './translations/ro.json';
|
|
49
51
|
import pl from './translations/pl.json';
|
|
50
52
|
import da from './translations/da.json';
|
|
@@ -69,6 +71,8 @@ const i18nMyComponent = i18nCreateSDKInstance({
|
|
|
69
71
|
da: { translation: da },
|
|
70
72
|
pl: { translation: pl },
|
|
71
73
|
ro: { translation: ro },
|
|
74
|
+
no: { translation: no },
|
|
75
|
+
cs: { translation: cs },
|
|
72
76
|
}
|
|
73
77
|
})
|
|
74
78
|
```
|
|
@@ -9,6 +9,8 @@ var types_1 = require("@monkvision/types");
|
|
|
9
9
|
exports.damageTypeLabels = (_a = {},
|
|
10
10
|
_a[types_1.DamageType.SCRATCH] = {
|
|
11
11
|
en: 'Scratch',
|
|
12
|
+
cs: 'Škrábanec',
|
|
13
|
+
no: 'Ripe',
|
|
12
14
|
ro: 'Zgârietură',
|
|
13
15
|
pl: 'Zarysowanie',
|
|
14
16
|
da: 'Ridse',
|
|
@@ -22,6 +24,8 @@ exports.damageTypeLabels = (_a = {},
|
|
|
22
24
|
},
|
|
23
25
|
_a[types_1.DamageType.DENT] = {
|
|
24
26
|
en: 'Dent',
|
|
27
|
+
cs: 'Promáčklina',
|
|
28
|
+
no: 'Bulk',
|
|
25
29
|
ro: 'Avarie',
|
|
26
30
|
pl: 'Wgniecenie',
|
|
27
31
|
da: 'bul',
|
|
@@ -35,6 +39,8 @@ exports.damageTypeLabels = (_a = {},
|
|
|
35
39
|
},
|
|
36
40
|
_a[types_1.DamageType.BROKEN_GLASS] = {
|
|
37
41
|
en: 'Broken Glass',
|
|
42
|
+
cs: 'Rozbité sklo',
|
|
43
|
+
no: 'Knust glass',
|
|
38
44
|
ro: 'Parbriz spart',
|
|
39
45
|
pl: 'Pęknięta szyba',
|
|
40
46
|
da: 'Knust glas',
|
|
@@ -48,6 +54,8 @@ exports.damageTypeLabels = (_a = {},
|
|
|
48
54
|
},
|
|
49
55
|
_a[types_1.DamageType.BROKEN_LIGHT] = {
|
|
50
56
|
en: 'Broken Light',
|
|
57
|
+
cs: 'Rozbité světlo',
|
|
58
|
+
no: 'Ødelagt lys',
|
|
51
59
|
ro: 'Lumină defectă',
|
|
52
60
|
pl: 'Uszkodzone światło',
|
|
53
61
|
da: 'Defekt lygte',
|
|
@@ -61,6 +69,8 @@ exports.damageTypeLabels = (_a = {},
|
|
|
61
69
|
},
|
|
62
70
|
_a[types_1.DamageType.HUBCAP_SCRATCH] = {
|
|
63
71
|
en: 'Hubcap Scratch',
|
|
72
|
+
cs: 'Škrábanec na poklici',
|
|
73
|
+
no: 'Ripe på hjulkapsel',
|
|
64
74
|
ro: 'Zgârietură pe capacul roții',
|
|
65
75
|
pl: 'Zarysowanie kołpaka',
|
|
66
76
|
da: 'Dækhætte-ridse',
|
|
@@ -74,6 +84,8 @@ exports.damageTypeLabels = (_a = {},
|
|
|
74
84
|
},
|
|
75
85
|
_a[types_1.DamageType.MISSING_HUBCAP] = {
|
|
76
86
|
en: 'Missing Hubcap',
|
|
87
|
+
cs: 'Chybějící poklice',
|
|
88
|
+
no: 'Manglende hjulkapsel',
|
|
77
89
|
ro: 'Capac de roată lipsă',
|
|
78
90
|
pl: 'Brak kołpaka',
|
|
79
91
|
da: 'Manglende hjulkapsel',
|
|
@@ -87,6 +99,8 @@ exports.damageTypeLabels = (_a = {},
|
|
|
87
99
|
},
|
|
88
100
|
_a[types_1.DamageType.SMASH] = {
|
|
89
101
|
en: 'Smash',
|
|
102
|
+
cs: 'Náraz',
|
|
103
|
+
no: 'Kollisjonsskade',
|
|
90
104
|
ro: 'Lovitură',
|
|
91
105
|
pl: 'Zniszcz',
|
|
92
106
|
da: 'Smadr',
|
|
@@ -100,6 +114,8 @@ exports.damageTypeLabels = (_a = {},
|
|
|
100
114
|
},
|
|
101
115
|
_a[types_1.DamageType.BODY_CRACK] = {
|
|
102
116
|
en: 'Body Crack',
|
|
117
|
+
cs: 'Prasklina karoserie',
|
|
118
|
+
no: 'Sprekk i karosseri',
|
|
103
119
|
ro: 'Fisură în caroserie',
|
|
104
120
|
pl: 'Pęknięcie nadwozia',
|
|
105
121
|
da: 'Karosserirevne',
|
|
@@ -113,6 +129,8 @@ exports.damageTypeLabels = (_a = {},
|
|
|
113
129
|
},
|
|
114
130
|
_a[types_1.DamageType.MISSING_PIECE] = {
|
|
115
131
|
en: 'Missing Piece',
|
|
132
|
+
cs: 'Chybějící díl',
|
|
133
|
+
no: 'Manglende del',
|
|
116
134
|
ro: 'Piesă lipsă',
|
|
117
135
|
pl: 'Brakujący element',
|
|
118
136
|
da: 'Manglende del',
|
|
@@ -126,6 +144,8 @@ exports.damageTypeLabels = (_a = {},
|
|
|
126
144
|
},
|
|
127
145
|
_a[types_1.DamageType.RUSTINESS] = {
|
|
128
146
|
en: 'Rustiness',
|
|
147
|
+
cs: 'Rez',
|
|
148
|
+
no: 'Rust',
|
|
129
149
|
ro: 'Rugină',
|
|
130
150
|
pl: 'Korozja',
|
|
131
151
|
da: 'Rust',
|
|
@@ -139,6 +159,8 @@ exports.damageTypeLabels = (_a = {},
|
|
|
139
159
|
},
|
|
140
160
|
_a[types_1.DamageType.DIRT] = {
|
|
141
161
|
en: 'Dirt',
|
|
162
|
+
cs: 'Nečistota',
|
|
163
|
+
no: 'Skitt',
|
|
142
164
|
ro: 'Murdărie',
|
|
143
165
|
pl: 'Brud',
|
|
144
166
|
da: 'Snavs',
|
|
@@ -152,6 +174,8 @@ exports.damageTypeLabels = (_a = {},
|
|
|
152
174
|
},
|
|
153
175
|
_a[types_1.DamageType.MISSHAPE] = {
|
|
154
176
|
en: 'Misshape',
|
|
177
|
+
cs: 'Deformace',
|
|
178
|
+
no: 'Deformering',
|
|
155
179
|
ro: 'Deformare',
|
|
156
180
|
pl: 'Deformacja',
|
|
157
181
|
da: 'Deformation',
|
|
@@ -165,6 +189,8 @@ exports.damageTypeLabels = (_a = {},
|
|
|
165
189
|
},
|
|
166
190
|
_a[types_1.DamageType.PAINT_PEELING] = {
|
|
167
191
|
en: 'Paint Peeling',
|
|
192
|
+
cs: 'Odlupování laku',
|
|
193
|
+
no: 'Avflassing av lakk',
|
|
168
194
|
ro: 'Desprinderea vopselei',
|
|
169
195
|
pl: 'Łuszcząca się farba',
|
|
170
196
|
da: 'Afskallet maling',
|
|
@@ -178,6 +204,8 @@ exports.damageTypeLabels = (_a = {},
|
|
|
178
204
|
},
|
|
179
205
|
_a[types_1.DamageType.SCATTERED_SCRATCHES] = {
|
|
180
206
|
en: 'Scattered Scratches',
|
|
207
|
+
cs: 'Roztroušené škrábance',
|
|
208
|
+
no: 'Spredte riper',
|
|
181
209
|
ro: 'Zgârieturi împrăștiate',
|
|
182
210
|
pl: 'Rozproszone rysy',
|
|
183
211
|
da: 'Spredte ridser',
|
|
@@ -191,6 +219,8 @@ exports.damageTypeLabels = (_a = {},
|
|
|
191
219
|
},
|
|
192
220
|
_a[types_1.DamageType.LIGHT_REFLECTION] = {
|
|
193
221
|
en: 'Light Reflection',
|
|
222
|
+
cs: 'Odraz světla',
|
|
223
|
+
no: 'Lysrefleks',
|
|
194
224
|
ro: 'Reflecția luminii',
|
|
195
225
|
pl: 'Odbicie światła',
|
|
196
226
|
da: 'Lysrefleks',
|
|
@@ -204,6 +234,8 @@ exports.damageTypeLabels = (_a = {},
|
|
|
204
234
|
},
|
|
205
235
|
_a[types_1.DamageType.SHADOW] = {
|
|
206
236
|
en: 'Shadow',
|
|
237
|
+
cs: 'Stín',
|
|
238
|
+
no: 'Skygge',
|
|
207
239
|
ro: 'Umbră',
|
|
208
240
|
pl: 'Cień',
|
|
209
241
|
da: 'Skygge',
|
|
@@ -217,6 +249,8 @@ exports.damageTypeLabels = (_a = {},
|
|
|
217
249
|
},
|
|
218
250
|
_a[types_1.DamageType.CAR_CURVE] = {
|
|
219
251
|
en: 'Car Curve',
|
|
252
|
+
cs: 'Křivka vozidla',
|
|
253
|
+
no: 'Bilkurve',
|
|
220
254
|
ro: 'Curba vehiculului',
|
|
221
255
|
pl: 'Krzywa pojazdu',
|
|
222
256
|
da: 'Bilkurve',
|
|
@@ -230,6 +264,8 @@ exports.damageTypeLabels = (_a = {},
|
|
|
230
264
|
},
|
|
231
265
|
_a[types_1.DamageType.PAINT_DAMAGE] = {
|
|
232
266
|
en: 'Paint Damage',
|
|
267
|
+
cs: 'Poškození laku',
|
|
268
|
+
no: 'Lakkskade',
|
|
233
269
|
ro: 'Deteriorări ale vopselei',
|
|
234
270
|
pl: 'Uszkodzenie lakieru',
|
|
235
271
|
da: 'Lakskade',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComplianceIssue, ImageStatus, TranslationObject } from '@monkvision/types';
|
|
1
|
+
import { ComplianceIssue, ImageStatus, TranslationObject, Viewpoint } from '@monkvision/types';
|
|
2
2
|
/**
|
|
3
3
|
* Translations available for image labels.
|
|
4
4
|
*/
|
|
@@ -20,3 +20,7 @@ export declare const imageStatusLabels: Record<ImageStatus, ImageLabels>;
|
|
|
20
20
|
* Translation labels for the different compliance issues.
|
|
21
21
|
*/
|
|
22
22
|
export declare const complianceIssueLabels: Record<ComplianceIssue, ImageLabels>;
|
|
23
|
+
/**
|
|
24
|
+
* The translated labels for each viewpoint available in the SDK.
|
|
25
|
+
*/
|
|
26
|
+
export declare const viewpointLabels: Record<Viewpoint, TranslationObject>;
|