Skip to content

Commit

Permalink
feat: fix translations
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanzavisic committed Sep 12, 2024
1 parent 86c62b4 commit 26e9d4e
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 15 deletions.
6 changes: 3 additions & 3 deletions packages/lib/src/arthritis/arthritis.wc.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@
<div class="summaryBody">
<h5>{getTranslation(lang, 'SYMPTOMS')}</h5>
<ul>
<li>{getTranslation(lang, 'SYMPTOM_TWENTY')}</li>
<li>{getTranslation(lang, 'SYMPTOM_TWENTYONE')}</li>
<li>{getTranslation(lang, 'SYMPTOM_TWENTYTWO')}</li>
<li>{getTranslation(lang, 'SYMPTOM_TWENTYTHREE')}</li>
<li>{getTranslation(lang, 'SYMPTOM_TWENTYFOUR')}</li>
<li>{getTranslation(lang, 'SYMPTOM_TWENTYFIVE')}</li>
</ul>
<h5>{getTranslation(lang,'POSSIBLE_FOLLOW_UP')}</h5>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/src/atherosclerosis/atherosclerosis.wc.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@
<li>{getTranslation(lang,'POSSIBLE_FOLLOW_UP_FOUR')}</li>
<li>{getTranslation(lang,'POSSIBLE_FOLLOW_UP_FIVE')}</li>
<li>{getTranslation(lang,'POSSIBLE_FOLLOW_UP_SIX')}</li>
<li>{getTranslation(lang,'POSSIBLE_FOLLOW_UP_SEVEN')}</li>
<li>{getTranslation(lang,'POSSIBLE_FOLLOW_UP_SEVEN_B')}</li>
</ul>
<h5>{getTranslation(lang,'RELATED_RESEARCH_PAPERS')}</h5>
<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC5970566/pdf/res-122-1555.pdf">Glycosylation Profile of Immunoglobulin G Is Cross-Sectionally Associated With Cardiovascular Disease Risk Score and Subclinical Atherosclerosis in Two Independent Cohorts</a>
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/src/colitis/colitis.wc.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@
<h5>{getTranslation(lang, 'SYMPTOMS')}</h5>
<ul>
<li>{getTranslation(lang, 'SYMPTOM_NINE')}</li>
<li>{getTranslation(lang, 'SYMPTOM_TEN_B')}</li>
<li>{getTranslation(lang, 'SYMPTOM_TEN')}</li>
<li>{getTranslation(lang, 'SYMPTOM_ELEVEN')}</li>
</ul>

<h5>{getTranslation(lang,'POSSIBLE_FOLLOW_UP')}</h5>
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/src/coronary/coronary.wc.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
<li>{getTranslation(lang,'POSSIBLE_FOLLOW_UP_FOUR')}</li>
<li>{getTranslation(lang,'POSSIBLE_FOLLOW_UP_FIVE')}</li>
<li>{getTranslation(lang,'POSSIBLE_FOLLOW_UP_SIX')}</li>
<li>{getTranslation(lang,'POSSIBLE_FOLLOW_UP_SEVEN')}</li>
<li>{getTranslation(lang,'POSSIBLE_FOLLOW_UP_SEVEN_C')}</li>
</ul>
<h5>{getTranslation(lang,'RELATED_RESEARCH_PAPERS')}</h5>
<a href="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9953309/pdf/biomolecules-13-00375.pdf">IgG N-Glycosylation Is Altered in Coronary Artery Disease</a>
Expand Down
6 changes: 3 additions & 3 deletions packages/lib/src/lupus/lupus.wc.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@
<div class="summaryBody">
<h5>{getTranslation(lang, 'SYMPTOMS')}</h5>
<ul>
<li>{getTranslation(lang, 'SYMPTOM_ONE')}</li>
<li>{getTranslation(lang, 'SYMPTOM_TWO')}</li>
<li>{getTranslation(lang, 'SYMPTOM_THREE')}</li>
<li>{getTranslation(lang, 'SYMPTOM_TWELVE')}</li>
<li>{getTranslation(lang, 'SYMPTOM_THIRTEEN')}</li>
<li>{getTranslation(lang, 'SYMPTOM_FOURTEEN')}</li>
</ul>

