diff --git a/src/assets/locales/de/translations.json b/src/assets/locales/de/translations.json
index eabab787..34b76692 100644
--- a/src/assets/locales/de/translations.json
+++ b/src/assets/locales/de/translations.json
@@ -87,5 +87,8 @@
"blog.copied": "Kopiert",
"blog.follow": "Blog abonnieren",
"blog.pagination": "Seite",
- "image.attribution": "Foto von "
+ "image.attribution": "Foto von ",
+ "iframemanager.youtube.notice": "Dieser Inhalt wird von einer externen Quelle gehostet. Durch das Laden des Inhalts akzeptieren Sie die Nutzungsbedingungen von youtube.com.",
+ "iframemanager.youtube.load-button": "Inhalt laden",
+ "iframemanager.youtube.load-all-button": "Inhalt laden und nicht mehr fragen"
}
diff --git a/src/assets/locales/en/translations.json b/src/assets/locales/en/translations.json
index 572f167e..74312113 100644
--- a/src/assets/locales/en/translations.json
+++ b/src/assets/locales/en/translations.json
@@ -87,5 +87,8 @@
"blog.copied": "Copied",
"blog.follow": "Subscribe to blog",
"blog.pagination": "Page",
- "image.attribution": "Photo by "
+ "image.attribution": "Photo by ",
+ "iframemanager.youtube.notice": "This content is hosted by a third party. By showing the external content you accept the terms and conditions of youtube.com.",
+ "iframemanager.youtube.load-button": "Load content",
+ "iframemanager.youtube.load-all-button": "Load content and don't ask again"
}
diff --git a/src/components/cookie-consent.tsx b/src/components/cookie-consent.tsx
index 8975cfa0..850ccb86 100644
--- a/src/components/cookie-consent.tsx
+++ b/src/components/cookie-consent.tsx
@@ -8,7 +8,7 @@ import deCookieConsentTranslations from '../assets/locales/de/cookie-consent-tra
import { useTranslation } from 'react-i18next';
export const CookieConsent = () => {
- const { i18n } = useTranslation();
+ const { t, i18n } = useTranslation();
// @ts-expect-error - iframemanager is defined at runtime
const im = iframemanager();
@@ -38,17 +38,16 @@ export const CookieConsent = () => {
},
languages: {
en: {
- notice:
- 'This content is hosted by a third party. By showing the external content you accept the terms and conditions of youtube.com.',
- loadBtn: 'Load video',
- loadAllBtn: "Load video and don't ask again",
+ notice: t('iframemanager.youtube.notice'),
+ loadBtn: t('iframemanager.youtube.load-button'),
+ loadAllBtn: t('iframemanager.youtube.load-all-button'),
},
de: {
notice:
'Dieser Inhalt wird von einer externen Quelle gehostet. Durch das Laden des Inhalts akzeptieren Sie die Nutzungsbedingungen von youtube.com.',
loadBtn: 'Video laden',
loadAllBtn: 'Video laden und nicht mehr fragen',
- }, // TODO: Move translations to i18n
+ },
},
},
},