Skip to content

Commit

Permalink
fix(pie-cookie-banner): DSW-2184 cookie banner locale da (#1583)
Browse files Browse the repository at this point in the history
* fix(pie-cookie-banner): DSW-2184 fixes da mapping in translation file and fr translation change

* fix(pie-cookie-banner): DSW-2184 added link translation fix

* fix(pie-cookie-banner): DSW-2184 adds en-fr and corrects translations in fr-fr
  • Loading branch information
kevinrodrigues authored Jul 10, 2024
1 parent ff65968 commit 58636fc
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/fluffy-numbers-deny.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@justeattakeaway/pie-cookie-banner": minor
---

[Added] Mapping to correct DA translation instance while keeping the older one, fixed fr translation at the same time
40 changes: 40 additions & 0 deletions packages/components/pie-cookie-banner/locales/en-fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"banner": {
"title": "Cookies",
"description": "We use our own and third party cookies and other tech to enhance and personalise your user experience, optimize analytics, and show ads with third parties (read our <linkStatement>Statement</linkStatement>). Necessary cookies are always set. Select <linkNecessaryOnly>Continue without accepting</linkNecessaryOnly> to accept only essential trackers required for an optimal use of our platform. Click <linkManagePreferences>Manage preferences</linkManagePreferences> to share your preferences or <linkAcceptAll>Accept all</linkAcceptAll>.",
"cta": {
"managePreferences": "Manage preferences",
"necessaryOnly": "Continue without accepting",
"acceptAll": "Accept all"
}
},
"preferencesManagement": {
"title": "Manage your preferences",
"description": "You can find all the information in the <linkCookieStatement>Cookie Statement</linkCookieStatement> and <linkCookieTechList>Cookie technology list</linkCookieTechList>.",
"all": {
"title": "Turn all on"
},
"necessary": {
"title": "Necessary",
"description": "These cookies are necessary to ensure that the website and its features function properly. Services you have asked for cannot be provided without these cookies."
},
"functional": {
"title": "Functional",
"description": "These cookies allow the website to remember the choices you make to give you better functionality and personal features."
},
"analytical": {
"title": "Analytical",
"description": "These analytical cookies, including statistics, are used to understand how visitors interact with the website and we can measure and improve the performance of our website."
},
"personalized": {
"title": "Personalised (targeting and advertising)",
"description": "These marketing cookies are used to tailor the delivery of information to you based upon your interest and to measure the effectiveness of such advertisements, both on our website and our advertising partners' websites."
},
"cta": {
"save": {
"label": "Save",
"ariaLabel": ""
}
}
}
}
4 changes: 2 additions & 2 deletions packages/components/pie-cookie-banner/locales/fr-fr.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"banner": {
"title": "Cookies",
"description": "Nous utilisons nos propres cookies et ceux de tiers, ainsi que d’autres technologies, afin d’améliorer et de personnaliser votre expérience d’utilisateur, d’optimiser nos analyses et d’afficher des publicités en partenariat avec des tiers (veuillez consulter notre <linkStatement>déclaration</linkStatement>). Nous installons toujours les cookies essentiels. Cliquez sur <linkNecessaryOnly>Cookies essentiels uniquement</linkNecessaryOnly> pour continuer en acceptant uniquement les cookies indispensables. Cliquez sur <linkManagePreferences>Gérer les préférences</linkManagePreferences> pour choisir vous-même vos cookies ou sur <linkAcceptAll>Tout accepter</linkAcceptAll>.",
"description": "Nous utilisons nos propres cookies et ceux de tiers, ainsi que d’autres technologies, afin d’améliorer et de personnaliser votre expérience d’utilisateur, d’optimiser nos analyses et d’afficher des publicités en partenariat avec des tiers (veuillez consulter notre <linkStatement>déclaration</linkStatement>). Nous installons toujours les cookies essentiels. Sélectionnez <linkNecessaryOnly>Continuer sans accepter</linkNecessaryOnly> pour accepter seulement les traqueurs nécessaires au fonctionnement optimal de notre plateforme. Cliquez sur <linkManagePreferences>Gérer les préférences</linkManagePreferences> pour choisir vous-même vos cookies ou sur <linkAcceptAll>Tout accepter</linkAcceptAll>.",
"cta": {
"managePreferences": "Gérer les préférences",
"necessaryOnly": " Cookies essentiels uniquement",
"necessaryOnly": "Continuer sans accepter",
"acceptAll": "Tout accepter"
}
},
Expand Down
7 changes: 5 additions & 2 deletions packages/components/pie-cookie-banner/locales/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import bgBG from './bg-bg.json';
import deDE from './de-de.json';
import dkDK from './dk-dk.json';
import daDK from './da-dk.json';
import enGB from './en-gb.json';
import enFR from './en-fr.json';
import esES from './es-es.json';
import frFR from './fr-fr.json';
import heIL from './he-il.json';
Expand All @@ -14,7 +15,9 @@ import skSK from './sk-sk.json';
export default {
bgBG,
deDE,
dkDK,
daDK,
dkDK: daDK,
enFR,
enGB,
esES,
frFR,
Expand Down

0 comments on commit 58636fc

Please sign in to comment.