Skip to content

Commit a4c17d8

Browse files
committed
adding translation for body weight
1 parent b64c05f commit a4c17d8

5 files changed

Lines changed: 35 additions & 25 deletions

File tree

definitions/items/body.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,12 @@ body-vulva-wetness-feeling:
4747
repeatable: any
4848
body-weight:
4949
version: temporary
50-
label: Body Weight
51-
description: Measured body weight
50+
label:
51+
en: Body weight
52+
fr: Poids corporel
53+
description:
54+
en: Measured body weight
55+
fr: Poids corporel mesuré
5256
streamId: body-weight
5357
type: number
5458
variations:

docs/index.html

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -48,28 +48,28 @@ <h3>Items</h3>
4848
</tr>
4949
</thead>
5050
<tbody>
51-
<tr><td>Id: body-vulva-mucus-inspect<br>Type: select</td><td>Cervical Fluid Inspect<br>Visual aspect of cervical fluid inspection</td><td>streamId: body-vulva-mucus-inspect<br>eventType: vulva-mucus-inspect/v0</td><td><pre></pre></td></tr>
52-
<tr><td>Id: body-vulva-mucus-stretch<br>Type: select</td><td>Cervical Fluid Stretch<br>Manual strech test of cervical fluid</td><td>streamId: body-vulva-mucus-stretch<br>eventType: ratio/generic</td><td><pre></pre></td></tr>
53-
<tr><td>Id: body-vulva-wetness-feeling<br>Type: select</td><td>Vulva Wetness feeling<br>Vulava wetness feeling</td><td>streamId: body-vulva-wetness-feeling<br>eventType: ratio/generic</td><td><pre></pre></td></tr>
54-
<tr><td>Id: body-weight<br>Type: number</td><td>Body Weight<br>Measured body weight</td><td>streamId: body-weight<br>eventType: undefined</td><td><pre>eventType:
51+
<tr><td>Id: body-vulva-mucus-inspect<br>Type: select</td><td>Cervical Fluid Inspect<br>Visual aspect of cervical fluid inspection</td><td>streamId: body-vulva-mucus-inspect<br>eventType(s): - variations -</td><td><pre></pre></td></tr>
52+
<tr><td>Id: body-vulva-mucus-stretch<br>Type: select</td><td>Cervical Fluid Stretch<br>Manual strech test of cervical fluid</td><td>streamId: body-vulva-mucus-stretch<br>eventType(s): - variations -</td><td><pre></pre></td></tr>
53+
<tr><td>Id: body-vulva-wetness-feeling<br>Type: select</td><td>Vulva Wetness feeling<br>Vulava wetness feeling</td><td>streamId: body-vulva-wetness-feeling<br>eventType(s): - variations -</td><td><pre></pre></td></tr>
54+
<tr><td>Id: body-weight<br>Type: number</td><td>Body weight<br>Measured body weight</td><td>streamId: body-weight<br>eventType(s): - variations -</td><td><pre>eventType:
5555
mass/kg:
5656
label:
5757
en: Kg
5858
mass/lb:
5959
label:
6060
en: Lbs
6161
</pre></td></tr>
62-
<tr><td>Id: family-children-count<br>Type: number</td><td>Nb of children<br>Number of children at this date</td><td>streamId: family-children<br>eventType: count/generic</td><td><pre></pre></td></tr>
63-
<tr><td>Id: fertility-cycles-charted-count<br>Type: number</td><td>Nb of charted cycles<br>Number of total charted cycles at this date</td><td>streamId: fertility-cycles-charted-estimation<br>eventType: count/generic</td><td><pre></pre></td></tr>
64-
<tr><td>Id: fertility-cycles-ovulation<br>Type: checkbox</td><td>Ovulation Day<br>Flag this day as an ovulation day</td><td>streamId: fertility-cycles-ovulation<br>eventType: activity/plain</td><td><pre></pre></td></tr>
65-
<tr><td>Id: fertility-cycles-start<br>Type: checkbox</td><td>New Cycle<br>Flag this day as a new cycle start</td><td>streamId: fertility-cycles-start<br>eventType: activity/plain</td><td><pre></pre></td></tr>
66-
<tr><td>Id: fertility-miscarriages-count<br>Type: number</td><td>Nb of miscarriages<br>Number of total miscarriages at this date</td><td>streamId: fertility-miscarriages<br>eventType: count/generic</td><td><pre></pre></td></tr>
67-
<tr><td>Id: fertility-ttc-tta<br>Type: select</td><td>Trying to conceive / Avoiding pregnancy<br>Current fertility intention</td><td>streamId: fertility-ttc-tta<br>eventType: ratio/generic</td><td><pre></pre></td></tr>
68-
<tr><td>Id: profile-addresscountry<br>Type: text</td><td>Country<br>Country of living</td><td>streamId: profile-address<br>eventType: contact/country</td><td><pre></pre></td></tr>
69-
<tr><td>Id: profile-date-of-birth<br>Type: date</td><td>Date of Birth<br>Date of birth</td><td>streamId: profile-date-of-birth<br>eventType: date/iso-8601</td><td><pre></pre></td></tr>
70-
<tr><td>Id: profile-name<br>Type: text</td><td>Name<br>Name</td><td>streamId: profile-name<br>eventType: contact/name</td><td><pre></pre></td></tr>
71-
<tr><td>Id: profile-sex<br>Type: select</td><td>Sex<br>Biological Sex</td><td>streamId: profile-sex<br>eventType: attributes/biological-sex</td><td><pre></pre></td></tr>
72-
<tr><td>Id: profile-surname<br>Type: text</td><td>Surname<br>Surname</td><td>streamId: profile-name<br>eventType: contact/surname</td><td><pre></pre></td></tr>
62+
<tr><td>Id: family-children-count<br>Type: number</td><td>Nb of children<br>Number of children at this date</td><td>streamId: family-children<br>eventType(s): - variations -</td><td><pre></pre></td></tr>
63+
<tr><td>Id: fertility-cycles-charted-count<br>Type: number</td><td>Nb of charted cycles<br>Number of total charted cycles at this date</td><td>streamId: fertility-cycles-charted-estimation<br>eventType(s): - variations -</td><td><pre></pre></td></tr>
64+
<tr><td>Id: fertility-cycles-ovulation<br>Type: checkbox</td><td>Ovulation Day<br>Flag this day as an ovulation day</td><td>streamId: fertility-cycles-ovulation<br>eventType(s): - variations -</td><td><pre></pre></td></tr>
65+
<tr><td>Id: fertility-cycles-start<br>Type: checkbox</td><td>New Cycle<br>Flag this day as a new cycle start</td><td>streamId: fertility-cycles-start<br>eventType(s): - variations -</td><td><pre></pre></td></tr>
66+
<tr><td>Id: fertility-miscarriages-count<br>Type: number</td><td>Nb of miscarriages<br>Number of total miscarriages at this date</td><td>streamId: fertility-miscarriages<br>eventType(s): - variations -</td><td><pre></pre></td></tr>
67+
<tr><td>Id: fertility-ttc-tta<br>Type: select</td><td>Trying to conceive / Avoiding pregnancy<br>Current fertility intention</td><td>streamId: fertility-ttc-tta<br>eventType(s): - variations -</td><td><pre></pre></td></tr>
68+
<tr><td>Id: profile-addresscountry<br>Type: text</td><td>Country<br>Country of living</td><td>streamId: profile-address<br>eventType(s): - variations -</td><td><pre></pre></td></tr>
69+
<tr><td>Id: profile-date-of-birth<br>Type: date</td><td>Date of Birth<br>Date of birth</td><td>streamId: profile-date-of-birth<br>eventType(s): - variations -</td><td><pre></pre></td></tr>
70+
<tr><td>Id: profile-name<br>Type: text</td><td>Name<br>Name</td><td>streamId: profile-name<br>eventType(s): - variations -</td><td><pre></pre></td></tr>
71+
<tr><td>Id: profile-sex<br>Type: select</td><td>Sex<br>Biological Sex</td><td>streamId: profile-sex<br>eventType(s): - variations -</td><td><pre></pre></td></tr>
72+
<tr><td>Id: profile-surname<br>Type: text</td><td>Surname<br>Surname</td><td>streamId: profile-name<br>eventType(s): - variations -</td><td><pre></pre></td></tr>
7373
</tbody>
7474
</table>
7575
</div>

