From 1fa8d8281371db25ef9382b6087b7f3c0db73fe3 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Wed, 19 Jan 2022 14:45:06 +0100
Subject: refactor(config): move defaultLocale as property of config.locales

I will need the country code, so I think it makes more sense to gather
them inside the same property.
---
 src/components/PostPreview/PostPreview.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/components/PostPreview/PostPreview.tsx')

diff --git a/src/components/PostPreview/PostPreview.tsx b/src/components/PostPreview/PostPreview.tsx
index 2a0bcf1..47dbe5e 100644
--- a/src/components/PostPreview/PostPreview.tsx
+++ b/src/components/PostPreview/PostPreview.tsx
@@ -45,7 +45,7 @@ const PostPreview = ({
     datePublished: publicationDate.toISOString(),
     editor: { '@id': `${config.url}/#branding` },
     image: post.featuredImage?.sourceUrl,
-    inLanguage: config.defaultLocale,
+    inLanguage: config.locales.defaultLocale,
     isBasedOn: `${config.url}/article/${post.slug}`,
     isPartOf: { '@id': `${config.url}/blog` },
     license: 'https://creativecommons.org/licenses/by-sa/4.0/deed.fr',
-- 
cgit v1.2.3

