diff --git a/src/features/surveys/components/surveyForm/SurveyFooter.tsx b/src/features/surveys/components/surveyForm/SurveyFooter.tsx index 849a78bfa..b71460154 100644 --- a/src/features/surveys/components/surveyForm/SurveyFooter.tsx +++ b/src/features/surveys/components/surveyForm/SurveyFooter.tsx @@ -15,14 +15,24 @@ const SurveyFooter: FC = () => { () => [ { href: 'https://zetkin.org/', - text: messageIds.surveyFooter.links.foundation, + text: messages.surveyFooter.links.foundation(), }, { href: process.env.ZETKIN_PRIVACY_POLICY_LINK || messages.surveyForm.policy.link(), - text: messageIds.surveyFooter.links.privacy, + text: messages.surveyFooter.links.privacy(), }, + ...(typeof process.env.NEXT_PUBLIC_HOSTING_ORGANIZATION_NAME === + 'string' && + typeof process.env.NEXT_PUBLIC_HOSTING_ORGANIZATION_HREF === 'string' + ? [ + { + href: process.env.NEXT_PUBLIC_HOSTING_ORGANIZATION_HREF, + text: process.env.NEXT_PUBLIC_HOSTING_ORGANIZATION_NAME, + }, + ] + : []), ], [messages] ); @@ -40,6 +50,24 @@ const SurveyFooter: FC = () => { + {typeof process.env.NEXT_PUBLIC_HOSTING_ORGANIZATION_NAME === + 'string' && ( + + + + + + )} { style={{ color: theme.palette.secondary.light }} target="_blank" > - + {link.text} ))} diff --git a/src/features/surveys/l10n/messageIds.ts b/src/features/surveys/l10n/messageIds.ts index 13149a4df..fdc5547e1 100644 --- a/src/features/surveys/l10n/messageIds.ts +++ b/src/features/surveys/l10n/messageIds.ts @@ -180,6 +180,9 @@ export default makeMessages('feat.surveys', { title: m('Add email address'), }, surveyFooter: { + hostingOrganization: m<{ name: string }>( + 'This instance of Zetkin is hosted and managed by {name}.' + ), links: { foundation: m('Zetkin Foundation'), privacy: m('Privacy Policy'),