From d1228ca43f527b6979b691fc0a6eb7fad3ab299e Mon Sep 17 00:00:00 2001 From: 778a69cd <778a69cd@potsda.mn> Date: Tue, 24 May 2022 16:48:20 +0200 Subject: [PATCH] add smoke-free as a metadata option for events This is upstreamable! --- js/src/i18n/de.json | 3 +++ js/src/i18n/en_US.json | 5 ++++- js/src/services/EventMetadata.ts | 16 ++++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/js/src/i18n/de.json b/js/src/i18n/de.json index 1f9f8375c..c83bfe92a 100644 --- a/js/src/i18n/de.json +++ b/js/src/i18n/de.json @@ -388,6 +388,9 @@ "From the {startDate} to the {endDate}": "Vom {startDate} bis zum {endDate}", "From yourself": "Von Ihnen selbst", "Fully accessible with a wheelchair": "Komplett barrierefrei für Rollstühle", + "Smoke free": "Rauchfrei", + "Whether smoking is prohibited during the event": "Während der Veranstaltung wird nicht geraucht", + "Smoking allowed": "Rauchen gestattet", "Gather ⋅ Organize ⋅ Mobilize": "Treffen ⋅ Organisieren ⋅ Mobilisieren", "General": "Allgemein", "General information": "Allgemeine Informationen", diff --git a/js/src/i18n/en_US.json b/js/src/i18n/en_US.json index 4a0150659..dae209e59 100644 --- a/js/src/i18n/en_US.json +++ b/js/src/i18n/en_US.json @@ -1066,6 +1066,9 @@ "Not accessible with a wheelchair": "Not accessible with a wheelchair", "Partially accessible with a wheelchair": "Partially accessible with a wheelchair", "Fully accessible with a wheelchair": "Fully accessible with a wheelchair", + "Smoke free": "Smoke free", + "Whether smoking is prohibited during the event": "Whether smoking is prohibited during the event", + "Smoking allowed": "Smoking allowed", "YouTube replay": "YouTube replay", "The URL where the event live can be watched again after it has ended": "The URL where the event live can be watched again after it has ended", "Twitch replay": "Twitch replay", @@ -1331,4 +1334,4 @@ "Activate notifications": "Activate notifications", "Deactivate notifications": "Deactivate notifications", "Membership requests will be approved by a group moderator": "Membership requests will be approved by a group moderator" -} \ No newline at end of file +} diff --git a/js/src/services/EventMetadata.ts b/js/src/services/EventMetadata.ts index 6500173b9..567c5dfd0 100644 --- a/js/src/services/EventMetadata.ts +++ b/js/src/services/EventMetadata.ts @@ -58,6 +58,22 @@ export const eventMetaDataList: IEventMetadataDescription[] = [ }, category: EventMetadataCategories.ACCESSIBILITY, }, + { + icon: "smoking-off", + key: "mz:accessibility:smokeFree", + label: i18n.t("Smoke free") as string, + description: i18n.t( + "Whether smoking is prohibited during the event" + ) as string, + value: "false", + type: EventMetadataType.BOOLEAN, + keyType: EventMetadataKeyType.PLAIN, + choices: { + true: i18n.t("Smoke free") as string, + false: i18n.t("Smoking allowed") as string, + }, + category: EventMetadataCategories.ACCESSIBILITY, + }, { icon: "youtube", key: "mz:replay:youtube:url",