- Med vårt nyhetsbrev får du uppdateringar om hur det går med utsläppen och
- omställningen direkt i din mejl.
+ {t('footer:signup-form.info')}
{showThanks ? (
- Tack för ditt intresse!
+ {t('footer:signup-form.thanks')}
) : (
<>
setEmail(event.target.value)}
type="email"
- placeholder="Ange mailadress"
+ placeholder={t('footer:signup-form.placeholder')}
value={email}
required
disabled={showThanks}
diff --git a/components/Footer/FooterSocialLinks.tsx b/components/Footer/FooterSocialLinks.tsx
index cca96c33..e048e5c9 100644
--- a/components/Footer/FooterSocialLinks.tsx
+++ b/components/Footer/FooterSocialLinks.tsx
@@ -1,4 +1,5 @@
import styled from 'styled-components'
+import { useTranslation } from 'next-i18next'
import { devices } from '../../utils/devices'
const ContactList = styled.ul`
@@ -50,13 +51,14 @@ export function SocialListItem({
}
function SocialList() {
+ const { t } = useTranslation()
return (
permanent: true,
},
props: {
- ...await serverSideTranslations(locale as string, ['common']),
+ ...await serverSideTranslations(locale as string, ['common', 'footer']),
},
}
}
diff --git a/public/locales/sv/footer.json b/public/locales/sv/footer.json
new file mode 100644
index 00000000..6430424b
--- /dev/null
+++ b/public/locales/sv/footer.json
@@ -0,0 +1,18 @@
+{
+ "creative-commons": {
+ "abbreviation": "CC BY-SA",
+ "license": "Attribution-ShareAlike 4.0 International license"
+ },
+ "developedWith": "Klimatkollen är utvecklad med",
+ "email-us": "Maila oss",
+ "open-source": "öppen källkod",
+ "partners": "Partners",
+ "signup-form": {
+ "info": "Med vårt nyhetsbrev får du uppdateringar om hur det går med utsläppen och omställningen direkt i din mejl.",
+ "placeholder": "Ange mailadress",
+ "thanks": "Tack för ditt intresse!",
+ "title": "Vill du få nyheter om Klimatkollen?"
+ },
+ "supportedBy": "Med stöd från",
+ "tagline": "Klimatkollen är en medborgarplattform som tillgängliggör klimatdata"
+}