Skip to content

Commit

Permalink
Fixed bugs, added fields
Browse files Browse the repository at this point in the history
  • Loading branch information
AdyStudios committed Jul 14, 2024
1 parent 3d00f68 commit 303dcc8
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
37 changes: 37 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,17 @@ function App() {

const jsonData = parsedData.map((row) => ({
groupid: row["Csoport"],
studentName: row["Személy"],
age: row["Data Age"],
campType: row["Data Camp Type"],
favoriteLeasureActivity: row["Data Favorite Leasure Activity"],
knowMyLogiscool: row["Data Know My Logiscool"],
openText: {
likeTheMost: row["Data Open Text Like The Most"],
notLiked: row["Data Not Liked"],
myBiggestAchievement: row["Data Open Text My Biggest Achievement"],
openTextLSC: row["Data Open Text About Logiscool"],
openLikedTheLeast: row["Data Open Text Like The Least"]
},
trainerAttributes: {
attributes: {
Expand Down Expand Up @@ -274,6 +278,11 @@ function App() {
<p className="card-header-title">
<Trans i18nKey="lr.groupId" />: {data.groupid}
</p>
</div>
<div className="studentName">
<p className="card-header-title">
<Trans i18nKey="lr.studentName" />: {data.studentName}
</p>
</div>
<div className="container is-fluid mt-5 mb-5">
<div className="columns is-multiline">
Expand Down Expand Up @@ -307,6 +316,26 @@ function App() {
: data.likedTheMost}
</dd>
</dl>
<dl className="field" id="notfavorite">
<dt className="label">
<Trans i18nKey="lr.content.notfavorite" />
</dt>
<dd>
{data.openText?.notLiked
? data.openText.notLiked
: data.likedTheMost}
</dd>
</dl>
<dl className="field" id="openLikedTheLeast">
<dt className="label">
<Trans i18nKey="lr.content.openLikedTheLeast" />
</dt>
<dd>
{data.openText?.openLikedTheLeast
? data.openText.openLikedTheLeast
: data.likedTheMost}
</dd>
</dl>
{data.openText?.myBiggestAchievement ? (
<dl className="field" id="myBiggestAchievement">
<dt className="label">
Expand All @@ -315,6 +344,14 @@ function App() {
<dd>{data.openText.myBiggestAchievement}</dd>
</dl>
) : null}
{data.openText?.openTextLSC ? (
<dl className="field" id="openTextLsc">
<dt className="label">
<Trans i18nKey="lr.content.openTextLsc" />
</dt>
<dd>{data.openText.openTextLSC}</dd>
</dl>
) : null}
<dl className="field" id="favoriteActivity">
<dt className="label">
<Trans i18nKey="lr.content.favoriteActivity" />
Expand Down
4 changes: 4 additions & 0 deletions src/locales/de/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"madeby": "Erstellt von",
"thanks": "Dank:",
"groupId": "Gruppen-ID",
"studentName": "Student Name",
"tipofday": "Tipp des Tages",
"language": "Deutsch",
"nofileUpload": "Datei-Upload wird nicht unterstützt.",
Expand All @@ -19,7 +20,10 @@
"favorite": "Favorit",
"biggestAchievement": "Mein größter Erfolg",
"favoriteActivity": "Lieblingsaktivität",
"openTextLsc": "Das Logiscool ist...",
"knowMyLogiscool": "Über Logiscool",
"openLikedTheLeast": "Öfnen liblings nicht",
"notfavorite": "libnings nicht",
"attributes": "Eigenschaften",
"trainerAttributes": "Trainer-Eigenschaften",
"leadTrainerAttributes": "Lead-Trainer-Eigenschaften",
Expand Down
4 changes: 4 additions & 0 deletions src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"madeby": "made by",
"thanks": "Thanks to:",
"groupId": "Group ID",
"studentName": "Student name",
"tipofday": "Tip of the day",
"language": "English",
"nofileUpload": "No file uploaded",
Expand All @@ -18,6 +19,9 @@
"campType": "Camp-Type",
"favorite": "Favorite",
"biggestAchievement": "My biggest achievement",
"openLikedTheLeast": "Open liked the least",
"notfavorite": "Didn't like",
"openTextLsc": "Logiscool is a....",
"favoriteActivity": "Favorite activity",
"knowMyLogiscool": "About Logiscool",
"attributes": "Attributes",
Expand Down
4 changes: 4 additions & 0 deletions src/locales/hu/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"madeby": "készítette",
"thanks": "Köszönet:",
"groupId": "Csoport id",
"studentName": "Gyerek neve",
"tipofday": "Napi tipp",
"language": "Magyar",
"nofileUpload": "Nincs feltöltött fájl.",
Expand All @@ -18,6 +19,9 @@
"campType": "Tábor Típus",
"favorite": "Legjobban tetszett",
"biggestAchievement": "Legnagyobb eredményem",
"openLikedTheLeast": "Nyílt legkevésbé teszett",
"notfavorite": "Nem teszett",
"openTextLsc": "A Logiscool egy...",
"favoriteActivity": "Kedvenc szabadidős tevékenység",
"knowMyLogiscool": "Ismerem a MyLogiscool-t",
"attributes": "Tulajdonságai",
Expand Down

0 comments on commit 303dcc8

Please sign in to comment.