diff --git a/src/LmcCookieConsentManager.ts b/src/LmcCookieConsentManager.ts index aa3ff04e..f3cb6caa 100644 --- a/src/LmcCookieConsentManager.ts +++ b/src/LmcCookieConsentManager.ts @@ -108,7 +108,7 @@ const LmcCookieConsentManager: CookieConsentManager = (serviceName, args) => { settings_modal: { layout: VanillaCookieConsent.GuiSettingsLayout.BOX, transition: VanillaCookieConsent.Transition.SLIDE, - } + }, }, onAccept: (cookie: VanillaCookieConsent.Cookie) => { const userPreferences = cookieConsent.getUserPreferences(); diff --git a/src/languages/__tests__/__snapshots__/langConfig.test.ts.snap b/src/languages/__tests__/__snapshots__/langConfig.test.ts.snap index 7f0b98c5..90d72f10 100644 --- a/src/languages/__tests__/__snapshots__/langConfig.test.ts.snap +++ b/src/languages/__tests__/__snapshots__/langConfig.test.ts.snap @@ -88,6 +88,7 @@ exports[`config de should return localization object 1`] = ` Object { "consent_modal": Object { "description": "Indem Sie auf „Alles akzeptieren“ klicken, stimmen Sie der Verwendung von Cookies und anderen Identifikatoren auf Ihrem Gerät durch test1, test2 und test3 zu. Die Verwendung dieser Cookies und anderer Identifikatoren erleichtert die Navigation auf der Website, die Anzeige personalisierter Inhalte, gezieltes Marketing und die Analyse der Nutzung unserer Produkte und Dienstleistungen. + TODO show settings. Weitere Informationen finden Sie unter Verwendung von Cookies.", "primary_btn": Object { "role": "accept_all", @@ -100,8 +101,14 @@ Object { "title": "Diese Website verwendet Cookies", }, "settings_modal": Object { + "accept_all_btn": "Alles akzeptieren", "blocks": Array [ Object { + "description": "Lorem ipsum", + }, + Object { + "description": "Lorem ipsum", + "title": "NECESSARY TODO", "toggle": Object { "enabled": true, "readonly": true, @@ -109,27 +116,35 @@ Object { }, }, Object { + "description": "Lorem ipsum", + "title": "ANALYTICS TODO", "toggle": Object { "enabled": false, "readonly": false, - "value": "ad", + "value": "analytics", }, }, Object { + "description": "Lorem ipsum", + "title": "FUNCTIONALITY TODO", "toggle": Object { "enabled": false, "readonly": false, - "value": "analytics", + "value": "functionality", }, }, Object { + "description": "Lorem ipsum", + "title": "AD TODO", "toggle": Object { "enabled": false, "readonly": false, - "value": "functionality", + "value": "ad", }, }, Object { + "description": "Lorem ipsum", + "title": "PERSONALIZATION TODO", "toggle": Object { "enabled": false, "readonly": false, @@ -137,6 +152,9 @@ Object { }, }, ], + "reject_all_btn": "Das Notwendigste akzeptieren", + "save_settings_btn": "save_settings_btn TODO", + "title": "title TODO", }, } `; @@ -146,6 +164,7 @@ Object { "consent_modal": Object { "description": "By better understanding what you're interested in, we'll show you more relevant content. By clicking the \\"Accept all\\" button, you give test1, test2 and test3 your consent to use cookies for personalisation, analytics and targeted marketing. + TODO show settings. What are cookies and how do we use them?", "primary_btn": Object { "role": "accept_all", @@ -158,8 +177,14 @@ Object { "title": "Cookies make our site even better", }, "settings_modal": Object { + "accept_all_btn": "Accept all", "blocks": Array [ Object { + "description": "Lorem ipsum", + }, + Object { + "description": "Lorem ipsum", + "title": "NECESSARY TODO", "toggle": Object { "enabled": true, "readonly": true, @@ -167,27 +192,35 @@ Object { }, }, Object { + "description": "Lorem ipsum", + "title": "ANALYTICS TODO", "toggle": Object { "enabled": false, "readonly": false, - "value": "ad", + "value": "analytics", }, }, Object { + "description": "Lorem ipsum", + "title": "FUNCTIONALITY TODO", "toggle": Object { "enabled": false, "readonly": false, - "value": "analytics", + "value": "functionality", }, }, Object { + "description": "Lorem ipsum", + "title": "AD TODO", "toggle": Object { "enabled": false, "readonly": false, - "value": "functionality", + "value": "ad", }, }, Object { + "description": "Lorem ipsum", + "title": "PERSONALIZATION TODO", "toggle": Object { "enabled": false, "readonly": false, @@ -195,6 +228,9 @@ Object { }, }, ], + "reject_all_btn": "Accept necessary", + "save_settings_btn": "save_settings_btn TODO", + "title": "title TODO", }, } `; @@ -203,6 +239,7 @@ exports[`config hu should return localization object 1`] = ` Object { "consent_modal": Object { "description": "A „Mindent elfogadok” gombra kattintva a hozzájárulását adja ahhoz, hogy az test1, test2 és test3 süti fájlokat és egyéb azonosítókat használjon az Ön eszközén. E süti fájlok és egyéb azonosítók használata megkönnyíti a weboldalon belüli navigációt, a személyre szabott tartalom megjelenítését, a célzott marketinget, valamint termékeink és szolgáltatásaink használatának elemzését. + TODO show settings. Bővebb információkat a Sütihasználat oldalon talál.", "primary_btn": Object { "role": "accept_all", @@ -215,8 +252,14 @@ Object { "title": "Az oldalak süti fájlokat használnak", }, "settings_modal": Object { + "accept_all_btn": "Minden elfogadása", "blocks": Array [ Object { + "description": "Lorem ipsum", + }, + Object { + "description": "Lorem ipsum", + "title": "NECESSARY TODO", "toggle": Object { "enabled": true, "readonly": true, @@ -224,27 +267,35 @@ Object { }, }, Object { + "description": "Lorem ipsum", + "title": "ANALYTICS TODO", "toggle": Object { "enabled": false, "readonly": false, - "value": "ad", + "value": "analytics", }, }, Object { + "description": "Lorem ipsum", + "title": "FUNCTIONALITY TODO", "toggle": Object { "enabled": false, "readonly": false, - "value": "analytics", + "value": "functionality", }, }, Object { + "description": "Lorem ipsum", + "title": "AD TODO", "toggle": Object { "enabled": false, "readonly": false, - "value": "functionality", + "value": "ad", }, }, Object { + "description": "Lorem ipsum", + "title": "PERSONALIZATION TODO", "toggle": Object { "enabled": false, "readonly": false, @@ -252,6 +303,9 @@ Object { }, }, ], + "reject_all_btn": "A legszükségesebbek elfogadása", + "save_settings_btn": "save_settings_btn TODO", + "title": "title TODO", }, } `; @@ -262,6 +316,7 @@ Object { "description": "Gdy lepiej zrozumiemy, co Cię interesuje, pokażemy dokładniejsze treści dopasowane do Twoich preferencji. Kliknij w przycisk „Akceptuj wszystkie”, aby wyrazić zgodę na wykorzystanie plików cookie przez firmy test1, test2 i test3 do personalizacji, analizy i ukierunkowanego marketingu. + TODO show settings. Co to są pliki cookie i jak je wykorzystujemy?", "primary_btn": Object { "role": "accept_all", @@ -274,8 +329,14 @@ Object { "title": "Dzięki plikom Cookies nasza strona będzie jeszcze lepsza", }, "settings_modal": Object { + "accept_all_btn": "Akceptuj wszystkie", "blocks": Array [ Object { + "description": "Lorem ipsum", + }, + Object { + "description": "Lorem ipsum", + "title": "NECESSARY TODO", "toggle": Object { "enabled": true, "readonly": true, @@ -283,27 +344,35 @@ Object { }, }, Object { + "description": "Lorem ipsum", + "title": "ANALYTICS TODO", "toggle": Object { "enabled": false, "readonly": false, - "value": "ad", + "value": "analytics", }, }, Object { + "description": "Lorem ipsum", + "title": "FUNCTIONALITY TODO", "toggle": Object { "enabled": false, "readonly": false, - "value": "analytics", + "value": "functionality", }, }, Object { + "description": "Lorem ipsum", + "title": "AD TODO", "toggle": Object { "enabled": false, "readonly": false, - "value": "functionality", + "value": "ad", }, }, Object { + "description": "Lorem ipsum", + "title": "PERSONALIZATION TODO", "toggle": Object { "enabled": false, "readonly": false, @@ -311,6 +380,9 @@ Object { }, }, ], + "reject_all_btn": "Akceptuj niezbędne", + "save_settings_btn": "save_settings_btn TODO", + "title": "title TODO", }, } `; @@ -319,6 +391,7 @@ exports[`config ru should return localization object 1`] = ` Object { "consent_modal": Object { "description": "Нажав «Принять все», Вы даете свое согласие компаниям test1, test2 и test3 на использование файлов cookie и других идентификаторов на Вашем устройстве. Использование файлов cookie и других идентификаторов облегчит навигацию по сайту, отображения персонализированного контента, целевой маркетинг, анализ использования наших продуктов и услуг. + TODO show settings. Для получения дополнительной информации см. раздел использование файлов cookie.", "primary_btn": Object { "role": "accept_all", @@ -331,8 +404,14 @@ Object { "title": "Этот сайт использует файлы cookie", }, "settings_modal": Object { + "accept_all_btn": "Принять все", "blocks": Array [ Object { + "description": "Lorem ipsum", + }, + Object { + "description": "Lorem ipsum", + "title": "NECESSARY TODO", "toggle": Object { "enabled": true, "readonly": true, @@ -340,27 +419,35 @@ Object { }, }, Object { + "description": "Lorem ipsum", + "title": "ANALYTICS TODO", "toggle": Object { "enabled": false, "readonly": false, - "value": "ad", + "value": "analytics", }, }, Object { + "description": "Lorem ipsum", + "title": "FUNCTIONALITY TODO", "toggle": Object { "enabled": false, "readonly": false, - "value": "analytics", + "value": "functionality", }, }, Object { + "description": "Lorem ipsum", + "title": "AD TODO", "toggle": Object { "enabled": false, "readonly": false, - "value": "functionality", + "value": "ad", }, }, Object { + "description": "Lorem ipsum", + "title": "PERSONALIZATION TODO", "toggle": Object { "enabled": false, "readonly": false, @@ -368,6 +455,9 @@ Object { }, }, ], + "reject_all_btn": "Принятие необходимо", + "save_settings_btn": "save_settings_btn TODO", + "title": "title TODO", }, } `; @@ -377,6 +467,7 @@ Object { "consent_modal": Object { "description": "Presnejší obsah na mieru vám budeme zobrazovať, keď lepšie pochopíme, čo vás zaujíma. Kliknutím na tlačidlo „Prijať všetky“, čím dáte spoločnostiam test1, test2 a test3 súhlas s využívaním súborov Cookies za účelom personalizácie, analýzy a cieleného marketingu. + TODO show settings. Čo sú to Cookies a ako ich používame?", "primary_btn": Object { "role": "accept_all", @@ -389,8 +480,14 @@ Object { "title": "Vďaka Cookies budú naše stránky ešte lepšie", }, "settings_modal": Object { + "accept_all_btn": "Prijať všetky", "blocks": Array [ Object { + "description": "Lorem ipsum", + }, + Object { + "description": "Lorem ipsum", + "title": "NECESSARY TODO", "toggle": Object { "enabled": true, "readonly": true, @@ -398,27 +495,35 @@ Object { }, }, Object { + "description": "Lorem ipsum", + "title": "ANALYTICS TODO", "toggle": Object { "enabled": false, "readonly": false, - "value": "ad", + "value": "analytics", }, }, Object { + "description": "Lorem ipsum", + "title": "FUNCTIONALITY TODO", "toggle": Object { "enabled": false, "readonly": false, - "value": "analytics", + "value": "functionality", }, }, Object { + "description": "Lorem ipsum", + "title": "AD TODO", "toggle": Object { "enabled": false, "readonly": false, - "value": "functionality", + "value": "ad", }, }, Object { + "description": "Lorem ipsum", + "title": "PERSONALIZATION TODO", "toggle": Object { "enabled": false, "readonly": false, @@ -426,6 +531,9 @@ Object { }, }, ], + "reject_all_btn": "Prijať nevyhnutné", + "save_settings_btn": "save_settings_btn TODO", + "title": "title TODO", }, } `; @@ -434,6 +542,7 @@ exports[`config uk should return localization object 1`] = ` Object { "consent_modal": Object { "description": "Натиснувши «Прийняти все», Ви даєте свою згоду компаніям test1, test2 i test3 на використання файлів cookie та інших ідентифікаторів на Вашому пристрої. Використання цих файлів cookie та інших ідентифікаторів полегшить навігацію по сайту, відображення персоналізованого контенту, цільовий маркетинг, аналіз використання наших продуктів і послуг. + TODO show settings. Для отримання додаткової інформації див. розділ Використання файлів cookie.", "primary_btn": Object { "role": "accept_all", @@ -446,8 +555,14 @@ Object { "title": "Цей сайт використовує файли cookie", }, "settings_modal": Object { + "accept_all_btn": "Прийняти все", "blocks": Array [ Object { + "description": "Lorem ipsum", + }, + Object { + "description": "Lorem ipsum", + "title": "NECESSARY TODO", "toggle": Object { "enabled": true, "readonly": true, @@ -455,27 +570,35 @@ Object { }, }, Object { + "description": "Lorem ipsum", + "title": "ANALYTICS TODO", "toggle": Object { "enabled": false, "readonly": false, - "value": "ad", + "value": "analytics", }, }, Object { + "description": "Lorem ipsum", + "title": "FUNCTIONALITY TODO", "toggle": Object { "enabled": false, "readonly": false, - "value": "analytics", + "value": "functionality", }, }, Object { + "description": "Lorem ipsum", + "title": "AD TODO", "toggle": Object { "enabled": false, "readonly": false, - "value": "functionality", + "value": "ad", }, }, Object { + "description": "Lorem ipsum", + "title": "PERSONALIZATION TODO", "toggle": Object { "enabled": false, "readonly": false, @@ -483,6 +606,9 @@ Object { }, }, ], + "reject_all_btn": "Прийняття необхідно", + "save_settings_btn": "save_settings_btn TODO", + "title": "title TODO", }, } `; diff --git a/src/languages/de.ts b/src/languages/de.ts index 2791ad8b..91ba3d9f 100644 --- a/src/languages/de.ts +++ b/src/languages/de.ts @@ -21,6 +21,7 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu lang.companyNames, extra.and, )} zu. Die Verwendung dieser Cookies und anderer Identifikatoren erleichtert die Navigation auf der Website, die Anzeige personalisierter Inhalte, gezieltes Marketing und die Analyse der Nutzung unserer Produkte und Dienstleistungen. + TODO show settings. Weitere Informationen finden Sie unter Verwendung von Cookies.`, primary_btn: { text: 'Alles akzeptieren', @@ -32,8 +33,17 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu }, }, settings_modal: { + title: 'title TODO', + accept_all_btn: 'Alles akzeptieren', + reject_all_btn: 'Das Notwendigste akzeptieren', + save_settings_btn: 'save_settings_btn TODO', blocks: [ { + description: `Lorem ipsum`, + }, + { + title: 'NECESSARY TODO', + description: `Lorem ipsum`, toggle: { value: CookieConsentCategory.NECESSARY, enabled: true, @@ -41,27 +51,35 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu }, }, { + title: 'ANALYTICS TODO', + description: `Lorem ipsum`, toggle: { - value: CookieConsentCategory.AD, + value: CookieConsentCategory.ANALYTICS, enabled: false, readonly: false, }, }, { + title: 'FUNCTIONALITY TODO', + description: `Lorem ipsum`, toggle: { - value: CookieConsentCategory.ANALYTICS, + value: CookieConsentCategory.FUNCTIONALITY, enabled: false, readonly: false, }, }, { + title: 'AD TODO', + description: `Lorem ipsum`, toggle: { - value: CookieConsentCategory.FUNCTIONALITY, + value: CookieConsentCategory.AD, enabled: false, readonly: false, }, }, { + title: 'PERSONALIZATION TODO', + description: `Lorem ipsum`, toggle: { value: CookieConsentCategory.PERSONALIZATION, enabled: false, diff --git a/src/languages/en.ts b/src/languages/en.ts index f00df5d7..1514eb56 100644 --- a/src/languages/en.ts +++ b/src/languages/en.ts @@ -21,6 +21,7 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu lang.companyNames, extra.and, )} your consent to use cookies for personalisation, analytics and targeted marketing. + TODO show settings. What are cookies and how do we use them?`, primary_btn: { text: 'Accept all', @@ -32,8 +33,17 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu }, }, settings_modal: { + title: 'title TODO', + accept_all_btn: 'Accept all', + reject_all_btn: 'Accept necessary', + save_settings_btn: 'save_settings_btn TODO', blocks: [ { + description: `Lorem ipsum`, + }, + { + title: 'NECESSARY TODO', + description: `Lorem ipsum`, toggle: { value: CookieConsentCategory.NECESSARY, enabled: true, @@ -41,27 +51,35 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu }, }, { + title: 'ANALYTICS TODO', + description: `Lorem ipsum`, toggle: { - value: CookieConsentCategory.AD, + value: CookieConsentCategory.ANALYTICS, enabled: false, readonly: false, }, }, { + title: 'FUNCTIONALITY TODO', + description: `Lorem ipsum`, toggle: { - value: CookieConsentCategory.ANALYTICS, + value: CookieConsentCategory.FUNCTIONALITY, enabled: false, readonly: false, }, }, { + title: 'AD TODO', + description: `Lorem ipsum`, toggle: { - value: CookieConsentCategory.FUNCTIONALITY, + value: CookieConsentCategory.AD, enabled: false, readonly: false, }, }, { + title: 'PERSONALIZATION TODO', + description: `Lorem ipsum`, toggle: { value: CookieConsentCategory.PERSONALIZATION, enabled: false, diff --git a/src/languages/hu.ts b/src/languages/hu.ts index 6ed03697..9e51f0b9 100644 --- a/src/languages/hu.ts +++ b/src/languages/hu.ts @@ -21,6 +21,7 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu lang.companyNames, extra.and, )} süti fájlokat és egyéb azonosítókat használjon az Ön eszközén. E süti fájlok és egyéb azonosítók használata megkönnyíti a weboldalon belüli navigációt, a személyre szabott tartalom megjelenítését, a célzott marketinget, valamint termékeink és szolgáltatásaink használatának elemzését. + TODO show settings. Bővebb információkat a Sütihasználat oldalon talál.`, primary_btn: { text: 'Minden elfogadása', @@ -32,8 +33,17 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu }, }, settings_modal: { + title: 'title TODO', + accept_all_btn: 'Minden elfogadása', + reject_all_btn: 'A legszükségesebbek elfogadása', + save_settings_btn: 'save_settings_btn TODO', blocks: [ { + description: `Lorem ipsum`, + }, + { + title: 'NECESSARY TODO', + description: `Lorem ipsum`, toggle: { value: CookieConsentCategory.NECESSARY, enabled: true, @@ -41,27 +51,35 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu }, }, { + title: 'ANALYTICS TODO', + description: `Lorem ipsum`, toggle: { - value: CookieConsentCategory.AD, + value: CookieConsentCategory.ANALYTICS, enabled: false, readonly: false, }, }, { + title: 'FUNCTIONALITY TODO', + description: `Lorem ipsum`, toggle: { - value: CookieConsentCategory.ANALYTICS, + value: CookieConsentCategory.FUNCTIONALITY, enabled: false, readonly: false, }, }, { + title: 'AD TODO', + description: `Lorem ipsum`, toggle: { - value: CookieConsentCategory.FUNCTIONALITY, + value: CookieConsentCategory.AD, enabled: false, readonly: false, }, }, { + title: 'PERSONALIZATION TODO', + description: `Lorem ipsum`, toggle: { value: CookieConsentCategory.PERSONALIZATION, enabled: false, diff --git a/src/languages/pl.ts b/src/languages/pl.ts index 1b48febd..5e831cfa 100644 --- a/src/languages/pl.ts +++ b/src/languages/pl.ts @@ -25,6 +25,7 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu lang.companyNames, extra.and, )} do personalizacji, analizy i ukierunkowanego marketingu. + TODO show settings. Co to są pliki cookie i jak je wykorzystujemy?`, primary_btn: { text: 'Akceptuj wszystkie', @@ -36,8 +37,17 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu }, }, settings_modal: { + title: 'title TODO', + accept_all_btn: 'Akceptuj wszystkie', + reject_all_btn: 'Akceptuj niezbędne', + save_settings_btn: 'save_settings_btn TODO', blocks: [ { + description: `Lorem ipsum`, + }, + { + title: 'NECESSARY TODO', + description: `Lorem ipsum`, toggle: { value: CookieConsentCategory.NECESSARY, enabled: true, @@ -45,27 +55,35 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu }, }, { + title: 'ANALYTICS TODO', + description: `Lorem ipsum`, toggle: { - value: CookieConsentCategory.AD, + value: CookieConsentCategory.ANALYTICS, enabled: false, readonly: false, }, }, { + title: 'FUNCTIONALITY TODO', + description: `Lorem ipsum`, toggle: { - value: CookieConsentCategory.ANALYTICS, + value: CookieConsentCategory.FUNCTIONALITY, enabled: false, readonly: false, }, }, { + title: 'AD TODO', + description: `Lorem ipsum`, toggle: { - value: CookieConsentCategory.FUNCTIONALITY, + value: CookieConsentCategory.AD, enabled: false, readonly: false, }, }, { + title: 'PERSONALIZATION TODO', + description: `Lorem ipsum`, toggle: { value: CookieConsentCategory.PERSONALIZATION, enabled: false, diff --git a/src/languages/ru.ts b/src/languages/ru.ts index 74fb3984..1b21d14d 100644 --- a/src/languages/ru.ts +++ b/src/languages/ru.ts @@ -27,6 +27,7 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu lang.companyNames, lang.and, )} на использование файлов cookie и других идентификаторов на Вашем устройстве. Использование файлов cookie и других идентификаторов облегчит навигацию по сайту, отображения персонализированного контента, целевой маркетинг, анализ использования наших продуктов и услуг. + TODO show settings. Для получения дополнительной информации см. раздел использование файлов cookie.`, primary_btn: { text: 'Принять все', @@ -38,8 +39,17 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu }, }, settings_modal: { + title: 'title TODO', + accept_all_btn: 'Принять все', + reject_all_btn: 'Принятие необходимо', + save_settings_btn: 'save_settings_btn TODO', blocks: [ { + description: `Lorem ipsum`, + }, + { + title: 'NECESSARY TODO', + description: `Lorem ipsum`, toggle: { value: CookieConsentCategory.NECESSARY, enabled: true, @@ -47,27 +57,35 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu }, }, { + title: 'ANALYTICS TODO', + description: `Lorem ipsum`, toggle: { - value: CookieConsentCategory.AD, + value: CookieConsentCategory.ANALYTICS, enabled: false, readonly: false, }, }, { + title: 'FUNCTIONALITY TODO', + description: `Lorem ipsum`, toggle: { - value: CookieConsentCategory.ANALYTICS, + value: CookieConsentCategory.FUNCTIONALITY, enabled: false, readonly: false, }, }, { + title: 'AD TODO', + description: `Lorem ipsum`, toggle: { - value: CookieConsentCategory.FUNCTIONALITY, + value: CookieConsentCategory.AD, enabled: false, readonly: false, }, }, { + title: 'PERSONALIZATION TODO', + description: `Lorem ipsum`, toggle: { value: CookieConsentCategory.PERSONALIZATION, enabled: false, diff --git a/src/languages/sk.ts b/src/languages/sk.ts index 394cbab6..13974308 100644 --- a/src/languages/sk.ts +++ b/src/languages/sk.ts @@ -28,6 +28,7 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu lang.companyNames, lang.and, )} súhlas s využívaním súborov Cookies za účelom personalizácie, analýzy a cieleného marketingu. + TODO show settings. Čo sú to Cookies a ako ich používame?`, primary_btn: { text: 'Prijať všetky', @@ -39,8 +40,17 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu }, }, settings_modal: { + title: 'title TODO', + accept_all_btn: 'Prijať všetky', + reject_all_btn: 'Prijať nevyhnutné', + save_settings_btn: 'save_settings_btn TODO', blocks: [ { + description: `Lorem ipsum`, + }, + { + title: 'NECESSARY TODO', + description: `Lorem ipsum`, toggle: { value: CookieConsentCategory.NECESSARY, enabled: true, @@ -48,27 +58,35 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu }, }, { + title: 'ANALYTICS TODO', + description: `Lorem ipsum`, toggle: { - value: CookieConsentCategory.AD, + value: CookieConsentCategory.ANALYTICS, enabled: false, readonly: false, }, }, { + title: 'FUNCTIONALITY TODO', + description: `Lorem ipsum`, toggle: { - value: CookieConsentCategory.ANALYTICS, + value: CookieConsentCategory.FUNCTIONALITY, enabled: false, readonly: false, }, }, { + title: 'AD TODO', + description: `Lorem ipsum`, toggle: { - value: CookieConsentCategory.FUNCTIONALITY, + value: CookieConsentCategory.AD, enabled: false, readonly: false, }, }, { + title: 'PERSONALIZATION TODO', + description: `Lorem ipsum`, toggle: { value: CookieConsentCategory.PERSONALIZATION, enabled: false, diff --git a/src/languages/uk.ts b/src/languages/uk.ts index 20e3d2fb..d2384cc6 100644 --- a/src/languages/uk.ts +++ b/src/languages/uk.ts @@ -27,6 +27,7 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu lang.companyNames, lang.and, )} на використання файлів cookie та інших ідентифікаторів на Вашому пристрої. Використання цих файлів cookie та інших ідентифікаторів полегшить навігацію по сайту, відображення персоналізованого контенту, цільовий маркетинг, аналіз використання наших продуктів і послуг. + TODO show settings. Для отримання додаткової інформації див. розділ Використання файлів cookie.`, primary_btn: { text: 'Прийняти все', @@ -38,8 +39,17 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu }, }, settings_modal: { + title: 'title TODO', + accept_all_btn: 'Прийняти все', + reject_all_btn: 'Прийняття необхідно', + save_settings_btn: 'save_settings_btn TODO', blocks: [ { + description: `Lorem ipsum`, + }, + { + title: 'NECESSARY TODO', + description: `Lorem ipsum`, toggle: { value: CookieConsentCategory.NECESSARY, enabled: true, @@ -47,27 +57,35 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu }, }, { + title: 'ANALYTICS TODO', + description: `Lorem ipsum`, toggle: { - value: CookieConsentCategory.AD, + value: CookieConsentCategory.ANALYTICS, enabled: false, readonly: false, }, }, { + title: 'FUNCTIONALITY TODO', + description: `Lorem ipsum`, toggle: { - value: CookieConsentCategory.ANALYTICS, + value: CookieConsentCategory.FUNCTIONALITY, enabled: false, readonly: false, }, }, { + title: 'AD TODO', + description: `Lorem ipsum`, toggle: { - value: CookieConsentCategory.FUNCTIONALITY, + value: CookieConsentCategory.AD, enabled: false, readonly: false, }, }, { + title: 'PERSONALIZATION TODO', + description: `Lorem ipsum`, toggle: { value: CookieConsentCategory.PERSONALIZATION, enabled: false,