<>
- We could not retrive the following id {params.id}.
- Please check that it is correct or contact us at {supportEmail}
+ {tErrors('errorAlertIdText', { id: params.id })}
+
+ {tErrors('errorAlertContactText', { email: supportEmail })}
+
>
);
diff --git a/web/src/components/cookie-consent-settings.tsx b/web/src/components/cookie-consent-settings.tsx
index 82867598b..85a352e39 100644
--- a/web/src/components/cookie-consent-settings.tsx
+++ b/web/src/components/cookie-consent-settings.tsx
@@ -10,6 +10,7 @@ import {
} from '@nextui-org/modal';
import { Switch } from '@nextui-org/switch';
import { CookieIcon } from './icons';
+import { useTranslations } from 'next-intl';
import { useEffect, useState } from 'react';
interface CookieConsentSettingsProps {
@@ -18,6 +19,7 @@ interface CookieConsentSettingsProps {
}
export const CookieConsentSettings = (props: CookieConsentSettingsProps) => {
+ const t = useTranslations('cookieConsent');
const [isAnalyticsSelected, setIsAnalyticsSelected] = useState(true);
const [isMarketingSelected, setIsMarketingSelected] = useState(true);
@@ -46,7 +48,7 @@ export const CookieConsentSettings = (props: CookieConsentSettingsProps) => {
setIsAnalyticsSelected(false);
}
if (storedMarketingCookieConsent === 'false') {
- setIsAnalyticsSelected(false);
+ setIsMarketingSelected(false);
}
}, []);
@@ -63,21 +65,19 @@ export const CookieConsentSettings = (props: CookieConsentSettingsProps) => {
- Manage your cookie settings. You can enable or disable different
- types of cookies below.
+ {t('settingsDescription')}