-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pie-cookie-banner): WCP-000 refactorerd the locale fallback logic (
#2043) * feat(pie-cookie-banner): WCP-000 refactorerd the locale fallback logic * feat(pie-cookie-banner): WCP-000 typo * feat(pie-cookie-banner): WCP-000 more tests plus removed console.log * feat(pie-cookie-banner): WCP-000 simplified logic to cater for wider audience * feat(pie-cookie-banner): WCP-000 updated documentation * feat(pie-cookie-banner): WCP-000 converted locales json files to js files * Update .changeset/cyan-candles-boil.md Co-authored-by: Jamie Maguire <[email protected]> * feat(pie-cookie-banner): WCP-000 rebase conflict * Update .changeset/cyan-candles-boil.md Co-authored-by: Raouf <[email protected]> * Update apps/pie-docs/src/patterns/cookie-banner/code/code.md Co-authored-by: Ben Siggery <[email protected]> --------- Co-authored-by: Billy Oliver <[email protected]> Co-authored-by: Jamie Maguire <[email protected]> Co-authored-by: Ben Siggery <[email protected]> Co-authored-by: Raouf <[email protected]>
- Loading branch information
1 parent
f721dfb
commit 2dd4d53
Showing
39 changed files
with
856 additions
and
686 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@justeattakeaway/pie-cookie-banner': minor | ||
'pie-docs': minor | ||
--- | ||
|
||
[Updated] - refactored the locale fallback logic so we can cater for more combinations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"pie-assistive-text": "beta", | ||
"pie-button": "beta", | ||
"pie-card": "beta", | ||
"pie-checkbox": "beta", | ||
"pie-checkbox-group": "beta", | ||
"pie-chip": "beta", | ||
"pie-cookie-banner": "beta", | ||
"pie-divider": "beta", | ||
"pie-form-label": "alpha", | ||
"pie-icon-button": "beta", | ||
"pie-link": "beta", | ||
"pie-lottie-player": "alpha", | ||
"pie-modal": "beta", | ||
"pie-notification": "beta", | ||
"pie-radio": "alpha", | ||
"pie-radio-group": "alpha", | ||
"pie-spinner": "beta", | ||
"pie-switch": "alpha", | ||
"pie-tag": "beta", | ||
"pie-text-input": "beta", | ||
"pie-textarea": "alpha", | ||
"pie-toast": "alpha" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"pie-assistive-text": "beta", | ||
"pie-button": "stable", | ||
"pie-card": "beta", | ||
"pie-checkbox": "beta", | ||
"pie-checkbox-group": "beta", | ||
"pie-chip": "beta", | ||
"pie-cookie-banner": "stable", | ||
"pie-divider": "stable", | ||
"pie-form-label": "alpha", | ||
"pie-icon-button": "stable", | ||
"pie-link": "stable", | ||
"pie-lottie-player": "alpha", | ||
"pie-modal": "stable", | ||
"pie-notification": "beta", | ||
"pie-radio": "alpha", | ||
"pie-radio-group": "alpha", | ||
"pie-spinner": "stable", | ||
"pie-switch": "stable", | ||
"pie-tag": "beta", | ||
"pie-text-input": "beta", | ||
"pie-textarea": "alpha", | ||
"pie-toast": "alpha" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"pie-assistive-text": "beta", | ||
"pie-button": "stable", | ||
"pie-card": "beta", | ||
"pie-checkbox": "beta", | ||
"pie-checkbox-group": "beta", | ||
"pie-chip": "beta", | ||
"pie-cookie-banner": "stable", | ||
"pie-divider": "stable", | ||
"pie-form-label": "alpha", | ||
"pie-icon-button": "stable", | ||
"pie-link": "stable", | ||
"pie-lottie-player": "alpha", | ||
"pie-modal": "stable", | ||
"pie-notification": "beta", | ||
"pie-radio": "alpha", | ||
"pie-radio-group": "alpha", | ||
"pie-spinner": "stable", | ||
"pie-switch": "stable", | ||
"pie-tag": "beta", | ||
"pie-text-input": "beta", | ||
"pie-textarea": "alpha", | ||
"pie-toast": "alpha" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
export default { | ||
banner: { | ||
title: 'Бисквитки', | ||
description: 'Използваме наши собствени бисквитки и бисквитки на трети страни и друга технология, за да усъвършенстваме и персонализираме изживяването ти като потребител, за да оптимизираме статистиката и да показваме реклами на трети страни (прочети нашата <linkStatement>декларация</linkStatement>). Винаги настройваме необходимите бисквитки. Кликни върху <linkNecessaryOnly>Само необходимите</linkNecessaryOnly>, за да продължиш, без да приемаш други. Кликни върху <linkManagePreferences>Управление на предпочитанията</linkManagePreferences>, за да споделиш своите предпочитания или <linkAcceptAll>приеми всички</linkAcceptAll>.', | ||
cta: { | ||
managePreferences: 'Управление на предпочитанията', | ||
necessaryOnly: 'Само необходимите', | ||
acceptAll: 'Приемане на всички', | ||
}, | ||
}, | ||
preferencesManagement: { | ||
title: 'Управление на предпочитанията', | ||
description: 'Можеш да намериш цялата информация в <linkCookieStatement>Декларацията за бисквитки</linkCookieStatement> и Списъка с <linkCookieTechList>технологии за бисквитки</linkCookieTechList>.', | ||
all: { | ||
title: 'Включи всички', | ||
}, | ||
necessary: { | ||
title: 'Необходими', | ||
description: 'Тези бисквитки са необходими, за да се гарантира правилното функциониране на уебсайта и неговите свойства. Заявените от теб услуги не могат да се предоставят без тези бисквитки.', | ||
}, | ||
functional: { | ||
title: 'Функционални', | ||
description: 'Тези бисквитки позволяват на уебсайта да запомни направените от теб избори за осигуряване на по-добра функционалност и персонализирани функции.', | ||
}, | ||
analytical: { | ||
title: 'Аналитични', | ||
description: 'Тези аналитични бисквитки, включително за статистически данни, се използват за разбиране начина, по който посетителите взаимодействат с уебсайта, за да можем да измерваме и подобряваме ефективността на нашия уебсайт.', | ||
}, | ||
personalized: { | ||
title: 'Персонализирани (целеви и рекламни)', | ||
description: 'Тези маркетингови бисквитки се използват за персонализиране предоставянето на информация на теб въз основа на твоя интерес и за измерване на ефективността на такива реклами на нашия уебсайт и на уебсайтовете на рекламните ни партньори.', | ||
}, | ||
cta: { | ||
save: { | ||
label: 'Запази', | ||
ariaLabel: '', | ||
}, | ||
}, | ||
}, | ||
}; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.