Skip to content

Commit

Permalink
fix: translate roles
Browse files Browse the repository at this point in the history
  • Loading branch information
styrix560 committed Oct 28, 2024
1 parent 52c8be3 commit 891972b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
24 changes: 12 additions & 12 deletions src/assets/data/team.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,69 +2,69 @@
{
"img": "/src/assets/img/team/Benjamin Frost.webp",
"name": "Benjamin Frost",
"lastRole": "Jury",
"lastRole": { "de": "Jury", "en": "Jury" },
"hasMultipleRoles": true
},
{
"img": "/src/assets/img/team/Jonas Wanke.webp",
"name": "Jonas Wanke",
"lastRole": "Expert",
"lastRole": { "en": "Expert", "de": "Experte" },
"skill": "Skill 08",
"hasMultipleRoles": true
},
{
"img": "/src/assets/img/team/Dr. Olaf Kappler.webp",
"name": "Dr. Olaf Kappler",
"lastRole": "Expert",
"lastRole": { "en": "Expert", "de": "Experte" },
"skill": "Skill 09"
},
{
"img": "/src/assets/img/team/Doreen Kappler.webp",
"name": "Doreen Kappler",
"lastRole": "Good Fairy"
"lastRole": { "de": "Good Fairy", "en": "Good Fairy" }
},
{
"img": "/src/assets/img/team/Glenn Skrzypczak.webp",
"name": "Glenn Skrzypczak",
"lastRole": "Expert",
"lastRole": { "en": "Expert", "de": "Experte" },
"skill": "Skill 17",
"hasMultipleRoles": true
},
{
"img": "/src/assets/img/team/Elisa Boose.webp",
"name": "Elisa Boose",
"lastRole": "Trainer"
"lastRole": { "en": "Trainer", "de": "Trainer" }
},
{
"img": "/src/assets/img/team/Michael Boose.webp",
"name": "Michael Boose",
"lastRole": "Trainer"
"lastRole": { "en": "Trainer", "de": "Trainer" }
},
{
"img": "/src/assets/img/team/Joachim Schiller.webp",
"name": "Joachim Schiller",
"lastRole": "Jury",
"lastRole": { "de": "Jury", "en": "Jury" },
"hasMultipleRoles": true
},
{
"img": "/src/assets/img/team/Justin Konratt.webp",
"name": "Justin Konratt",
"lastRole": "Jury",
"lastRole": { "de": "Jury", "en": "Jury" },
"hasMultipleRoles": true
},
{
"img": "/src/assets/img/team/Kai Redmann.webp",
"name": "Kai Redmann",
"lastRole": "Workshop Manager"
"lastRole": { "en": "Workshop Manager", "de": "Workshop Manager" }
},
{
"img": "/src/assets/img/team/Lukas Fischer.webp",
"name": "Lukas Fischer",
"lastRole": "Workshop Manager"
"lastRole": { "en": "Workshop Manager", "de": "Workshop Manager" }
},
{
"img": "/src/assets/img/team/Thomas Steinfeld.webp",
"name": "Thomas Steinfeld",
"lastRole": "Mr. Speed Programming"
"lastRole": { "en": "Mr. Speed Programming", "de": "Mr. Speed Programming" }
}
]
4 changes: 2 additions & 2 deletions src/components/team/Person.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { PersonImage } from "./PersonImage";
interface Props {
name: string;
lastRole: string;
lastRole: { de: string; en: string };
img?: string;
skill?: string;
hasMultipleRoles?: boolean;
Expand All @@ -22,7 +22,7 @@ const t = useTranslations(lang);
<h3 class="mb-1 text-lg font-medium">{name}</h3>
<div>
<p class="inline-block">
{lastRole}
{t(lastRole)}
</p>
<p class="inline-block">
{hasMultipleRoles && t({ de: "und mehr", en: "and more" })}
Expand Down

0 comments on commit 891972b

Please sign in to comment.