Skip to content

Commit

Permalink
Refactor: Unify access to language variables
Browse files Browse the repository at this point in the history
  • Loading branch information
OndraM committed Mar 7, 2022
1 parent ae2575f commit 4f28840
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/languages/cs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu

return {
consent_modal: {
title: extraMessages.consentTitle ?? 'Díky Cookies budou naše stránky ještě lepší',
title: lang.consentTitle ?? 'Díky Cookies budou naše stránky ještě lepší',
description: `
<p>Když lépe pochopíme, co vás zajímá, budeme vám zobrazovat přesnější obsah na míru.</p>
<p>
Expand Down
2 changes: 1 addition & 1 deletion src/languages/de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu

return {
consent_modal: {
title: extraMessages.consentTitle ?? 'Diese Website verwendet Cookies',
title: lang.consentTitle ?? 'Diese Website verwendet Cookies',
description: `
<p>Wenn wir genau wissen, wofür Sie sich interessieren, können wir Ihnen maßgeschneiderte Inhalte anbieten.</p>
<p>
Expand Down
2 changes: 1 addition & 1 deletion src/languages/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu

return {
consent_modal: {
title: extraMessages.consentTitle ?? 'Cookies make our site even better',
title: lang.consentTitle ?? 'Cookies make our site even better',
description: `
<p>By better understanding what you're interested in, we'll show you more relevant content.</p>
<p>
Expand Down
2 changes: 1 addition & 1 deletion src/languages/hu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu

return {
consent_modal: {
title: extraMessages.consentTitle ?? 'Az oldalak süti fájlokat használnak',
title: lang.consentTitle ?? 'Az oldalak süti fájlokat használnak',
description: `
<p>Ha jobban megértjük, mi érdekli Önt, akkor pontosabban személyre szabott tartalmat tudunk Önnek megjeleníteni.</p>
<p>
Expand Down
2 changes: 1 addition & 1 deletion src/languages/pl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu

return {
consent_modal: {
title: extraMessages.consentTitle ?? 'Dzięki plikom Cookies nasza strona będzie jeszcze lepsza',
title: lang.consentTitle ?? 'Dzięki plikom Cookies nasza strona będzie jeszcze lepsza',
description: `
<p>Gdy lepiej zrozumiemy, co Cię interesuje, pokażemy dokładniejsze treści dopasowane do Twoich preferencji.</p>
<p>
Expand Down
2 changes: 1 addition & 1 deletion src/languages/ru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu

return {
consent_modal: {
title: extraMessages.consentTitle ?? 'Этот сайт использует файлы cookie',
title: lang.consentTitle ?? 'Этот сайт использует файлы cookie',
description: `
<p>Когда мы лучше поймем, что вас интересует, мы покажем вам лучший контент.</p>
<p>
Expand Down
2 changes: 1 addition & 1 deletion src/languages/sk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu

return {
consent_modal: {
title: extraMessages.consentTitle ?? 'Vďaka Cookies budú naše stránky ešte lepšie',
title: lang.consentTitle ?? 'Vďaka Cookies budú naše stránky ešte lepšie',
description: `
<p>Presnejší obsah na mieru vám budeme zobrazovať, keď lepšie pochopíme, čo vás zaujíma.</p>
<p>
Expand Down
2 changes: 1 addition & 1 deletion src/languages/uk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const config = (extraMessages: ExtraMessages): VanillaCookieConsent.Langu

return {
consent_modal: {
title: extraMessages.consentTitle ?? 'Цей сайт використовує файли cookie',
title: lang.consentTitle ?? 'Цей сайт використовує файли cookie',
description: `
<p>Якщо ми краще зрозуміємо, що вас цікавить, ми покажемо вам точніший контент.</p>
<p>
Expand Down

0 comments on commit 4f28840

Please sign in to comment.