@lysaab/lysa-pep 2.1.1 → 2.3.0

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.
@@ -2,52 +2,52 @@ import { defineMessages } from "react-intl";
2
2
  import { BusinessRelation, Relation } from "../PepContext";
3
3
  export const relationMessages = defineMessages({
4
4
  header: {
5
- id: "pep.relation.relation.header",
6
- description: "Relation header",
5
+ id: "pep.relation.relationship.header",
6
+ description: "Relationship header",
7
7
  defaultMessage: `{
8
8
  entityType, select,
9
9
  PERSON {
10
- Vilken relation har du till personen i politiskt utsatt ställning?
10
+ What relationship do you have to the person in a politically exposed position?
11
11
  }
12
12
  CORPORATION {
13
- Vilken relation har {name} till personen i politiskt utsatt ställning?
13
+ What relationship does {name} have to the person in a politically exposed position?
14
14
  }
15
15
  }`,
16
16
  },
17
17
  required: {
18
18
  id: "pep.relation.relation.required",
19
19
  description: "Required error message",
20
- defaultMessage: `Du måste välja ett alternativ`,
20
+ defaultMessage: "You need to choose an alternative",
21
21
  },
22
22
  [Relation.MARRIED_PARTNER]: {
23
23
  id: "pep.relation.relation.MARRIED_PARTNER",
24
24
  description: "The person is married to someone who is pep",
25
- defaultMessage: `Make/Maka till PEP`,
25
+ defaultMessage: "Spouse of a PEP",
26
26
  },
27
27
  [Relation.COLIVING_PARTNER]: {
28
28
  id: "pep.relation.relation.COLIVING_PARTNER",
29
- description: "The person is married to someone who is pep",
30
- defaultMessage: `Sambo till PEP`,
29
+ description: "The person is a coliving partner to someone who is pep",
30
+ defaultMessage: "Partner to a PEP",
31
31
  },
32
32
  [Relation.CHILD]: {
33
33
  id: "pep.relation.relation.CHILD",
34
- description: "The person is married to someone who is pep",
35
- defaultMessage: `Barn till PEP`,
34
+ description: "The person is the child of someone who is pep",
35
+ defaultMessage: "Child of a PEP",
36
36
  },
37
37
  [Relation.PARENT]: {
38
38
  id: "pep.relation.relation.PARENT",
39
- description: "The person is married to someone who is pep",
40
- defaultMessage: `Förälder till PEP`,
39
+ description: "The person is the parent of someone who is pep",
40
+ defaultMessage: "Parent of a PEP",
41
41
  },
42
42
  [Relation.CHILD_MARRIED_PARTNER]: {
43
43
  id: "pep.relation.relation.CHILD_MARRIED_PARTNER",
44
- description: "The person is married to someone who is pep",
45
- defaultMessage: `Make/Maka till barn till PEP`,
44
+ description: "The person is married to the child of someone who is pep",
45
+ defaultMessage: "Spouse of the child of a PEP",
46
46
  },
47
47
  [Relation.CHILD_COLIVING_PARTNER]: {
48
48
  id: "pep.relation.relation.CHILD_COLIVING_PARTNER",
49
49
  description: "The person is married to someone who is pep",
50
- defaultMessage: `Sambo till barn till PEP`,
50
+ defaultMessage: "Partner to the child of a PEP",
51
51
  },
52
52
  });
