diff --git a/messages/en.json b/messages/en.json index 841cfe485..a7ee92baf 100644 --- a/messages/en.json +++ b/messages/en.json @@ -1,7 +1,22 @@ { - "CustomerCase": { + "navigation": { + "home": "Home" + }, + "customer_case": { "customer": "Customer", "project": "Project", - "duration": "Duration" + "duration": "Duration", + "industry": "Industry", + "delivery": "Delivery", + "consultants": "Consultants", + "in_project": "In project" + }, + "contact_information": { + "help": "Curious about Variant and want to explore what we offer?", + "contact_sale": "Contact sale!" + }, + "custom_link": { + "visit_cv": "Visit mini-CV", + "read_more": "Read more" } } diff --git a/messages/no.json b/messages/no.json index 9bf33abe5..63469640f 100644 --- a/messages/no.json +++ b/messages/no.json @@ -1,7 +1,22 @@ { - "CustomerCase": { + "navigation": { + "home": "Hjem" + }, + "customer_case": { "customer": "Kunde", "project": "Prosjekt", - "duration": "Varighet" + "duration": "Varighet", + "industry": "Bransje", + "delivery": "Leveranse", + "consultants": "Folk", + "in_project": "Varianter i prosjektet" + }, + "contact_information": { + "help": "Trenger du hjelp med lignende eller noe helt annet?", + "contact_sale": "Kontakt salg!" + }, + "custom_link": { + "visit_cv": "Gå til mini-CV", + "read_more": "Les mer" } } diff --git a/messages/se.json b/messages/se.json index 36c2c2856..f97af1076 100644 --- a/messages/se.json +++ b/messages/se.json @@ -1,7 +1,22 @@ { + "navigation": { + "home": "Hem" + }, "CustomerCase": { "customer": "Kund", "project": "Projekt", - "duration": "Varaktighet" + "duration": "Varaktighet", + "industry": "Bransch", + "delivery": "Leverans", + "consultants": "Folk", + "in_project": "Varianter i projektet" + }, + "contact_information": { + "help": "Nyfiken på Variant och vill utforska vad vi erbjuder?", + "contact_sale": "Kontakta sälj!" + }, + "custom_link": { + "visit_cv": "Besök mini-CV", + "read_more": "Läs mer" } } diff --git a/src/components/consultantCard/ConsultantCard.tsx b/src/components/consultantCard/ConsultantCard.tsx index 046cde83a..597ae2788 100644 --- a/src/components/consultantCard/ConsultantCard.tsx +++ b/src/components/consultantCard/ConsultantCard.tsx @@ -1,5 +1,6 @@ import Image from "next/image"; import Link from "next/link"; +import { useTranslations } from "next-intl"; import CustomLink from "src/components/link/CustomLink"; import { ChewbaccaEmployee } from "src/types/employees"; @@ -20,6 +21,8 @@ export default function ConsultantCard({ employeePageSlug, }: ConsultantCardProps) { const title =
{consultant.name}
; + const t = useTranslations("custom_link"); + return ( consultant.imageThumbUrl && consultant.name && @@ -59,7 +62,7 @@ export default function ConsultantCard({ _key: "go-to-mini-cv", _type: "link", linkType: LinkType.Internal, - linkTitle: "Gå til Mini-CV", // TODO: translate + linkTitle: t("visit_cv"), language: currentLanguage, internalLink: { _ref: `${employeePageSlug}/${aliasFromEmail(consultant.email)}`, diff --git a/src/components/customerCases/customerCase/CustomerCase.tsx b/src/components/customerCases/customerCase/CustomerCase.tsx index a151aaa8b..6c085f132 100644 --- a/src/components/customerCases/customerCase/CustomerCase.tsx +++ b/src/components/customerCases/customerCase/CustomerCase.tsx @@ -27,7 +27,7 @@ export default async function CustomerCase({ customerCase.projectInfo.consultants, ); - const t = await getTranslations("CustomerCase"); + const t = await getTranslations("customer_case"); return (