diff --git a/messages/en.json b/messages/en.json index 2e56ddb0d..f3d6e18ae 100644 --- a/messages/en.json +++ b/messages/en.json @@ -55,5 +55,12 @@ "job_posting": { "office": "Office", "all": "All" + }, + "footer": { + "text": "We have multiple offices in Norway and Sweden. Feel free to drop by for a cup of coffee or just a friendly chat.", + "mainMenu": "Main menu", + "other": "Other", + "socialMedia": "Follow us", + "contact": "General contact" } } diff --git a/messages/no.json b/messages/no.json index 1a142a983..de209c877 100644 --- a/messages/no.json +++ b/messages/no.json @@ -54,5 +54,12 @@ "job_posting": { "office": "Kontor", "all": "Alle" + }, + "footer": { + "text": "Vi har flere kontorer i Norge og Sverige. Kom gjerne innom for en kopp kaffe eller bare en hyggelig prat.", + "mainMenu": "Hovedmeny", + "other": "Annet", + "socialMedia": "Følg oss", + "contact": "Generell kontakt" } } diff --git a/messages/se.json b/messages/se.json index e88f3a4b3..600f47d2c 100644 --- a/messages/se.json +++ b/messages/se.json @@ -54,5 +54,12 @@ "job_posting": { "office": "Kontor", "all": "Alla" + }, + "footer": { + "text": "Vi har flera kontor i Sverige och Norge. Du är välkommen att komma förbi för en kopp kaffe eller bara en trevlig pratstund.", + "mainMenu": "Huvudmeny", + "other": "Övrigt", + "socialMedia": "Följ oss", + "contact": "Kontakt" } } diff --git a/src/app/(main)/[locale]/layout.tsx b/src/app/(main)/[locale]/layout.tsx index 61d2842a8..38e274c82 100644 --- a/src/app/(main)/[locale]/layout.tsx +++ b/src/app/(main)/[locale]/layout.tsx @@ -10,13 +10,17 @@ import SkipToMain from "src/components/skipToMain/SkipToMain"; import { Locale, routing } from "src/i18n/routing"; import { getDraftModeInfo } from "src/utils/draftmode"; import { BrandAssets } from "studio/lib/interfaces/brandAssets"; -import { CompanyInfo } from "studio/lib/interfaces/companyDetails"; +import { + CompanyInfo, + CompanyLocation, +} from "studio/lib/interfaces/companyDetails"; import { LegalDocument } from "studio/lib/interfaces/legalDocuments"; import { Navigation } from "studio/lib/interfaces/navigation"; import { SocialMediaProfiles } from "studio/lib/interfaces/socialMedia"; import LiveVisualEditing from "studio/lib/loaders/AutomaticVisualEditing"; import { COMPANY_INFO_QUERY, + COMPANY_LOCATIONS_QUERY, LEGAL_DOCUMENTS_BY_LANG_QUERY, } from "studio/lib/queries/admin"; import { @@ -57,6 +61,7 @@ export default async function Layout({ initialSoMe, initialLegal, initialBrandAssets, + initialCompanyLocations, ] = await Promise.all([ loadStudioQuery( NAV_QUERY, @@ -75,6 +80,11 @@ export default async function Layout({ { perspective }, ), loadStudioQuery(BRAND_ASSETS_QUERY, {}, { perspective }), + loadStudioQuery( + COMPANY_LOCATIONS_QUERY, + {}, + { perspective }, + ), ]); const hasNavData = hasValidData(initialNav.data); @@ -95,13 +105,15 @@ export default async function Layout({ initialSoMe={initialSoMe} initialLegal={initialLegal} language={params.locale} + initialCompanyLocations={initialCompanyLocations} /> ) : (