<h5>{getTranslation(lang,'POSSIBLE_FOLLOW_UP')}</h5>
Expand Down
18 changes: 12 additions & 6 deletions packages/lib/src/shared/consts/languages.const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export let english = {
SYMPTOM_EIGHT: 'Other (syncope, palpitations, leg edema, orthopnea, etc.)',
SYMPTOM_NINE: 'Abdominal pain and cramping/left arm/back',
SYMPTOM_TEN: 'Recurring diarrhea (± blood)',
SYMPTOM_TEN_B: 'Urgency to defecate',
SYMPTOM_ELEVEN: 'Weight loss',
SYMPTOM_TWELVE: 'Systemic (e.g., fatigue, weight loss, mouth ulcers, butterfly skin rash)',
SYMPTOM_THIRTEEN: 'Organ-specific (chest pain, difficulty breathing, leg swelling, anaemia, etc.)',
Expand All @@ -34,7 +35,7 @@ export let english = {
SYMPTOM_EIGHTEEN: 'Difficulty breathing',
SYMPTOM_NINETEEN: 'Chronic cough (± productive)',
SYMPTOM_TWENTY: 'Irregular menstrual cycle',
SYMPTOM_TWENTYONE: 'Vasomotor symptoms (e.g., hot flushes)',
SYMPTOM_TWENTYONE: 'Vasomotor symptoms (e.g., hot flushes, night sweats)',
SYMPTOM_TWENTYTWO: 'Other (e.g., mood swings, cognitive difficulties, sleep disturbance)',
SYMPTOM_TWENTYTHREE: 'Joint pain, swelling, stiffness and erythema',
SYMPTOM_TWENTYFOUR: 'Smaller and distant joint involvement (fingers, toes), usually symmetrical',
Expand All @@ -46,7 +47,9 @@ export let english = {
POSSIBLE_FOLLOW_UP_FOUR: 'Blood tests: basic and extended lipid profile (e.g., Lp(a), ApoB), hsCRP, homocysteine, renal and liver function, HbA1c',
POSSIBLE_FOLLOW_UP_FIVE: 'BP check',
POSSIBLE_FOLLOW_UP_SIX: 'ECG',
POSSIBLE_FOLLOW_UP_SEVEN: 'CardiologyBlood pressure check referral for other tests (e.g., cardiac echo, coronary CT)',
POSSIBLE_FOLLOW_UP_SEVEN: 'Cardiology referral for other tests (e.g., cardiac echo, coronary CT)',
POSSIBLE_FOLLOW_UP_SEVEN_B: 'Cardiology referral for other tests (e.g., coronary artery calcium score)',
POSSIBLE_FOLLOW_UP_SEVEN_C: 'Cardiology referral for other tests (e.g., stress echocardiogram)',
POSSIBLE_FOLLOW_UP_EIGHT: 'Blood tests: full blood count, renal and liver function, CRP',
POSSIBLE_FOLLOW_UP_NINE: 'Stool tests: faecal immunochemical test (FIT), faecal calprotectin',
POSSIBLE_FOLLOW_UP_TEN: 'Referral for CT colonoscopy',
Expand All @@ -60,7 +63,7 @@ export let english = {
POSSIBLE_FOLLOW_UP_EIGHTEEN: 'Spirometry',
POSSIBLE_FOLLOW_UP_NINETEEN: 'ECG, chest X-ray',
POSSIBLE_FOLLOW_UP_TWENTY: 'Blood tests (incl. FSH, oestradiol, progesterone, testosterone, AMH)',
POSSIBLE_FOLLOW_UP_TWENTYONE: 'Referral to (peri)menopause specialist',
POSSIBLE_FOLLOW_UP_TWENTYONE: 'Referral to (peri)menopause specialist/gynaecologist',
POSSIBLE_FOLLOW_UP_TWENTYTWO: 'Blood tests: full blood count, rheumatoid factor, anti-CCP antibodies, CRP',
POSSIBLE_FOLLOW_UP_TWENTYTHREE: 'Joint imaging (X-rays, MRI)',
PERCENTILE: 'percentile',
Expand Down Expand Up @@ -100,6 +103,7 @@ export let polish = {
SYMPTOM_EIGHT: 'Inne (omdlenia, kołatanie serca, obrzęk nóg, orhhopnoe itp.)',
SYMPTOM_NINE: 'Ból brzucha i skurcze',
SYMPTOM_TEN: 'Nawracająca biegunka (± krew)',
SYMPTOM_TEN_B: 'Nagła potrzeba wypróżnienia',
SYMPTOM_ELEVEN: 'Utrata masy ciała',
SYMPTOM_TWELVE: 'Ogólnoustrojowe (np. zmęczenie, utrata masy ciała, owrzodzenia jamy ustnej, wysypka w kształcie motyla w okolicy policzków i nosa)',
SYMPTOM_THIRTEEN: 'Narządowe (ból w klatce piersiowej, trudności w oddychaniu, obrzęk nóg, niedokrwistość itp.)',
Expand All @@ -112,9 +116,9 @@ export let polish = {
SYMPTOM_TWENTY: 'Nieregularny cykl menstruacyjny',
SYMPTOM_TWENTYONE: 'Objawy naczynioruchowe (np. uderzenia gorąca)',
SYMPTOM_TWENTYTWO: 'Inne (np. wahania nastroju, trudności poznawcze, zaburzenia snu)',
SYMPTOM_TWENTYTHREE: 'Joint pain, swelling, stiffness and erythema',
SYMPTOM_TWENTYFOUR: 'Smaller and distant joint involvement (fingers, toes), usually symmetrical',
SYMPTOM_TWENTYFIVE: 'Systemic (fatigue, weight loss, etc.)',
SYMPTOM_TWENTYTHREE: 'Ból stawów, obrzęk, sztywność i rumień',
SYMPTOM_TWENTYFOUR: 'Zajęcie mniejszych stawów dystalnych (palce rąk i nóg), zwykle symetryczne',
SYMPTOM_TWENTYFIVE: 'Ogólnoustrojowe (zmęczenie, utrata masy ciała itp.)',
POSSIBLE_FOLLOW_UP: 'Ewentualne dalsze działania',
POSSIBLE_FOLLOW_UP_ONE: 'Seryjne pomiary ciśnienia tętniczego i/lub 24-godzinne monitorowanie ciśnienia tętniczego',
POSSIBLE_FOLLOW_UP_TWO: 'BMI i/lub kontrola składu ciała',
Expand All @@ -123,6 +127,8 @@ export let polish = {
POSSIBLE_FOLLOW_UP_FIVE: 'Kontrola ciśnienia tętniczego',
POSSIBLE_FOLLOW_UP_SIX: 'EKG',
POSSIBLE_FOLLOW_UP_SEVEN: 'Skierowanie do kardiologa na inne badania (np. echo serca, TK naczyń wieńcowych)',
POSSIBLE_FOLLOW_UP_SEVEN_B: 'Skierowanie do kardiologa na inne badania (np. wskaźnik uwapnienia tętnic wieńcowych)',
POSSIBLE_FOLLOW_UP_SEVEN_C: 'Skierowanie do kardiologa na inne badania (np. echokardiogram wysiłkowy)',
POSSIBLE_FOLLOW_UP_EIGHT: 'Badania krwi: pełna morfologia krwi, czynność nerek i wątroby, CRP',
POSSIBLE_FOLLOW_UP_NINE: 'Badania kału: test na obecność krwi utajonej (FIT), kalprotektyna w kale',
POSSIBLE_FOLLOW_UP_TEN: 'Skierowanie na kolonoskopię, TK',
Expand Down

0 comments on commit 26e9d4e

Please sign in to comment.