docs/items.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,12 @@
107107
"body-weight": {
108108
"version": "temporary",
109109
"label": {
110-
"en": "Body Weight"
110+
"en": "Body weight",
111+
"fr": "Poids corporel"
111112
},
112113
"description": {
113-
"en": "Measured body weight"
114+
"en": "Measured body weight",
115+
"fr": "Poids corporel mesuré"
114116
},
115117
"streamId": "body-weight",
116118
"type": "number",
@@ -273,7 +275,8 @@
273275
"profile-addresscountry": {
274276
"version": "temporary",
275277
"label": {
276-
"en": "Country"
278+
"en": "Country",
279+
"fr": "Pays"
277280
},
278281
"description": {
279282
"en": "Country of living"

docs/pack.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"publicationDate": "2025-06-13T14:32:41.033Z",
2+
"publicationDate": "2025-07-17T08:54:13.045Z",
33
"streams": [
44
{
55
"id": "body",
@@ -252,10 +252,12 @@
252252
"body-weight": {
253253
"version": "temporary",
254254
"label": {
255-
"en": "Body Weight"
255+
"en": "Body weight",
256+
"fr": "Poids corporel"
256257
},
257258
"description": {
258-
"en": "Measured body weight"
259+
"en": "Measured body weight",
260+
"fr": "Poids corporel mesuré"
259261
},
260262
"streamId": "body-weight",
261263
"type": "number",
@@ -418,7 +420,8 @@
418420
"profile-addresscountry": {
419421
"version": "temporary",
420422
"label": {
421-
"en": "Country"
423+
"en": "Country",
424+
"fr": "Pays"
422425
},
423426
"description": {
424427
"en": "Country of living"

src/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const rowsItems = [];
5353
for (const key of Object.keys(itemsById).sort()) {
5454
const i = itemsById[key];
5555
const variation = i.variations ? YAML.stringify(i.variations, null, 2) : '';
56-
const line = `<tr><td>Id: ${key}<br>Type: ${i.type}</td><td>${i.label.en}<br>${i.description.en}</td><td>streamId: ${i.streamId}<br>eventType: ${i.eventType}</td><td><pre>${variation}</pre></td></tr>`;
56+
const line = `<tr><td>Id: ${key}<br>Type: ${i.type}</td><td>${i.label.en}<br>${i.description.en}</td><td>streamId: ${i.streamId}<br>eventType(s): ${i.eventTypes || '- variations -'}</td><td><pre>${variation}</pre></td></tr>`;
5757
rowsItems.push(line);
5858
}
5959
const indexHtmlDest = indexHtmlDest1.replace('{TABLE_ITEMS}', rowsItems.join('\n'));

0 commit comments

Comments
 (0)