53
53
  export const businessRelationMessages = defineMessages({
@@ -57,17 +57,17 @@ export const businessRelationMessages = defineMessages({
57
57
  defaultMessage: `{
58
58
  entityType, select,
59
59
  PERSON {
60
- Vilken relation har du till personen i politisk utsatt ställning?
60
+ What relationship do you have to the person in a politically exposed position?
61
61
  }
62
62
  CORPORATION {
63
- Vilken relation har {name} till personen i politisk utsatt ställning?
63
+ What relationship does {name} have to the person in a politically exposed position?
64
64
  }
65
65
  }`,
66
66
  },
67
67
  required: {
68
68
  id: "pep.relation.businessrelation.required",
69
69
  description: "Required error message",
70
- defaultMessage: `Du måste välja ett alternativ`,
70
+ defaultMessage: "You need to choose an alternative",
71
71
  },
72
72
  [BusinessRelation.CO_OWNERSHIP]: {
73
73
  id: "pep.relation.businessrelation.alt.CO_OWNERSHIP",
@@ -75,37 +75,36 @@ export const businessRelationMessages = defineMessages({
75
75
  defaultMessage: `{
76
76
  entityType, select,
77
77
  PERSON {
78
- Jag är verklig huvudman till en juridisk person, eller juridiska konstruktioner, tillsammans med en PEP
78
+ I am the beneficial owner to a legal person, or a legal structure together with a PEP
79
79
  }
80
80
  CORPORATION {
81
- {name} är verklig huvudman till en juridisk person, eller juridiska konstruktioner, tillsammans med en PEP
81
+ {name} is the beneficial owner to a legal person, or a legal structure together with a PEP
82
82
  }
83
83
  }`,
84
84
  },
85
85
  [BusinessRelation.CLOSE_CONNECTION]: {
86
86
  id: "pep.relation.businessrelation.alt.CLOSE_CONNECTION",
87
- description: "The person is married to someone who is pep",
87
+ description: "Close business relation",
88
88
  defaultMessage: `{
89
89
  entityType, select,
90
90
  PERSON {
91
- Jag är en person som på annat sätt har eller har haft nära förbindelser med en PEP
91
+ I am a person that in one way or the other have or have had a close relation with a PEP
92
92
  }
93
93
  CORPORATION {
94
- {name} är en person som på annat sätt har eller har haft nära förbindelser med en PEP
94
+ {name} is a person that in one way or the other has or has had a close relation with a PEP
95
95
  }
96
96
  }`,
97
97
  },
98
98
  [BusinessRelation.COMPANY_FOR_PEP]: {
99
99
  id: "pep.relation.businessrelation.alt.COMPANY_FOR_PEP",
100
- description: "The person is married to someone who is pep",
100
+ description: "Beneficial owner",
101
101
  defaultMessage: `{
102
102
  entityType, select,
103
103
  PERSON {
104
- Jag är verklig huvudman till en juridisk person, eller juridiska konstruktioner, tillsammans med en PEP
104
+ I am the beneficial owner to a legal person, or a legal structure together with a PEP
105
105
  }
106
106
  CORPORATION {
107
- {name} är ensam verklig huvudman till en juridisk person eller konstruktion som har upprättats till förmån för en PEP
108
-
107
+ {name} is the lone beneficial owner to a legal person, or a legal structure together with a PEP
109
108
  }
110
109
  }`,
111
110
  },
@@ -120,22 +119,22 @@ export const relativeNameMessages = defineMessages({
120
119
  {
121
120
  relation, select,
122
121
  MARRIED_PARTNER {
123
- Vad heter din make/maka?
122
+ What is the name of your spouce?
124
123
  }
125
124
  COLIVING_PARTNER {
126
- Vad heter din sambo?
125
+ What is the name of your partner?
127
126
  }
128
127
  CHILD {
129
- Vad heter din förälder?
128
+ What is the name of your parent?
130
129
  }
131
130
  PARENT {
132
- Vad heter ditt barn?
131
+ What is the name of your child?
133
132
  }
134
133
  CHILD_MARRIED_PARTNER {
135
- Vad heter föräldern till din make/maka?
134
+ What is the name of the parent of your spouse?
136
135
  }
137
136
  CHILD_COLIVING_PARTNER {
138
- Vad heter föräldern till din sambo?
137
+ What is the name of the parent of your partner?
139
138
  }
140
139
  other {}
141
140
  }
@@ -144,22 +143,22 @@ export const relativeNameMessages = defineMessages({
144
143
  {
145
144
  relation, select,
146
145
  MARRIED_PARTNER {
147
- Vad heter {possessiveName} make/maka?
146
+ What is the name of the spouse of {name}?
148
147
  }
149
148
  COLIVING_PARTNER {
150
- Vad heter {possessiveName} sambo?
149
+ What is the name of the partner of {name}?
151
150
  }
152
151
  CHILD {
153
- Vad heter {possessiveName} förälder?
152
+ What is the name of the parent of {name}?
154
153
  }
155
154
  PARENT {
156
- Vad heter {possessiveName} barn?
155
+ What is the name of the child of {name}?
157
156
  }
158
157
  CHILD_MARRIED_PARTNER {
159
- Vad heter föräldern till {possessiveName} make/maka?
158
+ What is the name of the parent of the spouse of {name}?
160
159
  }
161
160
  CHILD_COLIVING_PARTNER {
162
- Vad heter föräldern till {possessiveName} sambo?
161
+ What is the name of the parent of the partner of {name}?
163
162
  }
164
163
  other {}
165
164
  }
@@ -170,7 +169,7 @@ export const relativeNameMessages = defineMessages({
170
169
  required: {
171
170
  id: "pep.relation.relative.name.required",
172
171
  description: "Required error message",
173
- defaultMessage: `Du måste välja ett alternativ`,
172
+ defaultMessage: "You need to choose an alternative",
174
173
  },
175
174
  });
176
175
  export const birthdayMessages = defineMessages({
@@ -183,22 +182,22 @@ export const birthdayMessages = defineMessages({
183
182
  {
184
183
  relation, select,
185
184
  MARRIED_PARTNER {
186
- När är din make/maka född?
185
+ When is your spouse born?
187
186
  }
188
187
  COLIVING_PARTNER {
189
- När är din sambo född?
188
+ When is your partner born?
190
189
  }
191
190
  CHILD {
192
- När är din förälder född?
191
+ When is your parent born?
193
192
  }
194
193
  PARENT {
195
- När är ditt barn fött?
194
+ When is your child born?
196
195
  }
197
196
  CHILD_MARRIED_PARTNER {
198
- När är föräldern till din make/maka född?
197
+ When is the parent of your spouse born?
199
198
  }
200
199
  CHILD_COLIVING_PARTNER {
201
- När är föräldern till din sambo född?
200
+ When is the parent of your partner born?
202
201
  }
203
202
  other {}
204
203
  }
@@ -207,22 +206,22 @@ export const birthdayMessages = defineMessages({
207
206
  {
208
207
  relation, select,
209
208
  MARRIED_PARTNER {
210
- När är {possessiveName} make/maka född?
209
+ When is the spouse of {name} born?
211
210
  }
212
211
  COLIVING_PARTNER {
213
- När är {possessiveName} sambo född?
212
+ When is the partner of {name} born?
214
213
  }
215
214
  CHILD {
216
- När är {possessiveName} förälder född?
215
+ When is the child of {name} born?
217
216
  }
218
217
  PARENT {
219
- När är {possessiveName} barn fött?
218
+ When is the parent of {name} born?
220
219
  }
221
220
  CHILD_MARRIED_PARTNER {
222
- När är föräldern till {possessiveName} make/maka född?
221
+ When is the parent of the spouse of {name} born?
223
222
  }
224
223
  CHILD_COLIVING_PARTNER {
225
- När är föräldern till {possessiveName} sambo född?
224
+ When is the parent of the partner of {name} born?
226
225
  }
227
226
  other {}
228
227
  }
@@ -233,7 +232,7 @@ export const birthdayMessages = defineMessages({
233
232
  required: {
234
233
  id: "pep.relation.birthday.required",
235
234
  description: "Required error message",
236
- defaultMessage: `Ange datum`,
235
+ defaultMessage: "State the date",
237
236
  },
238
237
  });
239
238
  export const colleagueNameMessages = defineMessages({
@@ -246,13 +245,13 @@ export const colleagueNameMessages = defineMessages({
246
245
  {
247
246
  relation, select,
248
247
  CO_OWNERSHIP {
249
- Vad heter personen i politisk utsatt ställning som du har en relation till?
248
+ What is the name of the person in a politically exposed position that you have a relationship with?
250
249
  }
251
250
  CLOSE_CONNECTION {
252
- Vad heter personen i politisk utsatt ställning som du har en relation till?
251
+ What is the name of the person in a politically exposed position that you have a relationship with?
253
252
  }
254
253
  COMPANY_FOR_PEP {
255
- Vad heter personen i politisk utsatt ställning som den juridiska personen eller konstruktionen har upprättats till förmån till?
254
+ What is the name of the person in a politically exposed position for whom the legal person or structure has been established for?
256
255
  }
257
256
  other {}
258
257
  }
@@ -261,13 +260,13 @@ export const colleagueNameMessages = defineMessages({
261
260
  {
262
261
  relation, select,
263
262
  CO_OWNERSHIP {
264
- Vad heter personen i politisk utsatt ställning som {name} har en relation till?
263
+ What is the name of the person in a politically exposed position that {name} has a relationship with?
265
264
  }
266
265
  CLOSE_CONNECTION {
267
- Vad heter personen i politisk utsatt ställning som {name} har en relation till?
266
+ What is the name of the person in a politically exposed position that {name} has a relationship with?
268
267
  }
269
268
  COMPANY_FOR_PEP {
270
- Vad heter personen i politisk utsatt ställning som den juridiska personen eller konstruktionen har upprättats till förmån till?
269
+ What is the name of the person in a politically exposed position for whom the legal person or structure has been established for?
271
270
  }
272
271
  other {}
273
272
  }
@@ -278,6 +277,6 @@ export const colleagueNameMessages = defineMessages({
278
277
  required: {
279
278
  id: "pep.relation.colleague.name.required",
280
279
  description: "Required error message",
281
- defaultMessage: `Du måste välja ett alternativ`,
280
+ defaultMessage: "You need to choose an alternative",
282
281
  },
283
282
  });
@@ -79,7 +79,7 @@ export const RelationPage = ({ next }) => {
79
79
  new RequiredValidator(intl.formatMessage(colleagueNameMessages.required)),
80
80
  ] }))) : null),
81
81
  React.createElement(PrimaryButton, { block: true, type: "submit" },
82
- React.createElement(FormattedMessage, { id: "pep.relation.next", description: "Next button", defaultMessage: "G\u00E5 vidare" }))));
82
+ React.createElement(FormattedMessage, { id: "pep.relation.next", description: "Next button", defaultMessage: "Next" }))));
83
83
  };
84
84
  function getRelationAlternatives(intl, entityType, pepContext) {
85
85
  return [