Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/translations/ca.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default {
contextual: {
title: '"{purpose}" està inactiu',
description: 'Permet que les cookies accedeixin a aquesta funcionalitat.',
privacyPolicyLabel: 'política de privacitat',
accept: 'Permetre',
accepted: '"{purpose}" ara està permès.'
},
Expand Down
1 change: 1 addition & 0 deletions src/translations/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default {
title: '"{purpose}" ist inaktiv',
description:
'Erlauben Sie Cookies, auf diese Funktionalität zuzugreifen.',
privacyPolicyLabel: 'Datenschutzerklärung',
accept: 'Erlauben',
accepted: '"{purpose}" ist jetzt erlaubt.'
},
Expand Down
1 change: 1 addition & 0 deletions src/translations/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default {
contextual: {
title: '"{purpose}" is inactive',
description: 'Allow cookies to access this functionality.',
privacyPolicyLabel: 'privacy policy',
accept: 'Allow',
accepted: '"{purpose}" is now allowed.'
},
Expand Down
1 change: 1 addition & 0 deletions src/translations/es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default {
contextual: {
title: '"{purpose}" está inactivo',
description: 'Permitir que las cookies accedan a esta funcionalidad.',
privacyPolicyLabel: 'política de confidencialidad',
accept: 'Permitir',
accepted: '"{purpose}" ahora está permitido.'
},
Expand Down
1 change: 1 addition & 0 deletions src/translations/et.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default {
contextual: {
title: '"{purpose}" on passiivne',
description: 'Luba küpsistele sellele funktsioonile juurde pääseda.',
privacyPolicyLabel: 'privaatsustingimused',
accept: 'Luba',
accepted: '"{purpose}" on nüüd lubatud.'
},
Expand Down
1 change: 1 addition & 0 deletions src/translations/fi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default {
contextual: {
title: '"{purpose}" ei ole aktiivinen',
description: 'Salli evästeiden käyttää tätä toimintoa.',
privacyPolicyLabel: 'tietosuojasivultamme',
accept: 'Salli',
accepted: '"{purpose}" on nyt sallittu.'
},
Expand Down
1 change: 1 addition & 0 deletions src/translations/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default {
title: '"{purpose}" est désactivé',
description:
'Autorisez le dépôt de cookies pour accèder à cette fonctionnalité.',
privacyPolicyLabel: 'politique de confidentialité',
accept: 'Autoriser',
accepted: '"{purpose}" est maintenant autorisé.'
},
Expand Down
1 change: 1 addition & 0 deletions src/translations/hu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default {
title: '"{purpose}" inaktív',
description:
'Engedélyezze a cookie-k számára, hogy hozzáférjenek ehhez a funkcióhoz.',
privacyPolicyLabel: 'adatvédelmi irányelveinket',
accept: 'Engedélyezze',
accepted: 'A {purpose} mostantól engedélyezett.'
},
Expand Down
1 change: 1 addition & 0 deletions src/translations/it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default {
contextual: {
title: '"{purpose}" è inattivo',
description: 'Consenti ai cookie di accedere a questa funzionalità.',
privacyPolicyLabel: 'policy privacy',
accept: 'Permettere',
accepted: '"{purpose}" ora è consentito.'
},
Expand Down
1 change: 1 addition & 0 deletions src/translations/nb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default {
title: '"{purpose}" er inaktiv',
description:
'Tillat informasjonskapsler å få tilgang til denne funksjonaliteten.',
privacyPolicyLabel: 'personvernerklæring',
accept: 'Tillate',
accepted: '"{purpose}" er nå tillatt.'
},
Expand Down
1 change: 1 addition & 0 deletions src/translations/nl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default {
title: '"{purpose}" is inactief',
description:
'Sta cookies toe om toegang te krijgen tot deze functionaliteit.',
privacyPolicyLabel: 'privacybeleid',
accept: 'Toestaan',
accepted: '"{purpose}" is nu toegestaan.'
},
Expand Down
1 change: 1 addition & 0 deletions src/translations/oc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default {
contextual: {
title: '"{purpose}" és inactiu',
description: 'Autorizar los cookies a accedir a aquesta foncionalitat.',
privacyPolicyLabel: 'politica de confidencialitat',
accept: 'Permetre',
accepted: '"{purpose}" es ara autorizat.'
},
Expand Down
1 change: 1 addition & 0 deletions src/translations/ro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export default {
title: '"{purpose}" este inactiv',
description:
'Permiteți cookie-urilor să acceseze această funcționalitate.',
privacyPolicyLabel: 'politica privacy',
accept: 'Permite',
accepted: '"{purpose}" este acum permis.'
},
Expand Down
1 change: 1 addition & 0 deletions src/translations/sv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export default {
contextual: {
title: '"{purpose}" är inaktiv',
description: 'Tillåt cookies att få tillgång till denna funktionalitet.',
privacyPolicyLabel: 'Integritetspolicy',
accept: 'Tillåta',
accepted: '"{purpose}" är nu tillåtet.'
},
Expand Down
1 change: 1 addition & 0 deletions src/ui/components/ContextualNoticeContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ const ContextualNoticeContainer = ({
<ContextualNotice
purpose={purpose}
data={data}
privacyPolicyUrl={config.privacyPolicyUrl}
onAccept={() => {
manager.setConsent(purpose.id, true);
setIsBeingDisabled(true);
Expand Down
1 change: 1 addition & 0 deletions src/ui/components/types/ContextualNotice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export interface ContextualNoticeOptions extends Record<string, string> {
export interface ContextualNoticeProps<Data extends ContextualNoticeOptions> {
purpose: Purpose;
data: Data;
privacyPolicyUrl: string;
onAccept: () => void;
}

Expand Down
10 changes: 8 additions & 2 deletions src/ui/themes/standard/ContextualNotice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,20 @@ import {template} from '../../utils/template';
const ContextualNotice: ContextualNoticeComponent = ({
purpose,
data,
onAccept
onAccept,
privacyPolicyUrl
}) => {
const t = useTranslations();
const {titleLevel} = data;
const TitleTag: `h${ContextualNoticeOptions['titleLevel']}` | 'strong' =
titleLevel ? `h${titleLevel}` : 'strong';
const templateProps = {
purpose: purpose.title
purpose: purpose.title,
privacyPolicy: (
<a key="privacyPolicyUrl" href={privacyPolicyUrl}>
{t.contextual.privacyPolicyLabel}
</a>
)
};

return (
Expand Down
1 change: 1 addition & 0 deletions src/ui/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export interface ModalTranslations {
export interface ContextualNoticeTranslations {
title: string;
description: string;
privacyPolicyLabel: string;
accept: string;
acceptTitle?: string;
accepted: string;
Expand Down