Skip to content

Commit 5b41c55

Browse files
committed
III-6978: add theme preview with translations
1 parent 61325c7 commit 5b41c55

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

src/i18n/de.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,6 +1421,7 @@
14211421
"labels": {
14221422
"title": "Titel",
14231423
"type": "Typ",
1424+
"theme": "Thema",
14241425
"labels": "Labels",
14251426
"description": "Beschreibung",
14261427
"location": "Wo",
@@ -1438,6 +1439,7 @@
14381439
},
14391440
"empty_value": {
14401441
"description": "Keine Beschreibung",
1442+
"theme": "Kein Thema",
14411443
"organiser": "Keine Organisationsinformationen",
14421444
"price": "Keine Preisinformation",
14431445
"booking": "Keine Reservierungsinformationen",

src/i18n/fr.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,6 +1420,7 @@
14201420
"labels": {
14211421
"title": "Titre",
14221422
"type": "Type",
1423+
"theme": "Thème",
14231424
"labels": "Étiquettes",
14241425
"description": "Description",
14251426
"location": "",
@@ -1437,6 +1438,7 @@
14371438
},
14381439
"empty_value": {
14391440
"description": "Aucune description",
1441+
"theme": "Aucun thème",
14401442
"organiser": "Aucune information sur l'organisation",
14411443
"price": "Pas d'information du prix",
14421444
"booking": "Aucune information sur la réservation",

src/i18n/nl.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,6 +1477,7 @@
14771477
"labels": {
14781478
"title": "Titel",
14791479
"type": "Type",
1480+
"theme": "Thema",
14801481
"labels": "Labels",
14811482
"description": "Beschrijving",
14821483
"location": "Waar",
@@ -1494,6 +1495,7 @@
14941495
},
14951496
"empty_value": {
14961497
"description": "Geen beschrijving",
1498+
"theme": "Geen thema",
14971499
"organiser": "Geen organisatie-informatie",
14981500
"price": "Geen prijsinformatie",
14991501
"booking": "Geen reservatie-informatie",

src/pages/events/[eventId]/preview/Preview.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ const Preview = () => {
6969
);
7070

7171
const typeTerm = terms.find((term) => term.domain === 'eventtype');
72+
const themeTerm = terms.find((term) => term.domain === 'theme');
7273

7374
const description = getLanguageObjectOrFallback<string>(
7475
offer.description,
@@ -271,6 +272,14 @@ const Preview = () => {
271272
const tableData = [
272273
{ field: t('preview.labels.title'), value: title },
273274
{ field: t('preview.labels.type'), value: typeTerm.label },
275+
{
276+
field: t('preview.labels.theme'),
277+
value: themeTerm ? (
278+
themeTerm.label
279+
) : (
280+
<EmptyValue>{t('preview.empty_value.theme')}</EmptyValue>
281+
),
282+
},
274283
{
275284
field: t('preview.labels.labels'),
276285
value: (

0 commit comments

Comments
 (0)